配置网管信息

消息实例

{
    "header": {
        "msg_id": "741aec66-99b2-4d97-aaf2-63d27f53bbc5",
        "parent_msg_id": "",
        "timestamp": 1550107087319,
        "sync": false
    },
    "route": {
        "source": "EdgeManager",
        "group": "hardware",
        "operation": "update",
        "resource": "websocket/netmanager"
    },
    "content": {
    }
}

参数说明

content:

{
    "address": "127.0.0.1",
    "account": "root",
    "password": "123456",
    "test": true
}

一级资源

描述

类型

取值范围

address

网管IP地址

string

目前仅支持IPv4地址或为空,如果address为空,表示不需要修改。

account

网管帐号

string

1~256个字符,当需要修改address或address为空时,需要下发网管帐号和网管密码。表示FusionDirector对接帐号,默认账号为EdgeAccount。采用默认EdgeAccount对接成功之后,对接账号会自动采用FusionDirector下发的新的一机一密重新对接。一机一密账户和密码由FusionDirector的业务微服务自生成,详细参考《FusionDirector 维护指南》

password

网管密码

string

表示FusionDirector对接密码。取值为8~32个字符。

test

是否在网管生效前测试网管是否可用

bool

取值为:

  • true:需要测试
  • false:不需要测试

返回结果

{
    "header":{
        "msg_id":"5a955ef7-3bbd-4603-ad7e-1e9e5dd09862",
        "parent_msg_id": "",
        "timestamp":1652261182356,
        "sync": false
    },
    "route":{
        "source":"hardware",
        "group":"hub",
        "operation":"update",
        "resource":"websocket/config_result"
    },
    "content":"{"topic": "netmanager", "percentage": "100%", "result": "success", "reason": ""}"
}