1. 设置的ntp server需要携带端口,与ntp server查询结果格式保持一致,例如: "centos.pool.ntp.org:123" 2. 设备重启后,自定义设置的ntp server会丢失,使用默认的ntp server
X-User-Token: ********************
{ "device_sn": "8PHDM8L0010322", "device_cmd_data": { "ntp_mode": "CUSTOM", "ntp_server": "ntp.aliyun.com:123" } }
curl --location --request POST 'https://es-flight-api-cn.djigate.com/openapi/v1.0/manage/api/v1/organizations//manage-devices/cmds/set-ntp-conf' \ --header 'X-Request-Id: {{$string.uuid}}' \ --header 'X-User-Token: <api-key>' \ --header 'Content-Type: application/json' \ --data-raw '{ "device_sn": "8PHDM8L0010322", "device_cmd_data": { "ntp_mode": "CUSTOM", "ntp_server": "ntp.aliyun.com:123" } }'
{ "code": 0, "message": "OK", "data": { "bid": "0644b7c7-f424-4163-85bf-fb40455ed7d1", "tid": "", "timestamp": 0, "status": "ok", "job_document": null, "data": null, "output": { "status": "ok" } } }