华为乾坤-查询终端:响应示例

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

响应示例

返回状态码为200:查询成功的信息。响应体参考TerminalMgrTerminalListDto。

HTTP/1.1 200 OK
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
{
	"errcode" : "0",
	"errmsg" : "",
	"pageIndex" : 1,
	"pageSize" : 10,
	"totalRecords" : 30,
	"data" : [
		{
			"id" : "62008e2c-6bf2-48ea-a17c-d278c594d83a",
			"terminalmac" : "11-11-11-11-11-11",
			"terminalGroupId" : "22fbb5f2-d07e-4710-94ac-7705517ab842",
			"terminalGroupBsId" : "00000-00001",
			"isBlocked" : true,
			"isApproved" : 1,
			"expirationDate" : "2020-02-02",
			"bindingDeviceMac" : "11-11-11-11-11-11",
			"bindingDevicePort" : "GigabitEthernet0/0/1",
			"bindingDeviceName" : "2102351LKB1234567890",
			"description" : "update",
			"accessPosition" : "ssid",
			"status" : "offline",
			"ecology" : "iConnect/hlink",
			"createTime" : "1571710215000",
			"firstLoginTime" : "1571710215000",
			"loginTime" : "1571710215000",
			"lastLogoutTime" : "1571710215000",
			"serialNumber" : "SN10219210",
			"terminalType" : "normal",
			"deviceId" : "22fbb5f2-d07e-4710-94ac-7705517ab842",
			"terminalIP" : "192.168.0.1",
			"syncType" : 1,
			"selfDefineId" : "22849cf7-c144-4699-929a-9954f227b3e6",
			"selfDefineName" : "生产区",
			"deviceTypeId" : "3324",
			"deviceTypeName" : "手机",
			"osId" : "17985",
			"osName" : "Windows 10",
			"deviceType" : "手机",
			"vendor" : "华为",
			"model" : "P40 Pro",
			"accessSsid" : "FreeWiFi"
		}
	]
}

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