华为乾坤-通过设备id或者绑定id查询模板绑定:响应示例

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

响应示例

返回状态码为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-binding:output": {
        "template-binding": [
            {
                "template-binding-id": "bfa990a2-443b-4312-a94d-be4b584de5f9",
                "template-binding-name": "1705300910474",
                "unbound-status": false,
                "template": [
                    {
                        "template-id": "d9acd7df-d178-46b2-bac1-da56f034ba04",
                        "template-name": "12"
                    }
                ],
                "device": [
                    {
                        "device-id": "c7f62b8a-b6a0-478b-ad88-933c7aab1bcf",
                        "device-name": "apaas_test",
                        "deploy-status": "un-deploy",
                        "unbound-status": false,
                        "deploy-last-version": true,
                        "deploy-last-variable-version": false,
                        "override-variable": false,
                        "offline-mode": true
                    }
                ]
            }
        ]
    }
}

返回状态码为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_0000002159168821.html