Synthetic locations API - GET all locations
We have a new version of this API—Synthetic API v2. Check it out!
Lists all locations, public and private, and their parameters available for your environment.
The request produces an application/json
payload.
GET | ManagedDynatrace for Government | https://{your-domain}/e/{your-environment-id}/api/v1/synthetic/locations |
SaaS | https://{your-environment-id}.live.dynatrace.com/api/v1/synthetic/locations | |
Environment ActiveGate | https://{your-activegate-domain}:9999/e/{your-environment-id}/api/v1/synthetic/locations |
Authentication
To execute this request, you need an access token with one of the following scopes:
DataExport
ExternalSyntheticIntegration
ReadSyntheticData
To learn how to obtain and use it, see Tokens and authentication.
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 by 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. |
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": "GEOLOCATION-B8D793BCA914E0AF",10 "ips": [11 "134.189.153.97",12 "134.189.153.98"13 ],14 "name": "Gdansk",15 "stage": "GA",16 "status": "ENABLED",17 "type": "PUBLIC"18 },19 {20 "entityId": "SYNTHETIC_LOCATION-53F47ECB33907667",21 "name": "My private location",22 "status": "ENABLED",23 "type": "PRIVATE"24 }25 ]26}
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/v1/synthetic/locations \3 -H 'Authorization: Api-Token dt0c01.abc123.abcdefjhij1234567890'
Request URL
1https://mySampleEnv.live.dynatrace.com/api/v1/synthetic/locations
Response body
1{2 "locations": [3 {4 "name": "Amazon US East (N. Virginia)",5 "entityId": "GEOLOCATION-95196F3C9A4F4215",6 "type": "PUBLIC",7 "cloudPlatform": "AMAZON_EC2",8 "ips": [9 "134.189.153.97",10 "134.189.153.98",11 "134.189.153.99"12 ]13 },14 {15 "name": "AWS Europe (London)",16 "entityId": "GEOLOCATION-A9022AAFA0763F56",17 "type": "PUBLIC",18 "cloudPlatform": "AMAZON_EC2",19 "ips": [20 "243.22.221.174",21 "104.179.71.29"22 ]23 },24 {25 "name": "Gdansk HTTP",26 "entityId": "SYNTHETIC_LOCATION-9C75B59442498323",27 "type": "PRIVATE"28 }29 ]30}
Response code
200