华为乾坤-预览模板应用中的设备配置:响应示例

时间:2025-02-17 11:37:58

响应示例

返回状态码为200:Successful operation

HTTP/1.1 200 OK
Date: Fri,03 Dec 2021 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
{
    "huawei-nce-aoc-config-template-application:preview": {
        "content": "{\"snmpUser\":{\"usm-user-cmplx-check\":true,\"password-min-length\":12,\"version\":\"v3\"}}{\"interface\":[{\"name\":\"test1\",\"type\":\"GigabitEthernet\",\"level\":\"L3\",\"description\":\"ddd\"}]}{\"te\":{\"global\":{\"teAttributeEnable\":false},\"config-status\":\"initial\",\"affinity-define\":{\"description\":\"dd\"}}}"
    }
}

返回状态码为400:Bad Request

HTTP/1.1 400 Bad Request
Date: Fri,30 Dec 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive
support.huaweicloud.com/qiankuncmn-qiankuncs/toctopics/zh-cn_topic_0000002159168809.html