配置和获取NTP服务器参数
# 配置和获取NTP服务器参数
# 配置NTP服务器参数
Path:
/api/ntp
Method: PUT
Content-type: application/json; charset=utf-8
接口描述: 配置终端同步时间服务器,播放同步节目时接口生效
请求参数
名称 | 类型 | 示例 | 描述 |
---|---|---|---|
ntpserver | String | ntp1.aliyun.com | ntp时间服务器 |
ntpinterval | long | 600000 | 同步时间间隔 |
ntpthreshold | int | 2000 | 同步时间阈值 |
请求示例
{
"ntpserver": "192.168.1.33",
"ntpinterval": 600000,
"ntpthreshold": 2000
}
# 获取NTP服务器配置信息
Path:
/api/ntp.json
Method: GET
Content-type: application/json; charset=utf-8
接口描述: 获取ntp服务器配置信息
响应参数
名称 | 类型 | 示例 | 描述 |
---|---|---|---|
ntpserver | String | ntp1.aliyun.com | ntp时间服务器 |
ntpinterval | long | 600000 | 同步时间间隔 |
ntpthreshold | int | 2000 | 同步时间阈值 |
响应示例
{
"ntpserver": "192.168.1.33",
"ntpinterval": 600000,
"ntpthreshold": 2000
}