Geographic regions API - GET countries
Lists countries and their codes.
The request produces an application/json
payload.
GET | ManagedDynatrace for Government | https://{your-domain}/e/{your-environment-id}/api/v2/rum/countries |
SaaS | https://{your-environment-id}.live.dynatrace.com/api/v2/rum/countries | |
Environment and Cluster ActiveGate (default port 9999) | https://{your-activegate-domain}:9999/e/{your-environment-id}/api/v2/rum/countries |
Authentication
To execute this request, you need an access token with geographicRegions.read
scope.
To learn how to obtain and use it, see Tokens and authentication.
Parameters
The request doesn't provide any configurable parameters.
Response
Response codes
Code | Type | Description |
---|---|---|
200 | CountryList | Success. The response contains the list of countries. |
Response body objects
The CountryList
object
The list of countries.
Element | Type | Description |
---|---|---|
countries | Country[] | The list of countries. |
countryCount | integer | The number of countries. |
The Country
object
Information about a country.
Element | Type | Description |
---|---|---|
code | string | The ISO code of the country. |
name | string | The name of the country. |
Response body JSON model
1{2 "countries": [3 {4 "code": "FR",5 "name": "France"6 },7 {8 "code": "BE",9 "name": "Belgium"10 }11 ],12 "countryCount": 25213}