Synthetic locations API v2 - GET all locations

  • Reference

Lists all locations, public and private, and their parameters available for your environment.

The request produces an application/json payload.

GETSaaShttps://{your-environment-id}.live.dynatrace.com/api/v2/synthetic/locations
Environment ActiveGateCluster ActiveGatehttps://{your-activegate-domain}:9999/e/{your-environment-id}/api/v2/synthetic/locations

Authentication

To execute this request, you need an access token with syntheticLocations.read scope.

To learn how to obtain and use it, see Tokens and authentication.

Parameters

ParameterTypeDescriptionInRequired
cloudPlatformstring

Filters the resulting set of locations to those which are hosted on a specific cloud platform.

  • AWS
  • AZURE
  • ALIBABA
  • GOOGLE_CLOUD
  • OTHER
queryoptional
typestring

Filters the resulting set of locations to those of a specific type.

  • PUBLIC
  • PRIVATE
queryoptional
capabilitystring

Filters the resulting set of locations to those which support specific capability.

  • BROWSER
  • HTTP
  • HTTP_HIGH_RESOURCE
  • ICMP
  • TCP
  • DNS
queryoptional

Response

Response codes

CodeTypeDescription
200SyntheticLocations

Success

4XXErrorEnvelope

Client side error.

5XXErrorEnvelope

Server side error.

Response body objects

The SyntheticLocations object

A list of synthetic locations.

ElementTypeDescription
locationsLocationCollectionElement[]

A list of synthetic locations.

The LocationCollectionElement object

A synthetic location.

ElementTypeDescription
capabilitiesstring[]

The list of location's capabilities.

cloudPlatformstring

The cloud provider where the location is hosted.

Only applicable to PUBLIC locations.

  • ALIBABA
  • AMAZON_EC2
  • AZURE
  • DYNATRACE_CLOUD
  • GOOGLE_CLOUD
  • INTEROUTE
  • OTHER
  • UNDEFINED
deploymentTypestring

Location's deployment type

  • KUBERNETES
  • OPENSHIFT
  • STANDARD
  • UNKNOWN
entityIdstring

The Dynatrace entity ID of the location.

geoCitystring

Location's city.

geoContinentstring

Location's continent.

geoCountrystring

Location's country.

geoLatitudenumber

Location's latitude.

geoLocationIdstring

The Dynatrace GeoLocation ID of the location.

geoLongitudenumber

Location's longitude.

ipsstring[]

The list of IP addresses assigned to the location.

Only applicable to PUBLIC locations.

lastModificationTimestampinteger

The timestamp of the last modification of the location.

namestring

The name of 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.

stagestring

The release stage of the location.

  • BETA
  • COMING_SOON
  • DELETED
  • GA
statusstring

The status of the location.

  • DISABLED
  • ENABLED
  • HIDDEN
typestring

The type of the location.

  • CLUSTER
  • PRIVATE
  • PUBLIC

Response body JSON model

{
"locations": [
{
"capabilities": [
"BROWSER",
"HTTP"
],
"cloudPlatform": "AMAZON_EC2",
"entityId": "SYNTHETIC_LOCATION-53F47ECB33907667",
"geoCity": "Gdansk",
"geoContinent": "Europe",
"geoCountry": "Poland",
"geoLatitude": "54.399078369140625",
"geoLocationId": "GEOLOCATION-95196F3C9A4F4215",
"geoLongitude": "18.576557159423828",
"ips": [
"134.189.153.97",
"134.189.153.98"
],
"name": "Gdansk",
"stage": "GA",
"status": "ENABLED",
"type": "PUBLIC"
},
{
"entityId": "SYNTHETIC_LOCATION-53F47ECB33907667",
"geoLocationId": "GEOLOCATION-95196F3C9A4F4215",
"name": "My private location",
"status": "ENABLED",
"type": "PRIVATE"
}
]
}

Example

In this example, the request lists all synthetic locations available for the mySampleEnv environment.

The API token is passed in the Authorization header.

The result is truncated to three entries.

Curl

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

Request URL

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

Response body

{
"locations": [
{
"name": "Amazon US East (N. Virginia)",
"entityId": "SYNTHETIC_LOCATION-0000000000000004",
"type": "PUBLIC",
"cloudPlatform": "AMAZON_EC2",
"ips": [
"79.50.224.74",
"96.124.117.100"
],
"stage": "GA",
"status": "ENABLED",
"capabilities": [
"BROWSER"
],
"geoLocationId": "GEOLOCATION-95196F3C9A4F4215"
},
{
"name": "Gdańsk",
"entityId": "SYNTHETIC_LOCATION-0000000000000064",
"type": "PUBLIC",
"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",
"status": "ENABLED",
"capabilities": [
"BROWSER",
"HTTP"
],
"geoLocationId": "GEOLOCATION-0A41430434C388A9"
},
{
"name": "Linz HTTP",
"entityId": "SYNTHETIC_LOCATION-BB5EE23C1D48AFF5",
"type": "PRIVATE",
"status": "ENABLED",
"geoLocationId": "GEOLOCATION-427705B3488A4C45"
}
]
}

Response code

200