Try it free

Synthetic locations API v2 - GET a location (Dynatrace Managed)

  • Published Jul 26, 2019

This API call gets the parameters of the specified location. The request produces an application/json payload.

Authentication

To execute this request, you need the Service Provider API (ServiceProviderAPI) permission assigned to your API token. Generate your API token via Cluster Management Console (CMC). To learn how to obtain and use it, see Cluster API - Tokens and authentication.

Endpoint

/api/cluster/v2/synthetic/locations

Parameters

ParameterTypeDescriptionInRequired
locationIdstring

The Dynatrace entity ID of the required location.

pathRequired

Response

Response codes

CodeTypeDescription
200SyntheticLocation | PrivateSyntheticLocation

Success. The response contains parameters of the synthetic location.

4XXErrorEnvelope

Client side error.

5XXErrorEnvelope

Server side error.

Response body objects

The SyntheticLocation object

Configuration of a synthetic location.

countryCode, regionCode, city parameters are optional as they can be retrieved based on latitude and longitude of location.

The actual set of fields depends on the type of the location. Find the list of actual objects in the description of the type field or see Synthetic locations API v2 - JSON models.

ElementTypeDescription
citystring

The city of the location.

countryCodestring

The country code of the location.

To fetch the list of available country codes, use the GET all countries request.

countryNamestring

The country name of the location.

entityIdstring

The Dynatrace entity ID of the location.

geoLocationIdstring

The Dynatrace GeoLocation ID of the location.

latitudenumber

The latitude of the location in DDD.dddd format.

longitudenumber

The longitude of the location in DDD.dddd format.

namestring

The name of the location.

regionCodestring

The region code of the location.

To fetch the list of available region codes, use the GET regions of the country request.

regionNamestring

The region name of the location.

statusstring

The status of the location:

  • ENABLED: The location is displayed as active in the UI. You can assign monitors to the location.
  • DISABLED: The location is displayed as inactive in the UI. You can't assign monitors to the location. Monitors already assigned to the location will stay there and will be executed from the location.
  • HIDDEN: The location is not displayed in the UI. You can't assign monitors to the location. You can only set location as HIDDEN when no monitor is assigned to it.
The element can hold these values
  • DISABLED
  • ENABLED
  • HIDDEN
typestring

Defines the actual set of fields depending on the value. See one of the following objects:

  • PUBLIC -> PublicSyntheticLocation
  • PRIVATE -> PrivateSyntheticLocation
  • CLUSTER -> PrivateSyntheticLocation
The element can hold these values
  • CLUSTER
  • PRIVATE
  • PUBLIC

The PrivateSyntheticLocation object

Configuration of a private synthetic location.

Some fields are inherited from the base SyntheticLocation object.

ElementTypeDescription
autoUpdateChromiumboolean

Non-containerized location property. Auto upgrade of Chromium is enabled (true) or disabled (false).

availabilityLocationOutageboolean

Alerting for location outage is enabled (true) or disabled (false). Supported only for private Synthetic locations.

availabilityNodeOutageboolean

Alerting for node outage is enabled (true) or disabled (false). \n\n If enabled, the outage of any node in the location triggers an alert. Supported only for private Synthetic locations.

availabilityNotificationsEnabledboolean

Notifications for location and node outage are enabled (true) or disabled (false). Supported only for private Synthetic locations.

browserExecutionSupportedboolean

Containerized location property. Boolean value describes if browser monitors will be executed on this location:

  • false: Browser monitor executions disabled.
  • true: Browser monitor executions enabled.
citystring

The city of the location.

countryCodestring

The country code of the location.

To fetch the list of available country codes, use the GET all countries request.

countryNamestring

The country name of the location.

deploymentTypestring

The deployment type of the location:

  • STANDARD: The location is deployed on Windows or Linux.
  • KUBERNETES: The location is deployed on Kubernetes.
The element can hold these values
  • KUBERNETES
  • OPENSHIFT
  • STANDARD
  • UNKNOWN
entityIdstring

The Dynatrace entity ID of the location.

fipsModestring

