dynatrace.getSyntheticLocation
Explore with Pulumi AI
The synthetic location data source allows the location ID 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
Coming soon!
Coming soon!
Coming soon!
Coming soon!
Coming soon!
resources:
'#name#':
type: dynatrace:HttpMonitor
properties:
anomalyDetections:
- loadingTimeThresholds:
- enabled: true
outageHandlings:
- globalOutage: true
localOutage: false
retryOnError: false
enabled: true
frequency: 60
locations:
- ${test.id}
script:
requests:
- configuration:
acceptAnyCertificate: true
followRedirects: true
description: google.com
method: GET
url: https://www.google.com
validation:
rule:
- passIfFound: false
type: httpStatusesList
value: '>=400'
variables:
test:
fn::invoke:
function: dynatrace:getSyntheticLocation
arguments:
cloudPlatform: AMAZON_EC2
name: Sydney
type: PUBLIC
Using getSyntheticLocation
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getSyntheticLocation(args: GetSyntheticLocationArgs, opts?: InvokeOptions): Promise<GetSyntheticLocationResult>
function getSyntheticLocationOutput(args: GetSyntheticLocationOutputArgs, opts?: InvokeOptions): Output<GetSyntheticLocationResult>
def get_synthetic_location(cloud_platform: Optional[str] = None,
entity_id: Optional[str] = None,
geo_location_id: Optional[str] = None,
ips: Optional[Sequence[str]] = None,
name: Optional[str] = None,
stage: Optional[str] = None,
status: Optional[str] = None,
type: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetSyntheticLocationResult
def get_synthetic_location_output(cloud_platform: Optional[pulumi.Input[str]] = None,
entity_id: Optional[pulumi.Input[str]] = None,
geo_location_id: Optional[pulumi.Input[str]] = None,
ips: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
name: Optional[pulumi.Input[str]] = None,
stage: Optional[pulumi.Input[str]] = None,
status: Optional[pulumi.Input[str]] = None,
type: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetSyntheticLocationResult]
func LookupSyntheticLocation(ctx *Context, args *LookupSyntheticLocationArgs, opts ...InvokeOption) (*LookupSyntheticLocationResult, error)
func LookupSyntheticLocationOutput(ctx *Context, args *LookupSyntheticLocationOutputArgs, opts ...InvokeOption) LookupSyntheticLocationResultOutput
> Note: This function is named LookupSyntheticLocation
in the Go SDK.
public static class GetSyntheticLocation
{
public static Task<GetSyntheticLocationResult> InvokeAsync(GetSyntheticLocationArgs args, InvokeOptions? opts = null)
public static Output<GetSyntheticLocationResult> Invoke(GetSyntheticLocationInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetSyntheticLocationResult> getSyntheticLocation(GetSyntheticLocationArgs args, InvokeOptions options)
public static Output<GetSyntheticLocationResult> getSyntheticLocation(GetSyntheticLocationArgs args, InvokeOptions options)
fn::invoke:
function: dynatrace:index/getSyntheticLocation:getSyntheticLocation
arguments:
# arguments dictionary
The following arguments are supported:
- Cloud
Platform string - The cloud provider where the location is hosted.
- Entity
Id string - Geo
Location stringId - Ips List<string>
- Name string
- Stage string
- Status string
- Type string
- Cloud
Platform string - The cloud provider where the location is hosted.
- Entity
Id string - Geo
Location stringId - Ips []string
- Name string
- Stage string
- Status string
- Type string
- cloud
Platform String - The cloud provider where the location is hosted.
- entity
Id String - geo
Location StringId - ips List<String>
- name String
- stage String
- status String
- type String
- cloud
Platform string - The cloud provider where the location is hosted.
- entity
Id string - geo
Location stringId - ips string[]
- name string
- stage string
- status string
- type string
- cloud_
platform str - The cloud provider where the location is hosted.
- entity_
id str - geo_
location_ strid - ips Sequence[str]
- name str
- stage str
- status str
- type str
- cloud
Platform String - The cloud provider where the location is hosted.
- entity
Id String - geo
Location StringId - ips List<String>
- name String
- stage String
- status String
- type String
getSyntheticLocation Result
The following output properties are available:
- Cloud
Platform string - The cloud provider where the location is hosted.
- Geo
Location stringId - Id string
- The provider-assigned unique ID for this managed resource.
- Ips List<string>
- Stage string
- Status string
- Entity
Id string - Name string
- Type string
- Cloud
Platform string - The cloud provider where the location is hosted.
- Geo
Location stringId - Id string
- The provider-assigned unique ID for this managed resource.
- Ips []string
- Stage string
- Status string
- Entity
Id string - Name string
- Type string
- cloud
Platform String - The cloud provider where the location is hosted.
- geo
Location StringId - id String
- The provider-assigned unique ID for this managed resource.
- ips List<String>
- stage String
- status String
- entity
Id String - name String
- type String
- cloud
Platform string - The cloud provider where the location is hosted.
- geo
Location stringId - id string
- The provider-assigned unique ID for this managed resource.
- ips string[]
- stage string
- status string
- entity
Id string - name string
- type string
- cloud_
platform str - The cloud provider where the location is hosted.
- geo_
location_ strid - id str
- The provider-assigned unique ID for this managed resource.
- ips Sequence[str]
- stage str
- status str
- entity_
id str - name str
- type str
- cloud
Platform String - The cloud provider where the location is hosted.
- geo
Location StringId - id String
- The provider-assigned unique ID for this managed resource.
- ips List<String>
- stage String
- status String
- entity
Id String - name String
- type String
Package Details
- Repository
- dynatrace pulumiverse/pulumi-dynatrace
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
dynatrace
Terraform Provider.