华为乾坤-查询模板内容:响应示例

时间:2025-02-17 11:38:18

响应示例

返回状态码为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:output": {
                   "raw-content": "---\n'@stmt-extend': \"00000000-0000-0000-0000-000000000000:中国区\"\n"
         }
}
查询生效模板内容的响应示例
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:output": {
                   "effective-content": "---\nhuawei-nce-e-vlan:vlan:\n- vlan-id: 1\n  name: \"name1\"\n  description: \"desc1\"\n  mac-learning: \"enable\"\n- vlan-id: 2\n  name: \"name2\"\n  description: \"desc2\"\n  mac-learning: \"enable\"\n"
         }
}

返回状态码为400:Bad Request

HTTP/1.1 400 Bad Request
Date: Thu,05 Jan 2023 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_0000002124127178.html