Containerized location property indicating whether FIPS mode is enabled on this location:

  • DISABLED: FIPS is not enabled on the location.
  • ENABLED: FIPS is enabled on the location.
  • ENABLED_WITH_CORPORATE_PROXY: FIPS with corporate proxy is enabled on this location. Default: DISABLED
The element can hold these values
  • DISABLED
  • ENABLED
  • ENABLED_WITH_CORPORATE_PROXY
geoLocationIdstring

The Dynatrace GeoLocation ID of the location.

latitudenumber

The latitude of the location in DDD.dddd format.

locationNodeOutageDelayInMinutesinteger

Alert if location or node outage lasts longer than X minutes. \n\n Only applicable when availabilityLocationOutage or availabilityNodeOutage is set to true. Supported only for private Synthetic locations.

longitudenumber

The longitude of the location in DDD.dddd format.

namExecutionSupportedboolean

Containerized location property. Boolean value describes if icmp monitors will be executed on this location:

  • false: Icmp monitor executions disabled.
  • true: Icmp monitor executions enabled.
namestring

The name of the location.

nodeNamesobject

A mapping id to name of the nodes belonging to the location.

nodesstring[]

A list of synthetic nodes belonging to the location.

You can retrieve the list of available nodes with the GET all nodes call.

regionCodestring

The region code of the location.

To fetch the list of available region codes, use the GET regions of the country request.

regionNamestring

The region name of the location.

statusstring

The status of the location:

  • ENABLED: The location is displayed as active in the UI. You can assign monitors to the location.
  • DISABLED: The location is displayed as inactive in the UI. You can't assign monitors to the location. Monitors already assigned to the location will stay there and will be executed from the location.
  • HIDDEN: The location is not displayed in the UI. You can't assign monitors to the location. You can only set location as HIDDEN when no monitor is assigned to it.
The element can hold these values
  • DISABLED
  • ENABLED
  • HIDDEN
typestring-
The element can hold these values
  • CLUSTER
  • PRIVATE
  • PUBLIC
useNewKubernetesVersionboolean

Containerized location property. Boolean value describes which kubernetes version will be used:

  • false: Version 1.23+ that is older than 1.26
  • true: Version 1.26+.

The ErrorEnvelope object

ElementTypeDescription
errorError-

The Error object

ElementTypeDescription
codeinteger

The HTTP status code

constraintViolationsConstraintViolation[]

A list of constraint violations

messagestring

The error message

The ConstraintViolation object

A list of constraint violations

ElementTypeDescription
locationstring-
messagestring-
parameterLocationstring-
The element can hold these values
  • HEADER
  • PATH
  • PAYLOAD_BODY
  • QUERY
pathstring-

Response body JSON models

{
"city": "string",
"countryCode": "string",
"countryName": "string",
"entityId": "string",
"geoLocationId": "string",
"latitude": 1,
"longitude": 1,
"name": "string",
"regionCode": "string",
"regionName": "string",
"status": "DISABLED",
"type": "CLUSTER"
}
{
"error": {
"code": 1,
"constraintViolations": [
{
"location": "string",
"message": "string",
"parameterLocation": "HEADER",
"path": "string"
}
],
"message": "string"
}
}

Response format

To find all model variations that depend on the type of the model, see JSON models.

Response codes

CodeTypeDescription
200SyntheticLocation | PrivateSyntheticLocation

Success. The response contains parameters of the synthetic location.

4XXErrorEnvelope

Client side error.

5XXErrorEnvelope

Server side error.

Response body objects

The SyntheticLocation object

Configuration of a synthetic location.

countryCode, regionCode, city parameters are optional as they can be retrieved based on latitude and longitude of location.

The actual set of fields depends on the type of the location. Find the list of actual objects in the description of the type field or see Synthetic locations API v2 - JSON models.

ElementTypeDescription
citystring

The city of the location.

countryCodestring

The country code of the location.

To fetch the list of available country codes, use the GET all countries request.

countryNamestring

The country name of the location.

entityIdstring

The Dynatrace entity ID of the location.

geoLocationIdstring

The Dynatrace GeoLocation ID of the location.

latitudenumber

The latitude of the location in DDD.dddd format.

longitudenumber

The longitude of the location in DDD.dddd format.

