import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * The synthetic locations data source allows the location IDs to be retrieved based off of provided parameters. * * > For Provider versions earlier than v1.80.0: This data source requires the API token scope **Read synthetic monitors, locations, and nodes** (`ReadSyntheticData`) * For Provider versions v1.80.0 and newer: This data source requires the API token scope **Read synthetic locations** (`syntheticLocations.read`) * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as dynatrace from "@pulumiverse/dynatrace"; * * const test = dynatrace.getSyntheticLocations({ * name: "Sydney", * }); * const _name_ = new dynatrace.HttpMonitor("#name#", { * enabled: true, * frequency: 60, * locations: [test.then(test => test.locations?.entityId)], * anomalyDetections: [{ * loadingTimeThresholds: [{ * enabled: true, * }], * outageHandlings: [{ * globalOutage: true, * localOutage: false, * retryOnError: false, * }], * }], * script: { * requests: [{ * description: "google.com", * method: "GET", * url: "https://www.google.com", * configuration: { * acceptAnyCertificate: true, * followRedirects: true, * }, * validation: { * rules: [{ * type: "httpStatusesList", * passIfFound: false, * value: ">=400", * }], * }, * }], * }, * }); * ``` */ export declare function getSyntheticLocations(args?: GetSyntheticLocationsArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getSyntheticLocations. */ export interface GetSyntheticLocationsArgs { /** * The ID of this resource. */ id?: string; locations?: inputs.GetSyntheticLocationsLocations; name?: string; } /** * A collection of values returned by getSyntheticLocations. */ export interface GetSyntheticLocationsResult { /** * The ID of this resource. */ readonly id?: string; readonly locations: outputs.GetSyntheticLocationsLocations; readonly name?: string; } /** * The synthetic locations data source allows the location IDs to be retrieved based off of provided parameters. * * > For Provider versions earlier than v1.80.0: This data source requires the API token scope **Read synthetic monitors, locations, and nodes** (`ReadSyntheticData`) * For Provider versions v1.80.0 and newer: This data source requires the API token scope **Read synthetic locations** (`syntheticLocations.read`) * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as dynatrace from "@pulumiverse/dynatrace"; * * const test = dynatrace.getSyntheticLocations({ * name: "Sydney", * }); * const _name_ = new dynatrace.HttpMonitor("#name#", { * enabled: true, * frequency: 60, * locations: [test.then(test => test.locations?.entityId)], * anomalyDetections: [{ * loadingTimeThresholds: [{ * enabled: true, * }], * outageHandlings: [{ * globalOutage: true, * localOutage: false, * retryOnError: false, * }], * }], * script: { * requests: [{ * description: "google.com", * method: "GET", * url: "https://www.google.com", * configuration: { * acceptAnyCertificate: true, * followRedirects: true, * }, * validation: { * rules: [{ * type: "httpStatusesList", * passIfFound: false, * value: ">=400", * }], * }, * }], * }, * }); * ``` */ export declare function getSyntheticLocationsOutput(args?: GetSyntheticLocationsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getSyntheticLocations. */ export interface GetSyntheticLocationsOutputArgs { /** * The ID of this resource. */ id?: pulumi.Input; locations?: pulumi.Input; name?: pulumi.Input; }