Product Documentation

ntp_server

Oct 20, 2015

NTP Server

Properties

Name Data Type Read-Only? Description
ntpserver
<String>
No

IP address or hostname of NTP server.

Maximum value = 255

Operations

注意

Mandatory parameters are marked in red and placeholder content is marked in <green>.

ADD

Use this operation to add a NTP server

HTTP Method: POST

URL: https://<cb_ip_address>/cb/nitro/v1/config/ntp_server

Request Headers:

Authorization: Basic <base64 encoded(username:password)>
Content-Type: application/vnd.com.citrix.cloudbridge.ntp_server+json

Request Payload: JSON

{"ntp_server":{
"ntpserver": <string_value>
}}

Response Headers:

Content-Type: application/vnd.com.citrix.cloudbridge.ntp_server+json

Response Payload: JSON

{"ntp_server":{
"ntpserver": <string_value>
}}

DELETE

Use this operation to delete a NTP server

HTTP Method: DELETE

URL: https://<cb_ip_address>/cb/nitro/v1/config/ntp_server/<ntpserver>

Request Headers:

Authorization: Basic <base64 encoded(username:password)>

Response Payload: EMPTY

GET (ALL)

Use this operation to get NTP servers.

HTTP Method: GET

URL: https://<cb_ip_address>/cb/nitro/v1/config/ntp_server

Request Headers:

Authorization: Basic <base64 encoded(username:password)>
Accept: application/vnd.com.citrix.cloudbridge.ntp_server_list+json

Response Headers:

Content-Type: application/vnd.com.citrix.cloudbridge.ntp_server_list+json

Response Payload: JSON

{"ntp_server": [{
"ntpserver": <string_value>
}, ...]}

GET

Use this operation to get NTP servers.

HTTP Method: GET

URL: https://<cb_ip_address>/cb/nitro/v1/config/ntp_server/<ntpserver>

Request Headers:

Authorization: Basic <base64 encoded(username:password)>
Accept: application/vnd.com.citrix.cloudbridge.ntp_server+json

Response Headers:

Content-Type: application/vnd.com.citrix.cloudbridge.ntp_server+json

Response Payload: JSON

{"ntp_server":{
"ntpserver": <string_value>
}}