NTP优先级1-100, <=0表示不使用
GPS优先级1-100, <=0表示不使用。只有支持GPS的设备才有意义
{
"registerServer": {
"addr": "string",
"port": 0,
"proto": "string",
"keepAliveInterval": 0,
"username": "string",
"password": "string"
},
"timeSource": {
"timeZone": 0,
"dst": true,
"ntpPriority": 0,
"gpsPriority": 0,
"ntpServer": {
"addr": [
"string"
],
"port": [
0
],
"updateInterval": 0
}
},
"reserveServer": {
"addr": "string",
"port": 0,
"proto": "string",
"keepAliveInterval": 0,
"username": "string",
"password": "string"
}
}
curl --location --request POST 'https://192.168.88.32:9781/bvcsp/v1/pu/serverconfigs/' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data-raw '{
"registerServer": {
"addr": "string",
"port": 0,
"proto": "string",
"keepAliveInterval": 0,
"username": "string",
"password": "string"
},
"timeSource": {
"timeZone": 0,
"dst": true,
"ntpPriority": 0,
"gpsPriority": 0,
"ntpServer": {
"addr": [
"string"
],
"port": [
0
],
"updateInterval": 0
}
},
"reserveServer": {
"addr": "string",
"port": 0,
"proto": "string",
"keepAliveInterval": 0,
"username": "string",
"password": "string"
}
}'
{
"code": 0,
"msg": "string"
}