华为乾坤-网络规划查询:响应示例

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

响应示例

返回状态码为200:查询成功。

{
  "errcode": "0",
  "errmsg": "",
  "data": {
    "id": "242214f2-8a69-4b48-bf8c-1988e78cb9be",
    "siteId": "1c5e4554-aee4-4f62-ac3e-1460d6a6e3bf",
    "tenantId": "120196a60c6e4dde8a024a6f2039869b",
    "progress": 100,
    "deviceCreationResult": {
      "successList": [
        {
          "id": "8015be0e-0e38-4dba-8378-bf7451d62393",
          "name": "CORE1",
          "esn": "2102355HUL2023021801",
          "type": "S16700-4",
          "deviceRole": "CORE",
          "description": "",
          "stackName": null,
          "stackSlotId": null,
          "stackPriority": null,
          "wacEsn": "",
          "wacName": null,
          "mlagName": "CORE",
          "mlagMode": "active-active",
          "mlagPriority": 150
        },
        {
          "id": "e83febb7-6894-4bc9-ad40-85c242a85d59",
          "name": "CORE2",
          "esn": "2102355HUN0123451108",
          "type": "S16700-4",
          "deviceRole": "CORE",
          "description": "",
          "stackName": null,
          "stackSlotId": null,
          "stackPriority": null,
          "wacEsn": "",
          "wacName": null,
          "mlagName": "CORE",
          "mlagMode": "active-active",
          "mlagPriority": null
        },
        {
          "id": "6cb43fa7-c79c-4f77-baa7-8b13501365c9",
          "name": "AGG1_1",
          "esn": "102225213523",
          "type": "S6730-H24X6C-V2",
          "deviceRole": "AGG",
          "description": "",
          "stackName": null,
          "stackSlotId": null,
          "stackPriority": null,
          "wacEsn": "",
          "wacName": null,
          "mlagName": "AGG1",
          "mlagMode": "active-active",
          "mlagPriority": 150
        },
        {
          "id": "19556b05-96f4-4ce0-b613-e82d520524f5",
          "name": "AGG1_2",
          "esn": "102358054998",
          "type": "S6730-H48X6CZ-V2",
          "deviceRole": "AGG",
          "description": "",
          "stackName": null,
          "stackSlotId": null,
          "stackPriority": null,
          "wacEsn": "",
          "wacName": null,
          "mlagName": "AGG1",
          "mlagMode": "active-active",
          "mlagPriority": null
        }
      ],
      "failedList": []
    },
    "boardCreationResult": {
      "successList": [
        {
          "devId": "8015be0e-0e38-4dba-8378-bf7451d62393",
          "deviceName": "CORE1",
          "slotId": "slot3",
          "slotType": "LSH7C36HX1E0"
        },
        {
          "devId": "e83febb7-6894-4bc9-ad40-85c242a85d59",
          "deviceName": "CORE2",
          "slotId": "slot3",
          "slotType": "LSH7C36HX1E0"
        },
        {
          "devId": "8015be0e-0e38-4dba-8378-bf7451d62393",
          "deviceName": "CORE1",
          "slotId": "slot2",
          "slotType": "LSH7L36QX1E0"
        },
        {
          "devId": "e83febb7-6894-4bc9-ad40-85c242a85d59",
          "deviceName": "CORE2",
          "slotId": "slot2",
          "slotType": "LSH7L36QX1E0"
        },
        {
          "devId": "8015be0e-0e38-4dba-8378-bf7451d62393",
          "deviceName": "CORE1",
          "slotId": "slot1",
          "slotType": "LSH7C18HX1E0"
        },
        {
          "devId": "e83febb7-6894-4bc9-ad40-85c242a85d59",
          "deviceName": "CORE2",
          "slotId": "slot4",
          "slotType": "LSH7X48SX1E0"
        }
      ],
      "failedList": []
    },
    "linkCreationResult": {
      "successList": [
        {
          "srcPortName": "100GE3/0/35",
          "srcDevName": "CORE1",
          "srcEthTrunk": "Eth-Trunk1",
          "srcEthPnpStartSwitchEnable": false,
          "dstPortName": "100GE3/0/34",
          "dstDevName": "CORE2",
          "dstEthTrunk": "Eth-Trunk1",
          "dstEthPnpStartSwitchEnable": false,
          "mlagLinkType": "peer-link",
          "mlagIpPoolName": "",
          "mlagId": null
        },
        {
          "srcPortName": "100GE3/0/35",
          "srcDevName": "CORE1",
          "srcEthTrunk": "Eth-Trunk1",
          "srcEthPnpStartSwitchEnable": false,
          "dstPortName": "100GE3/0/35",
          "dstDevName": "CORE2",
          "dstEthTrunk": "Eth-Trunk1",
          "dstEthPnpStartSwitchEnable": false,
          "mlagLinkType": "peer-link",
          "mlagIpPoolName": "",
          "mlagId": null
        },
        {
          "srcPortName": "100GE3/0/35",
          "srcDevName": "CORE1",
          "srcEthTrunk": "Eth-Trunk1",
          "srcEthPnpStartSwitchEnable": false,
          "dstPortName": "100GE3/0/34",
          "dstDevName": "CORE2",
          "dstEthTrunk": "Eth-Trunk1",
          "dstEthPnpStartSwitchEnable": false,
          "mlagLinkType": "peer-link",
          "mlagIpPoolName": "",
          "mlagId": null
        },
        {
          "srcPortName": "100GE3/0/35",
          "srcDevName": "CORE1",
          "srcEthTrunk": "Eth-Trunk1",
          "srcEthPnpStartSwitchEnable": false,
          "dstPortName": "100GE3/0/35",
          "dstDevName": "CORE2",
          "dstEthTrunk": "Eth-Trunk1",
          "dstEthPnpStartSwitchEnable": false,
          "mlagLinkType": "peer-link",
          "mlagIpPoolName": "",
          "mlagId": null
        },
        {
          "srcPortName": "40GE2/0/34",
          "srcDevName": "CORE1",
          "srcEthTrunk": "",
          "srcEthPnpStartSwitchEnable": true,
          "dstPortName": "40GE2/0/34",
          "dstDevName": "CORE2",
          "dstEthTrunk": "",
          "dstEthPnpStartSwitchEnable": false,
          "mlagLinkType": "dual-active-detect-link",
          "mlagIpPoolName": "1",
          "mlagId": null
        },
        {
          "srcPortName": "10GE1/0/3",
          "srcDevName": "AGG1_1",
          "srcEthTrunk": "Eth-Trunk1",
          "srcEthPnpStartSwitchEnable": false,
          "dstPortName": "10GE1/0/1",
          "dstDevName": "AGG1_2",
          "dstEthTrunk": "Eth-Trunk1",
          "dstEthPnpStartSwitchEnable": false,
          "mlagLinkType": "peer-link",
          "mlagIpPoolName": "",
          "mlagId": null
        },
        {
          "srcPortName": "10GE1/0/3",
          "srcDevName": "AGG1_1",
          "srcEthTrunk": "Eth-Trunk1",
          "srcEthPnpStartSwitchEnable": false,
          "dstPortName": "10GE1/0/2",
          "dstDevName": "AGG1_2",
          "dstEthTrunk": "Eth-Trunk1",
          "dstEthPnpStartSwitchEnable": false,
          "mlagLinkType": "peer-link",
          "mlagIpPoolName": "",
          "mlagId": null
        },
        {
          "srcPortName": "10GE1/0/3",
          "srcDevName": "AGG1_1",
          "srcEthTrunk": "Eth-Trunk1",
          "srcEthPnpStartSwitchEnable": false,
          "dstPortName": "10GE1/0/3",
          "dstDevName": "AGG1_2",
          "dstEthTrunk": "Eth-Trunk1",
          "dstEthPnpStartSwitchEnable": false,
          "mlagLinkType": "peer-link",
          "mlagIpPoolName": "",
          "mlagId": null
        },
        {
          "srcPortName": "10GE1/0/3",
          "srcDevName": "AGG1_1",
          "srcEthTrunk": "Eth-Trunk1",
          "srcEthPnpStartSwitchEnable": false,
          "dstPortName": "10GE1/0/1",
          "dstDevName": "AGG1_2",
          "dstEthTrunk": "Eth-Trunk1",
          "dstEthPnpStartSwitchEnable": false,
          "mlagLinkType": "peer-link",
          "mlagIpPoolName": "",
          "mlagId": null
        },
        {
          "srcPortName": "10GE1/0/3",
          "srcDevName": "AGG1_1",
          "srcEthTrunk": "Eth-Trunk1",
          "srcEthPnpStartSwitchEnable": false,
          "dstPortName": "10GE1/0/2",
          "dstDevName": "AGG1_2",
          "dstEthTrunk": "Eth-Trunk1",
          "dstEthPnpStartSwitchEnable": false,
          "mlagLinkType": "peer-link",
          "mlagIpPoolName": "",
          "mlagId": null
        },
        {
          "srcPortName": "10GE1/0/3",
          "srcDevName": "AGG1_1",
          "srcEthTrunk": "Eth-Trunk1",
          "srcEthPnpStartSwitchEnable": false,
          "dstPortName": "10GE1/0/3",
          "dstDevName": "AGG1_2",
          "dstEthTrunk": "Eth-Trunk1",
          "dstEthPnpStartSwitchEnable": false,
          "mlagLinkType": "peer-link",
          "mlagIpPoolName": "",
          "mlagId": null
        },
        {
          "srcPortName": "10GE1/0/3",
          "srcDevName": "AGG1_1",
          "srcEthTrunk": "Eth-Trunk1",
          "srcEthPnpStartSwitchEnable": false,
          "dstPortName": "10GE1/0/1",
          "dstDevName": "AGG1_2",
          "dstEthTrunk": "Eth-Trunk1",
          "dstEthPnpStartSwitchEnable": false,
          "mlagLinkType": "peer-link",
          "mlagIpPoolName": "",
          "mlagId": null
        },
        {
          "srcPortName": "10GE1/0/3",
          "srcDevName": "AGG1_1",
          "srcEthTrunk": "Eth-Trunk1",
          "srcEthPnpStartSwitchEnable": false,
          "dstPortName": "10GE1/0/2",
          "dstDevName": "AGG1_2",
          "dstEthTrunk": "Eth-Trunk1",
          "dstEthPnpStartSwitchEnable": false,
          "mlagLinkType": "peer-link",
          "mlagIpPoolName": "",
          "mlagId": null
        },
        {
          "srcPortName": "10GE1/0/3",
          "srcDevName": "AGG1_1",
          "srcEthTrunk": "Eth-Trunk1",
          "srcEthPnpStartSwitchEnable": false,
          "dstPortName": "10GE1/0/3",
          "dstDevName": "AGG1_2",
          "dstEthTrunk": "Eth-Trunk1",
          "dstEthPnpStartSwitchEnable": false,
          "mlagLinkType": "peer-link",
          "mlagIpPoolName": "",
          "mlagId": null
        },
        {
          "srcPortName": "10GE1/0/4",
          "srcDevName": "AGG1_1",
          "srcEthTrunk": "",
          "srcEthPnpStartSwitchEnable": true,
          "dstPortName": "10GE1/0/4",
          "dstDevName": "AGG1_2",
          "dstEthTrunk": "",
          "dstEthPnpStartSwitchEnable": false,
          "mlagLinkType": "dual-active-detect-link",
          "mlagIpPoolName": "1",
          "mlagId": null
        }
      ],
      "failedList": []
    },
    "stackCreationResult": {
      "successList": [],
      "failedList": []
    },
    "mlagGroupCreationResult": {
      "successList": [
        {
          "id": "1218fc42-7a6b-451a-a042-cfda7bab81f3",
          "name": "CORE",
          "groupId": 1,
          "mode": null,
          "mlagMember": [
            {
              "id": "8015be0e-0e38-4dba-8378-bf7451d62393",
              "name": "CORE1",
              "esn": "2102355HUL2023021801",
              "type": "S16700-4",
              "deviceRole": "CORE",
              "description": "",
              "stackName": null,
              "stackSlotId": null,
              "stackPriority": null,
              "wacEsn": "",
              "wacName": null,
              "mlagName": "CORE",
              "mlagMode": "active-active",
              "mlagPriority": 150
            },
            {
              "id": "e83febb7-6894-4bc9-ad40-85c242a85d59",
              "name": "CORE2",
              "esn": "2102355HUN0123451108",
              "type": "S16700-4",
              "deviceRole": "CORE",
              "description": "",
              "stackName": null,
              "stackSlotId": null,
              "stackPriority": null,
              "wacEsn": "",
              "wacName": null,
              "mlagName": "CORE",
              "mlagMode": "active-active",
              "mlagPriority": null
            }
          ]
        },
        {
          "id": "d12eed03-e7fd-4e0e-b4bb-113da7851514",
          "name": "AGG1",
          "groupId": 1,
          "mode": null,
          "mlagMember": [
            {
              "id": "6cb43fa7-c79c-4f77-baa7-8b13501365c9",
              "name": "AGG1_1",
              "esn": "102225213523",
              "type": "S6730-H24X6C-V2",
              "deviceRole": "AGG",
              "description": "",
              "stackName": null,
              "stackSlotId": null,
              "stackPriority": null,
              "wacEsn": "",
              "wacName": null,
              "mlagName": "AGG1",
              "mlagMode": "active-active",
              "mlagPriority": 150
            },
            {
              "id": "19556b05-96f4-4ce0-b613-e82d520524f5",
              "name": "AGG1_2",
              "esn": "102358054998",
              "type": "S6730-H48X6CZ-V2",
              "deviceRole": "AGG",
              "description": "",
              "stackName": null,
              "stackSlotId": null,
              "stackPriority": null,
              "wacEsn": "",
              "wacName": null,
              "mlagName": "AGG1",
              "mlagMode": "active-active",
              "mlagPriority": null
            }
          ]
        }
      ],
      "failedList": []
    }
  }
}

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