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

时间:2025-02-17 11:36:21

响应示例

返回状态码为200:成功

HTTP/1.1 200 OK
Date: Thu,21 Dec 2023 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" : {
		"change-template-infos" : [
			{
				"template-id" : "58f9035e-ce63-4c6c-b588-7998c7c9168b",
				"template-name" : "test",
				"change-template-content": "---\nhuawei-nce-e-ifm:interface:\n- name: \"GE1/1/1\"\n  ifm-class: \"main-interface\"\n  type: \"GE\"\n  number: \"1/1/1\"\n  level: \"L2\"\n  link-up-down-trap-enable: true\n  admin-status: \"down\"\n  description: \"description\"\n"
			}
		],
		"process" : 50,
		"total" : 10
	}
}

返回状态码为400:失败

HTTP/1.1 400 Bad Request
Date: Thu,21 Dec 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_0000002124127266.html