Lists cities of a region.
The request produces an application/json payload.
| GET | SaaS | https://{your-environment-id}.live.dynatrace.com/api/v2/rum/cities/{countryCode}/{regionCode} |
| Environment ActiveGateCluster ActiveGate | https://{your-activegate-domain}:9999/e/{your-environment-id}/api/v2/rum/cities/{countryCode}/{regionCode} |
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.
| Parameter | Type | Description | In | Required |
|---|---|---|---|---|
| countryCode | string | The ISO code of the required country. To fetch the list of available country codes, use the GET all countries request. | path | required |
| regionCode | string | The code of the required region. To fetch the list of available region codes, use the GET regions of the country request. | path | required |
| Code | Type | Description |
|---|---|---|
| 200 | Country | Success. The response contains the list of region's cities. |
| 404 | Error | Failed. The requested resource doesn't exist. |
| 4XX | Error | Client side error. |
| 5XX | Error | Server side error. |
CountryWithRegionsWithCities objectInformation about a country.
| Element | Type | Description |
|---|---|---|
| countryCode | string | The ISO code of the country. |
| countryName | string | The name of the country. |
| regionCount | integer | The number of regions in the country. |
| regions | Region | The list of regions in the country. |
RegionWithCities objectInformation about a country's region and its cities.
| Element | Type | Description |
|---|---|---|
| cities | City[] | The list of cities in the region. |
| cityCount | integer | The number of cities in a region of a country. |
| code | string | The code of the region. |
| name | string | The name of the region. |
City objectInformation about a city.
| Element | Type | Description |
|---|---|---|
| latitude | number | The latitude of the city. |
| longitude | number | The longitude of the city. |
| name | string | The name of the city. |
{"countryCode": "FR","countryName": "France","regionCount": 13,"regions": [{"cities": [{"latitude": 46.2806,"longitude": 6.7217,"name": "Abondance"},{"latitude": 46.1008,"longitude": 3.4463,"name": "Abrest"}],"cityCount": 4,"code": "ARA","name": "Auvergne-Rhone-Alpes"}]}