/system/time

Resource URI

/system/time

HTTP GET

Retrieves information for system time.

GET /system/time

Method

Response Payload

JSON

{
    "system_time": {
    "time": "Fri Oct 26 19:15:39 2012",
    "zone": "America/New_York",
    "utc": "no",
    "syncntp": "yes",
    "ntpserver": [
      {
        "addr": "0.centos.pool.ntp.org",
        "iburst": "false",
        "maxpoll": "10",
        "minpoll": "6"
      },
      {
        "addr": "1.centos.pool.ntp.org",
        "iburst": "false",
        "maxpoll": "10",
        "minpoll": "6"
      },
      {
        "addr": "2.centos.pool.ntp.org",
        "iburst": "false",
        "maxpoll": "10",
        "minpoll": "6"
      }
    ]
  }
}

HTTP PUT

Modifies system time.

PUT /system/time

Method Request Payload Response Payload
JSON

{
       "system_time":
       {
           "zone": "America/xyz",
           "utc": "yes",
           "syncntp": "yes",
       }
}

{
    "system_time":
    "time": "Fri Oct 26 19:15:39 2012",
    "zone": "America/xyz",
    "utc": "yes",
    "syncntp": "yes",
    "ntpserver": [
      {
        "addr": "0.centos.pool.ntp.org",
        "iburst": "false",
        "maxpoll": "10",
        "minpoll": "6"
      },
      {
        "addr": "1.centos.pool.ntp.org",
        "iburst": "false",
        "maxpoll": "10",
        "minpoll": "6"
      },
      {
        "addr": "2.centos.pool.ntp.org",
        "iburst": "false",
        "maxpoll": "10",
        "minpoll": "6"
      }
    ]
  }
}