Reference data API - GET time zones
Lists all time zones that your account uses.
The request produces an application/json
payload.
GET |
|
Authentication
To execute this request, you need the Allow read access for environment resources (account-env-read
) scope assigned to your token. To learn how to obtain and use it, see Authentication.
Parameters
The request doesn't provide any configurable parameters.
Response
Response codes
Code | Type | Description |
---|---|---|
200 | TimeZoneDto[] | Success. The response contains the list of time zones. |
Response body objects
The ResponseBody
object
The TimeZoneDto
object
Element | Type | Description |
---|---|---|
displayName | string | The UTC-based name of the time zone. |
name | string | The standard name of the time zone. |
Response body JSON model
1[2 {3 "displayName": "string",4 "name": "string"5 }6]
Example
In this example, the request lists all time zones of the account with the UUID of 9ad20784-76c6-4167-bfba-9b0d8d72a71d. The result is truncated to three entries.
Curl
1curl --request GET \2 --url https://api.dynatrace.com/ref/v1/time-zones \3 --header 'Authorization: Bearer abcdefjhij1234567890'
Request URL
1https://api.dynatrace.com/ref/v1/time-zones
Response body
1[2 {3 "displayName": "UTC+00:00 Universal Time Coordinated",4 "name": "UTC"5 },6 {7 "displayName": "UTC-07:00 Arizona",8 "name": "America/Arizona"9 },10 {11 "displayName": "UTC+01:00 Central European Time",12 "name": "Europe/Berlin"13 }14]
Response code
200