Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Announcement: Try the Ask AI chatbot for answers to your technical questions about Juniper products and solutions.

close
header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
REST API Version 17.0 References
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

GET /system/servers/{server_id}/timezones

date_range 24-May-22

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

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

Table 1: GET /system/servers/{server_id}/timezones resource details:

GET /system/servers/{server_id}/timezones resource details

MIME Type

application/json

Table 2: GET /system/servers/{server_id}/timezones request parameter details:

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:

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

content_copy zoom_out_map
[
    {
        "id": "String",
        "offset": 42,
        "timezone": "String"
    }
]
footer-navigation