NTP

Configures, modifies and retrieves NTP server configuration. The URI to configure data for NTP servers is:

/system/ntp

The URI to add NTP server configuration using POST method is:

/system
{
   "openconfig-system:ntp" : {
      "servers" : {
         "server" : [
            {
               "config" : {
                  "address" : "xx.xx.xx.xx"
               },
               "address" : "xx.xx.xx.xx"
            }
         ]
      },
      "config" : {
         "enabled" : false
      }
   }
}

The URI to modify NTP server configuration using PATCH method is:

/system/ntp
{
   "openconfig-system:ntp" : {
      "servers" : {
         "server" : [
            {
               "config" : {
                  "address" : "xx.xx.xx.xx"
               },
               "address" : "xx.xx.xx.xx"
            }
         ]
      },
      "config" : {
         "enabled" : false
      }
   }
}
DELETE method
/system/ntp

Supported HTTP Operations

GET method

URL: https://<host>/restconf/data/system/ntp
Request body: None

Response body:  
   {
   "openconfig-system:ntp" : {
      "servers" : {
         "server" : [
            {
               "config" : {
                  "address" : "xx.xx.xx.xx"
               },
               "address" : "xx.xx.xx.xx"
            },
            {
               "config" : {
                  "address" : "3001::1"
               },
               "address" : "3001::1"
            },
            {
               "config" : {
                  "address" : "ntp.ruckuswireless.com"
               },
               "address" : "ntp.ruckuswireless.com"
            }
         ]
      },
      "config" : {
         "enabled" : false
      }
   }
}

PATCH method

URL: https://<host>/restconf/data/system/ntp	
Request body:
 	{
   "openconfig-system:ntp" : {
      "servers" : {
         "server" : [
            {
               "config" : {
                  "address" : "90.90.90.90"
               },
               "address" : "90.90.90.90"
            },
            {
               "config" : {
                  "address" : "xx.xx.xx.xx"
               },
               "address" : "xx.xx.xx.xx"
            },
            {
               "config" : {
                  "address" : "3001::1"
               },
               "address" : "3001::1"
            },
            {
               "config" : {
                  "address" : "ntp.ruckuswireless.com"
               },
               "address" : "ntp.ruckuswireless.com"
            }
         ]
      },
      "config" : {
         "enabled" : false
      }
   }
}
Response body: None

PUT method
URL: https://<host>/restconf/data/system/ntp	
Request body:
 	{
   "openconfig-system:ntp" : {
       "config" : {
            "enabled": "false"
       },
      "servers" : {
         "server" : [
            {
               "config" : {
                  "address" : "xx.xx.xx.xx"
               },
               "address" : "xx.xx.xx.xx"
            },
            {
               "config" : {
                  "address" : "5001::1"
               },
               "address" : "5001::1"
            },
            {
               "config" : {
                  "address" : "stp.ruckuswireless.com"
               },
               "address" : "stp.ruckuswireless.com"
            }
         ]
      }
   }
}
 
Response body: None

DELETE method

URL: https://<host>/restconf/data/system/ntp
URL: https://<host>/restconf/data/system/ntp/servers/server=xx.xx.xx.xx
URL: https://<host>/restconf/data/system/ntp/config/enabled
Request body: None

Response body: None