Set and Get NTP Server Parameters
# Set and Get NTP Server Parameters
# Set NTP Server Parameters
Path:
/api/ntp
Method: PUT
Content-type: application/json; charset=utf-8
API Description: This can be used to set the NTP server. This API takes effect when playing synchronized program.
Request
Name | Type | Example | Description |
---|---|---|---|
ntpserver | String | ntp1.aliyun.com | NTP time server |
ntpinterval | long | 600000 | Synchronization interval for the system clock |
ntpthreshold | int | 2000 | Synchronization time threshold |
Example
{
"ntpserver": "192.168.1.33",
"ntpinterval": 600000,
"ntpthreshold": 2000
}
# Get NTP Server Configuration Information
Path:
/api/ntp.json
Method: GET
Content-type: application/json; charset=utf-8
API Description: This can be used to get the NTP server's configuration information.
Response
Name | Type | Example | Description |
---|---|---|---|
ntpserver | String | ntp1.aliyun.com | NTP time server |
ntpinterval | long | 600000 | Synchronization interval for the system clock |
ntpthreshold | int | 2000 | Synchronization time threshold |
Example
{
"ntpserver": "192.168.1.33",
"ntpinterval": 600000,
"ntpthreshold": 2000
}