华为乾坤-认证设备查询列表:响应示例

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

响应示例

返回状态码为200:查询认证设备成功,响应体参考DeviceListApiDto。

HTTP/1.1 200 OK
Date: Tue,16 Aug 2022 10:00:00 GMT
Server: example-server
Content-Type: application/json
{
  "errcode" : "0",
  "errmsg" : "",
  "pageIndex" : "1",
  "pageSize" : "40",
  "totalRecords" : 1000,
  "data" : [
    {
      "name" : "device",
      "description" : "this is device",
      "ip" : "10.254.254.254",
      "backupIp" : "10.254.254.253",
      "deviceGroupId" : "5c37d9e8-cdf6-11e8-a4fc-286ed488df6b",
      "series" : "Cisco Catalyst",
      "enableRadius" : true,
      "radiusParam" : {
        "accountingKey" : "******",
        "authenKey" : "******",
        "coaPort" : 1700,
        "accountingPeriod" : 5,
        "macPwdEnable" : false,
        "macAuthPwd" : "******",
        "radiusServiceTypeEnable" : false,
        "radiusServiceTypeDevice" : 8,
        "radiusServiceTypeTerminal" : 4
      },
      "enablePortal" : true,
      "portalParam" : {
        "protol" : "CMCC Portal",
        "portalKey" : "******",
        "urlKey" : "******",
        "stations" : ["10.254.254.254"],
        "enableUserSync" : false,
        "port" : 80,
        "portalServiceTypeEnable" : true,
        "portalServiceTypeTerminal" : 4
      },
      "enableTacacs" : true,
      "tacacsParam" : {
        "key" : "******"
      },
      "id" : "5c37d9e8-cdf6-11e8-a4fc-286ed488df6b"
    }
  ]
}

返回状态码为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
support.huaweicloud.com/qiankuncmn-qiankuncs/toctopics/zh-cn_topic_0000002128679006.html