namestring

The name of the location.

regionCodestring

The region code of the location.

To fetch the list of available region codes, use the GET regions of the country request.

regionNamestring

The region name of the location.

statusstring

The status of the location:

  • ENABLED: The location is displayed as active in the UI. You can assign monitors to the location.
  • DISABLED: The location is displayed as inactive in the UI. You can't assign monitors to the location. Monitors already assigned to the location will stay there and will be executed from the location.
  • HIDDEN: The location is not displayed in the UI. You can't assign monitors to the location. You can only set location as HIDDEN when no monitor is assigned to it.
The element can hold these values
  • DISABLED
  • ENABLED
  • HIDDEN
typestring

Defines the actual set of fields depending on the value. See one of the following objects:

  • PUBLIC -> PublicSyntheticLocation
  • PRIVATE -> PrivateSyntheticLocation
  • CLUSTER -> PrivateSyntheticLocation
The element can hold these values
  • CLUSTER
  • PRIVATE
  • PUBLIC

The PrivateSyntheticLocation object

Configuration of a private synthetic location.

Some fields are inherited from the base SyntheticLocation object.

ElementTypeDescription
autoUpdateChromiumboolean

Non-containerized location property. Auto upgrade of Chromium is enabled (true) or disabled (false).

availabilityLocationOutageboolean

Alerting for location outage is enabled (true) or disabled (false). Supported only for private Synthetic locations.

availabilityNodeOutageboolean

Alerting for node outage is enabled (true) or disabled (false). \n\n If enabled, the outage of any node in the location triggers an alert. Supported only for private Synthetic locations.

availabilityNotificationsEnabledboolean

Notifications for location and node outage are enabled (true) or disabled (false). Supported only for private Synthetic locations.

browserExecutionSupportedboolean

Containerized location property. Boolean value describes if browser monitors will be executed on this location:

  • false: Browser monitor executions disabled.
  • true: Browser monitor executions enabled.
citystring

The city of the location.

countryCodestring

The country code of the location.

To fetch the list of available country codes, use the GET all countries request.

countryNamestring

The country name of the location.

deploymentTypestring

The deployment type of the location:

  • STANDARD: The location is deployed on Windows or Linux.
  • KUBERNETES: The location is deployed on Kubernetes.
The element can hold these values
  • KUBERNETES
  • OPENSHIFT
  • STANDARD
  • UNKNOWN
entityIdstring

The Dynatrace entity ID of the location.

fipsModestring

Containerized location property indicating whether FIPS mode is enabled on this location:

  • DISABLED: FIPS is not enabled on the location.
  • ENABLED: FIPS is enabled on the location.
  • ENABLED_WITH_CORPORATE_PROXY: FIPS with corporate proxy is enabled on this location. Default: DISABLED
The element can hold these values
  • DISABLED
  • ENABLED
  • ENABLED_WITH_CORPORATE_PROXY
geoLocationIdstring

The Dynatrace GeoLocation ID of the location.

latitudenumber

The latitude of the location in DDD.dddd format.

locationNodeOutageDelayInMinutesinteger

Alert if location or node outage lasts longer than X minutes. \n\n Only applicable when availabilityLocationOutage or availabilityNodeOutage is set to true. Supported only for private Synthetic locations.

longitudenumber

The longitude of the location in DDD.dddd format.

namExecutionSupportedboolean

Containerized location property. Boolean value describes if icmp monitors will be executed on this location:

  • false: Icmp monitor executions disabled.
  • true: Icmp monitor executions enabled.
namestring

The name of the location.

nodeNamesobject

A mapping id to name of the nodes belonging to the location.

nodesstring[]

A list of synthetic nodes belonging to the location.

You can retrieve the list of available nodes with the GET all nodes call.

regionCodestring

The region code of the location.

To fetch the list of available region codes, use the GET regions of the country request.

regionNamestring

The region name of the location.

statusstring

The status of the location:

  • ENABLED: The location is displayed as active in the UI. You can assign monitors to the location.
  • DISABLED: The location is displayed as inactive in the UI. You can't assign monitors to the location. Monitors already assigned to the location will stay there and will be executed from the location.
  • HIDDEN: The location is not displayed in the UI. You can't assign monitors to the location. You can only set location as HIDDEN when no monitor is assigned to it.
