Skip to main content

We've Moved!

Product Documentation has moved to docs.hitachivantara.com
Hitachi Vantara Knowledge

Set system clock

Update the timezone, and system clock, using either separate date/time values or posixTime, which is the number of seconds since the 1st January 1970.

Any updates to date, time or timezone may cause momentary issues with accessing the system, as certificates may become outdated, or not yet valid. Access should recover within a short time, but it may not be possible to issue more REST API requests straight after changing the system clock.

Note: It is not possible to change both the timezone and the date/time in the same request. If both need to be changed, two separate requests must be made.

HTTP request syntax (URI)
PATCH <base_URI>/v8/storage/file-devices/system-clock
Parameters
Name Type Required Values Description
fileOnlyBODYN booleanWhether to update only the file component of a Unified system. Default is False.
posixTimeBODYNintegerNumber of seconds since 1st January 1970. If supplied, will be used in preference of any supplied date and time parameters.
timezoneBODYNstringTimezone – details of acceptable timezones can be retrieved using the Get timezones API call.
dateBODYNstringDate of the form YYYY-MM-DD
timeBODYNstringTime of the form HH:MM:SS
Return codes
Code Data Description
204 No DataSystem clock successfully updated.
400 Error Message Missing or invalid request contents.
403Error MessageOperation forbidden by access level.
500 Error message Error associated with the storage system.

Any HTTP status code other than 204 indicates that the API did not complete successfully.

Request example: Set the date and time
curl -vk -H "X-Api-Key: zrxvSDAv9x.RIP4gkmKarG3beF.or.4Tc2im7oeqYN88C9XPGHxbXC" https://172.17.11.11:8444/v8/storage/file-devices/system-clock -X PATCH -d '{"date":"2022-08-01", "time":"11:57:00"}'
Response example
HTTP/1.1 204 No Content
Request example: Set the timezone
curl -vk -H "X-Api-Key: zrxvSDAv9x.RIP4gkmKarG3beF.or.4Tc2im7oeqYN88C9XPGHxbXC" https://172.17.11.11:8444/v8/storage/file-devices/system-clock -X PATCH -d '{"timezone":"Europe/Andorra"}'
Response example
HTTP/1.1 204 No Content

 

  • Was this article helpful?