配置主机名
消息实例
{
"header": {
"msg_id": "741aec66-99b2-4d97-aaf2-63d27f53bbc5",
"parent_msg_id": "",
"timestamp": 1550107087319,
"sync": false
},
"route": {
"source": "EdgeManager",
"group": "hardware",
"operation": "update",
"resource": "websocket/config_hostname"
},
"content": {
}
}
参数说明
{
"hostname": "g000121002000220010-ipc01"
}
一级资源 |
描述 |
类型 |
取值范围 |
|---|---|---|---|
hostname |
主机名 |
string |
只支持配置一个名字,新配置直接覆盖旧配置,1~63字节,不允许为空。 主机名配置规范如下:
配置主机名后,通过通用接口返回结果,主动触发一次静态信息上报。 |
返回结果
{
"header":{
"msg_id":"5d7f1e5f-2e8d-41dc-b620-5318eb6a7962",
"parent_msg_id": "",
"timestamp":1652261771062,
"sync": false
},
"route":{
"source":"hardware",
"group":"hub",
"operation":"update",
"resource":"websocket/config_result"
},
"content":"{"topic": "config_hostname", "percentage": "100%", "result": "success", "reason": ""}"
}
父主题: 下行消息接口