The element can hold these values
  • DISABLED
  • ENABLED
  • HIDDEN
typestring-
The element can hold these values
  • CLUSTER
  • PRIVATE
  • PUBLIC
useNewKubernetesVersionboolean

Containerized location property. Boolean value describes which kubernetes version will be used:

  • false: Version 1.23+ that is older than 1.26
  • true: Version 1.26+.

The ErrorEnvelope object

ElementTypeDescription
errorError-

The Error object

ElementTypeDescription
codeinteger

The HTTP status code

constraintViolationsConstraintViolation[]

A list of constraint violations

messagestring

The error message

The ConstraintViolation object

A list of constraint violations

ElementTypeDescription
locationstring-
messagestring-
parameterLocationstring-
The element can hold these values
  • HEADER
  • PATH
  • PAYLOAD_BODY
  • QUERY
pathstring-

Response body JSON models

{
"city": "string",
"countryCode": "string",
"countryName": "string",
"entityId": "string",
"geoLocationId": "string",
"latitude": 1,
"longitude": 1,
"name": "string",
"regionCode": "string",
"regionName": "string",
"status": "DISABLED",
"type": "CLUSTER"
}
{
"error": {
"code": 1,
"constraintViolations": [
{
"location": "string",
"message": "string",
"parameterLocation": "HEADER",
"path": "string"
}
],
"message": "string"
}
}

Example - public location

In this example, the request gets the details of the Amazon US East (N. Virginia) public location, which has the ID of SYNTHETIC_LOCATION-0000000000000064.

Curl

curl -X GET \
https://mySampleEnv.live.dynatrace.com/api/v2/synthetic/locations/SYNTHETIC_LOCATION-0000000000000064 \
-H 'Authorization: Api-Token dt0c01.abc123.abcdefjhij1234567890'

Request URL

https://mySampleEnv.live.dynatrace.com/api/v2/synthetic/locations/SYNTHETIC_LOCATION-0000000000000064

Response body

{
"entityId": "SYNTHETIC_LOCATION-0000000000000064",
"type": "PUBLIC",
"name": "Gdańsk",
"countryCode": "PL",
"regionCode": "EU",
"city": "Gdańsk",
"latitude": 54.399078,
"longitude": 18.576557,
"status": "ENABLED",
"cloudPlatform": "OTHER",
"ips": [
"120.157.221.247",
"172.158.6.93",
"197.136.70.30",
"227.53.205.237",
"131.123.197.12"
],
"stage": "GA",
"browserType": "Chrome",
"browserVersion": "83.0.4103.61",
"capabilities": [
"BROWSER",
"HTTP"
],
"geoLocationId": "GEOLOCATION-0A41430434C388A9"
}

Response code

200

Example - private location

In this example, the request gets the details of the Linz HTTP private location, which has the ID of SYNTHETIC_LOCATION-BB5EE23C1D48AFF5.

Curl

curl -X GET \
https://mySampleEnv.live.dynatrace.com/api/v2/synthetic/locations/SYNTHETIC_LOCATION-BB5EE23C1D48AFF5 \
-H 'Authorization: Api-Token dt0c01.abc123.abcdefjhij1234567890'

Request URL

https://mySampleEnv.live.dynatrace.com/api/v2/synthetic/locations/SYNTHETIC_LOCATION-BB5EE23C1D48AFF5

Response body

{
"entityId": "SYNTHETIC_LOCATION-BB5EE23C1D48AFF5",
"type": "PRIVATE",
"name": "Linz HTTP",
"countryCode": "AT",
"regionCode": "04",
"city": "Linz",
"latitude": 48.306351,
"longitude": 14.287399,
"status": "ENABLED",
"nodes": [
"137829320"
],
"availabilityLocationOutage": false,
"availabilityNodeOutage": false,
"locationNodeOutageDelayInMillis": 3000,
"geoLocationId": "GEOLOCATION-427705B3488A4C45"
}

Response code

200

Related topics

  • Synthetic Monitoring