Synthetic locations API v2 - GET all locations (Dynatrace Managed)
This page will soon be available only on the dedicated Dynatrace Managed Documentation site. Update your bookmarks.
This API call lists all locations, public and private, and their parameters available for your environment. 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 - Authentication.
Endpoint
/api/cluster/v2/synthetic/locations
Parameters
Parameter | Type | Description | In | Required |
---|---|---|---|---|
cloudPlatform | string | Filters the resulting set of locations to those which are hosted on a specific cloud platform.
| query | optional |
type | string | Filters the resulting set of locations to those of a specific type.
| query | optional |
Response
Response codes
Code | Type | Description |
---|---|---|
200 | SyntheticLocations | Success |
Response body objects
The SyntheticLocations
object
A list of synthetic locations.
Element | Type | Description |
---|---|---|
locations | LocationCollectionElement[] | A list of synthetic locations. |
The LocationCollectionElement
object
A synthetic location.
Element | Type | Description |
---|---|---|
cloudPlatform | string | The cloud provider where the location is hosted. Only applicable to
|
entityId | string | The Dynatrace entity ID of the location. |
geoCity | string | Location's city. |
geoContinent | string | Location's continent. |
geoCountry | string | Location's country. |
geoLatitude | number | Location's latitude. |
geoLocationId | string | The Dynatrace GeoLocation ID of the location. |
geoLongitude | number | Location's longitude. |
ips | string[] | The list of IP addresses assigned to the location. Only applicable to |
name | string | The name of the location. |
stage | string | The release stage of the location.
|
status | string | The status of the location.
|
type | string | The type of the location.
|
Response body JSON model
1{2 "locations": [3 {4 "capabilities": [5 "BROWSER",6 "HTTP"7 ],8 "cloudPlatform": "AMAZON_EC2",9 "entityId": "SYNTHETIC_LOCATION-53F47ECB33907667",10 "geoCity": "Gdansk",11 "geoContinent": "Europe",12 "geoCountry": "Poland",13 "geoLatitude": "54.399078369140625",14 "geoLocationId": "GEOLOCATION-95196F3C9A4F4215",15 "geoLongitude": "18.576557159423828",16 "ips": [17 "134.189.153.97",18 "134.189.153.98"19 ],20 "name": "Gdansk",21 "stage": "GA",22 "status": "ENABLED",23 "type": "PUBLIC"24 },25 {26 "entityId": "SYNTHETIC_LOCATION-53F47ECB33907667",27 "geoLocationId": "GEOLOCATION-95196F3C9A4F4215",28 "name": "My private location",29 "status": "ENABLED",30 "type": "PRIVATE"31 }32 ]33}
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
1curl -X GET \2 https://mySampleEnv.live.dynatrace.com/api/v2/synthetic/locations \3 -H 'Authorization: Api-Token dt0c01.abc123.abcdefjhij1234567890'
Request URL
1https://mySampleEnv.live.dynatrace.com/api/v2/synthetic/locations
Response body
1{2 "locations": [3 {4 "name": "Amazon US East (N. Virginia)",5 "entityId": "SYNTHETIC_LOCATION-0000000000000004",6 "type": "PUBLIC",7 "cloudPlatform": "AMAZON_EC2",8 "ips": [9 "79.50.224.74",10 "96.124.117.100"11 ],12 "stage": "GA",13 "status": "ENABLED",14 "capabilities": [15 "BROWSER"16 ],17 "geoLocationId": "GEOLOCATION-95196F3C9A4F4215"18 },19 {20 "name": "Gdańsk",21 "entityId": "SYNTHETIC_LOCATION-0000000000000064",22 "type": "PUBLIC",23 "cloudPlatform": "OTHER",24 "ips": [25 "120.157.221.247",26 "172.158.6.93",27 "197.136.70.30",28 "227.53.205.237",29 "131.123.197.12"30 ],31 "stage": "GA",32 "status": "ENABLED",33 "capabilities": [34 "BROWSER",35 "HTTP"36 ],37 "geoLocationId": "GEOLOCATION-0A41430434C388A9"38 },39 {40 "name": "Linz HTTP",41 "entityId": "SYNTHETIC_LOCATION-BB5EE23C1D48AFF5",42 "type": "PRIVATE",43 "status": "ENABLED",44 "geoLocationId": "GEOLOCATION-427705B3488A4C45"45 }46 ]47}
Response code
200