华为乾坤-查询mac帐号:响应示例
时间:2025-05-12 15:32:14
响应示例
返回状态码为200:查询成功返回结果,响应体参考MacDataList。
HTTP/1.1 200 OK Date: Sun,11 May 2025 10:00:00 GMT Server: example-server Content-Type: application/json;charset=UTF-8 Content-Length: 250 Connection: keep-alive { "pageIndex" : 0, "pageSize" : 1000, "totalRecords" : 1000, "errcode" : "0", "errmsg" : "", "data" : [ { "name" : "macAccountName", "description" : "mac test", "terminalMacs" : ["11-11-11-11-11-11","22-22-22-22-22-22"], "userGroupId" : "a7953ba5-2779-4fb4-aaf0-6f39fac19c5e", "roleIds" : ["a7953ba5-2779-4fb4-aaf0-6f39fac19c5e"], "email" : "xxx@example.com", "telephone" : "1xxxxxxxxxx", "validPeriodLong" : "1571710215000", "bindAccessInfo" : { "bindDeviceInfo" : [ { "deviceIp" : "10.1.1.1", "port" : "G0/0/1", "vlan" : "3377" } ], "bindAccDeviceInfo" : [ { "deviceIp" : "10.1.1.1", "port" : "G0/0/1", "vlan" : "3377" } ], "bindEsn" : "21500829352SH1903955,21500829352SH1903977", "bindIP" : "10.1.1.1,10.1.1.2" }, "fields" : [ { "customFieldId" : "ea25fdbf-8dee-4823-bac2-5bfe8e3359cb", "customFieldValue" : "aaa" } ], "supportDpsk" : false, "dpsk" : "", "id" : "d50a4732-f933-410b-88c0-7adf0ba59550", "userGroupPath" : "ROOT\\Guest" } ] }
返回状态码为400:校验异常。
HTTP/1.1 400 Bad Request Date: Sun,11 May 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,11 May 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_0000002164038849.html