华为乾坤-比较配置差异性:响应示例

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

响应示例

返回状态码为200:操作成功。

{
    "errcode": "0",
    "errmsg": "",
    "data": [
        {
            "compareType": 0,
            "objectId": "02fb5ed9-3ae4-4563-9973-34cabbc628b6",
            "configId": "9b61f430dd784affbc2fad92fcbc53a1",
            "configValues": [
                {
                    "attributeName":""
                    "configKey": "ap.basic.config",
                    "parentConfigKey": "",
                    "configName": "基本配置",
                    "strValue": null,
                    "boolValue": null,
                    "listValue": null,
                    "valueType": null,
                    "isDiff": null
                },
                {
                    "attributeName":"name"
                    "configKey": "ap.ssid.name",
                    "parentConfigKey": "ap.basic.config",
                    "configName": "SSID名称",
                    "strValue": "ssd1",
                    "boolValue": null,
                    "listValue": null,
                    "valueType": "STRING",
                    "isDiff": null
                }
            ]
        },
        {
            "compareType": 1,
            "objectId": "45fb5ed9-3ae4-4563-9973-34cabbc629b6",
            "configId": "9b61f430dd784affbc2fad92fcbc53a1",
            "configValues": [
                {
                    "attributeName":""
                    "configKey": "ap.basic.config",
                    "parentConfigKey": "",
                    "configName": "基本配置",
                    "strValue": null,
                    "boolValue": null,
                    "listValue": null,
                    "valueType": null,
                    "isDiff": null
                },
                {
                    "attributeName":"name"
                    "configKey": "ap.ssid.name",
                    "parentConfigKey": "ap.basic.config",
                    "configName": "SSID名称",
                    "strValue": "ssd1",
                    "boolValue": null,
                    "listValue": null,
                    "valueType": "STRING",
                    "isDiff": null
                }
            ]
        }
    ]
}

返回状态码为400:校验异常。

HTTP/1.1 400 Bad Request
Date: Sun,16 Feb 2025 10:00:00 GMT
Server: example-server
Content-Type: application/json;charset=UTF-8
Content-Length: 250
Connection: keep-alive

返回状态码为500:内部错误。

HTTP/1.1 500 Internal Server Error
Date: Sun,16 Feb 2025 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_0000002095718225.html