NTP Settings   /rest/apv/system/NTPSettings
  • Relational-instance Queries:
  • GET
    /rest/apv/system/NTPSettings/ntp_server
    Query the NTP Servers info of the corresponding NTP Settings.
    Normal response codes
    200(OK)
    Error response codes
    401(unauthorized), 403(access forbidden), 404(no such instance), 500(internal service error), 501(unimplemented)
    Request parameters
    Parameter Type Description
    instance_id URI ID of the instance
    Response format
    {
        "NTPSettings": {
            "instance_id":<instance_id>,
            "ntp_server":[
               {
                <field1>:<value1>,
                <field2>:<value2>,
                ...
               }
            ]
        }
    }
                                
    Examples
  • POST
    /rest/apv/system/NTPSettings/ntp_server
    Create a NTP Server for corresponding NTP Settings
    Normal response codes
    200(successfully created)
    Error response codes
    401(unauthorized), 403(access forbidden), 500(internal service error), 501(unimplemented)
    Request format
            {
                <param1>:<value1>,
                <param2>:<value2>,
                ...
            }
                                        
    Request parameters
    Parameter Type Description
    ip ipaddr
    version enum Available values:
    • 1 (1)
    • 2 (2)
    • 3 (3)
    • 4 (4)
    Response format
            {
                "NTPServer": {
                    "instance_id":<instance_id>,
                    <param1>:<value1>,
                    <param2>:<value2>,
                    ...
                }
            }
                                        
    Response parameters
    Same as request parameters.
    Examples
  • DELETE
    /rest/apv/system/NTPSettings/ntp_server/<ntpserver_id>
    Delete a specific NTP Server of corresponding ntpsettings
    Normal response codes
    200(OK)
    Error response codes
    401(unauthorized), 403(access forbidden), 404(no such instance), 500(internal service error), 501(unimplemented)
    Response format
            {
                "msg": <success-or-error-msg>
            }
                                        
    Examples