• Home
  • Dynatrace API
  • Environment
  • RUM
  • Geographic regions
  • GET cities of a region

Geographic regions API - GET cities of a region

Lists cities of a region.

The request produces an application/json payload.

GETManaged https://{your-domain}/e/{your-environment-id}/api/v2/rum/cities/{countryCode}/{regionCode}
SaaS https://{your-environment-id}.live.dynatrace.com/api/v2/rum/cities/{countryCode}/{regionCode}
Environment ActiveGate https://{your-activegate-domain}/e/{your-environment-id}/api/v2/rum/cities/{countryCode}/{regionCode}

Authentication

To execute this request, you need an access token with Read Geographic regions (geographicRegions.read) scope. To learn how to obtain and use it, see Tokens and authentication.

Parameters

ParameterTypeDescriptionInRequired
countryCodestring

Specify the country code to query.

pathrequired
regionCodestring

Specify the region code to query.

pathrequired

Response

Response codes

CodeTypeDescription
200RegionList

Success

404ErrorEnvelope

Failed. The requested resource doesn't exist.

Response body objects

The RegionList object

An ordered list of regions for a given country

ElementTypeDescription
countryNamestring

Country name

Can be null.

countryCodestring

Country code

Can be null.

regionCountinteger

Number of regions

Can be null.

regionsRegion[]

An ordered list of regions.

Can be null.

The Region object

The information about a region for a given country

ElementTypeDescription
namestring

Region name

Can be null.

codestring

Region code

Can be null.

citiesCity[]

An order list of cities for a given region

Can be null.

The City object

The information about a city

ElementTypeDescription
namestring

City name

Can be null.

latitudenumber

Latitude of city

Can be null.

longitudenumber

Longitude of city

Can be null.

Response body JSON model

json
{ "CountryName": "France", "CountryCode": "FR", "regionCount": 13, "regions": [ { "name": "Auvergne-Rhone-Alpes", "code": "ARA", "cities": [ { "name": "Abondance", "latitude": 46.2806, "longitude": 6.7217 }, { "name": "Abrest", "latitude": 46.1008, "longitude": 3.4463 } ] } ] }
Related topics
  • Real User Monitoring

    Learn about Real User Monitoring, key performance metrics, mobile app monitoring, and more.

  • Detection of IP addresses, geolocations, and user agents

    Learn how Dynatrace detects IP addresses and geolocations like a city, region, and country as well as browsers, devices, and operating systems.