Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 

GET /system/servers/{server_id}/timezones

 

Retrieves all the available time zones that can be set for a server.

Retrieves all the avaliable time zones that can be set for a server.

Table 1: GET /system/servers/{server_id}/timezones Resource Details

MIME Type

application/json

Table 2: GET /system/servers/{server_id}/timezones Request Parameter Details

Parameter

Type

Optionality

Data Type

MIME Type

Description

server_id

path

Required

Number (Integer)

text/plain

Required - The ID of the server

fields

query

Optional

String

text/plain

Optional - Use this parameter to specify which fields you would like to get back in the response. Fields that are not named are excluded. Specify subfields in brackets and multiple fields in the same object are separated by commas.

Table 3: GET /system/servers/{server_id}/timezones Response Codes

HTTP Response Code

Unique Code

Description

200

 

The requested timezone records were retrieved.

404

1002

The requested timezone records with the given server ID cannot be found.

422

1005

One or more parameters are invalid in the request.

500

1020

An error occurred during the attempt to retrieve the requested timezone records with the given server Id.

500

1022

Timeout during the performance of the task.

Response Description

A list of timezones that contains the following fields:

  • id - String - the ID of time zone

  • timezone - String - The formatted string representation of the timezone in the current locale.

  • offset - Interger - Number of milliseconds offset to UTC time at the moment.

Response Sample