华为乾坤-创建交换机终端扫描规则配置:响应示例

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

响应示例

返回状态码为201:创建成功,响应体参考TerminalScanResponse。

HTTPS 201 OK
Date: Jan,13 Fri 2023 10:00:00 GMT
Server: example-server
Content-Type: application/json
{
  "errcode": "0",
  "errmsg": "",
  "data": {
    "id": "f0039bfc-5cf0-1f24-2865-86016a8a83c0",
    "name": "scanRule",
    "description": "scanRule",
    "scanType": [
      "Real-time","Periodic"
    ],
    "scanPeriod": 30,
    "scanRangeList": [
      {
        "id": "e555c570-2247-a16e-03e4-033e142474da",
        "sourceIp": "xxx",
        "vlanId": 1234,
        "scanIp": "xxx",
        "mask": 24,
        "description": "scanRange"
      }
    ],
    "vendors": [
      "huawei","hikvision","dahua","uniview","tplink"
    ],
    "categories": "ip-camera"
  }
}

返回状态码为400:接口调用失败,响应体参考CommonErrorDto。

HTTPS 400 ERROR
Date: Jan,13 Fri 2023 10:00:00 GMT
Server: example-server
Content-Type: application/json
{
  "errcode":"0x00c80014",
  "errmsg":"data not exist",
  "errdesc": "",
  "errreason": "",
  "errdetail": "",
  "erradvice": ""
}

返回状态码为500:内部错误,响应体参考CommonErrorDto。

HTTPS 500 ERROR
Date: Jan,13 Fri 2023 10:00:00 GMT
Server: example-server
Content-Type: application/json
{
  "errcode":"0x00c80018",
  "errmsg":"internal error",
  "errdesc": "",
  "errreason": "",
  "errdetail": "",
  "erradvice": ""
}
support.huaweicloud.com/qiankuncmn-qiankuncs/toctopics/zh-cn_topic_0000002128678946.html