• Home
  • Dynatrace API
  • Account management
  • Reference data
  • GET time zones

Reference data API - GET time zones

Lists all time zones that your account uses.

The request produces an application/json payload.

GET

https://api.dynatrace.com/ref/v1/time-zones

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

CodeTypeDescription
200TimeZoneDto[]

Success. The response contains the list of time zones.

Response body objects

The ResponseBody object

The object doesn't provide any parameters.

The TimeZoneDto object

ElementTypeDescription
displayNamestring

The UTC-based name of the time zone.

namestring

The standard name of the time zone.

Response body JSON model

json
[ { "displayName": "string", "name": "string" } ]

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

bash
curl --request GET \ --url https://api.dynatrace.com/ref/v1/time-zones \ --header 'Authorization: Bearer abcdefjhij1234567890'

Request URL

plaintext
https://api.dynatrace.com/ref/v1/time-zones

Response body

json
[ { "displayName": "UTC+00:00 Universal Time Coordinated", "name": "UTC" }, { "displayName": "UTC-07:00 Arizona", "name": "America/Arizona" }, { "displayName": "UTC+01:00 Central European Time", "name": "Europe/Berlin" } ]

Response code

200