Lists countries and their codes.
The request produces an application/json payload.
| GET | SaaS | https://{your-environment-id}.live.dynatrace.com/api/v2/rum/countries |
| Environment ActiveGateCluster ActiveGate | https://{your-activegate-domain}:9999/e/{your-environment-id}/api/v2/rum/countries |
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.
The request doesn't provide any configurable parameters.
| Code | Type | Description |
|---|---|---|
| 200 | Country | Success. The response contains the list of countries. |
| 4XX | Error | Client side error. |
| 5XX | Error | Server side error. |
CountryList objectThe list of countries.
| Element | Type | Description |
|---|---|---|
| countries | Country[] | The list of countries. |
| countryCount | integer | The number of countries. |
Country objectInformation about a country.
| Element | Type | Description |
|---|---|---|
| code | string | The ISO code of the country. |
| name | string | The name of the country. |
ErrorEnvelope object| Element | Type | Description |
|---|---|---|
| error | Error | - |
Error object| Element | Type | Description |
|---|---|---|
| code | integer | The HTTP status code |
| constraintViolations | Constraint | A list of constraint violations |
| message | string | The error message |
ConstraintViolation objectA list of constraint violations
| Element | Type | Description |
|---|---|---|
| location | string | - |
| message | string | - |
| parameterLocation | string | -The element can hold these values
|
| path | string | - |
{"countries": [{"code": "FR","name": "France"},{"code": "BE","name": "Belgium"}],"countryCount": 252}
{"error": {"code": 1,"constraintViolations": [{"location": "string","message": "string","parameterLocation": "HEADER","path": "string"}],"message": "string"}}