/mgmt/status/default/DateTimeStatus GET

Use the HTTP GET method with the /mgmt/status/default/DateTimeStatus resource to request date and time settings and information from the appliance.

Resource URL

https://host:port/mgmt/status/default/DateTimeStatus
Where port is 5554 by default.

Request headers

The following header must be sent with the request:
Authorization
This header must be sent to perform authentication.

Request body format

None.

Security requirements

The caller must be authenticated as an appliance user with sufficient authority. For more information about security, see Types of user and how they are authenticated and User authorization, credential mapping, and access profiles.

Response status codes

200
Status information retrieved successfully.
400
Invalid data provided.
401
Not authenticated.
The caller must be authenticated as an appliance user. See Types of user and how they are authenticated for more information.
403
Not authorized.
The caller is authenticated but does not the authority to perform this action. See User authorization, credential mapping, and access profiles for more information.

Response headers

Content-Type
This header is returned with a value of application/json.

Response body format

The response is in JSON format. The response includes the data and time information for the appliance. Each object contains the following fields:
time
String.
The current local time.
timezone2
String.
The name of the time zone currently in effect.
tzspec
String.
The POSIX.1 timezone specification.
uptime2
String.
The total amount of time the appliance has been up since the last reload or reboot. Note that a shutdown and reload resets this counter.
bootuptime2
String.
The total amount of time since the last reboot. Note that this counter is reset by a shutdown and reboot, but not by a shutdown and reload.

Examples

The following example requests date and time information from the appliance.

The following URL is used with the HTTP GET method:
https://localhost:5554/mgmt/status/default/DateTimeStatus
The following listing shows the received response:
{
  "_links": {
    "self": {
      "href": "/mgmt/status/default/DateTimeStatus"
    },
    "doc": {
      "href": "/mgmt/docs/status/DateTimeStatus"
    }
  },
  "DateTimeStatus": {
    "time": "Wed Jan 2 10:52:41 2019",
    "timezone": "GMT",
    "tzspec": "GMT0BST,M3.5.0/1:00,M10.5.0/2:00",
    "uptime2": "50 days 01:00:55",
    "bootuptime2": "50 days 01:01:41"
  }
}