Getting the system date and time of a storage system

REST API Reference Guide for Virtual Storage Platform 5000, Virtual Storage Platform E Series, and Virtual Storage Platform G/F Series

Version
93-07-0x
90-09-0x
88-08-10
Audience
anonymous
Part Number
MK-98RD9014-17
The following request gets the system date and time of a storage system.
Note:

You can use this API function for VSP E series, VSP G350, G370, G700, G900, VSP F350, F370, F700, F900.

Execution permission

Storage Administrator (View Only)

Request line

GET base-URL/v1/objects/date-times/instance

Request message

Object ID

Specify instance.

If an object has only one instance, the instance is the fixed value that specifies the object ID.

Query parameters

None.

Body

None.

Response message

Body
{
  "isNtpEnabled": true,
  "ntpServerNames": [
    "192.0.2.200"
  ],
  "timeZoneId": "America/Los_Angeles",
  "systemTime": "2016-07-20T17:02:12Z",
  "synchronizingLocalTime": "22:00",
  "adjustsDaylightSavingTime": true
}

Attribute

Type

Description

isNtpEnabled

boolean

Whether to synchronize the time with the NTP server
  • true: Synchronize the time with the NTP server
  • false: Do not synchronize the time with the NTP server

ntpServerNames

string[]

The IP address or host name of the NTP server

This attribute is displayed if the time is synchronized with the NTP server.

timeZoneId

string

Time zone ID

systemTime

ISO8601string

System date and time (UTC)

synchronizingLocalTime

string

Synchronization time with the NTP server (local time)

This attribute is displayed if the time is synchronized with the NTP server.

adjustsDaylightSavingTime

boolean

Whether to automatically adjust for daylight saving time

This attribute is displayed if the time zone supports daylight saving time.
  • true: Adjust for daylight saving time
  • false: Do not adjust for daylight saving time

Status codes

The following table describes the meaning of the status code of the request for this operation. For details on other status codes, see the description of HTTP status codes.

Status code

Message

Description

412

Precondition Failed

The microcode version of the storage system does not support this operation.

Coding example

curl -v -H "Accept:application/json" -H "Content-Type:application/json" -H "Authorization:Session d7b673af189048468c5af9bcf3bbbb6f" -X GET https://192.0.2.100/ConfigurationManager/v1/objects/date-times/instance