华为乾坤-查询在线用户:响应示例

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

响应示例

返回状态码为200:查询成功。响应体参考QueryPortalOnlineUserInfoOutputDto。

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" : "",
		"totalRecords" : 1,
		"data" : [
			{
				"id" : "2eab8922-a37d-4355-9788-33caade63b5a",
				"userId" : "43218922-a37d-43b2-9788-33caade63b5a",
				"userName" : "user1",
				"userGroupId" : "12345678-a37d-43b2-9788-33caade63b",
				"userGroupName" : "ROOT\\Guest",
				"siteId" : "11111111-a37d-43b2-9788-33caade63b5a",
				"loginTime" : 1541389780672,
				"deviceId" : "34567890-a37d-43b2-9788-33caade63b5a",
				"accessPolicy" : "policy_for_guest",
				"onlineuserTerminalIp" : "10.10.10.10",
				"terminalMac" : "XX-XX-XX-XX-XX-XX",
				"ssid" : "portal-guest",
				"authMode" : "1",
				"userType" : "0",
				"imsi" : "150000000000000",
				"imei" : "150000000000000",
				"mobileTerminalInfo" : "APN={APN},MSISDN={MSISDN},ULI={ULI},RAT={RAT}",
				"name" : "",
				"authPolicy" : "authrule01",
				"uclGroupName" : "uclGroup01",
				"terminalDeviceType" : "Mobile Phone/Huawei/Mate 30 5G",
				"osName" : "Google/Android/Android 4.4.X",
				"remoteIAEName" : "IAE01",
				"deviceIp" : "10.10.10.10",
				"devicePort" : "GigabitEthernet0/0/8",
				"deviceVlan" : "1",
				"accessResultId" : "44567890-a37d-43b2-9788-33caade63b5b",
				"accessResultName" : "accessResult01",
				"nasPortId" : "slot=0;sublot=0;port=8;vlanid=1;interfaceName=GigabitEthernet0/0/8",
				"telephone" : "8615000000000",
				"accessDeviceIp" : "10.10.10.10",
				"accessDevicePort" : "GigabitEthernet0/0/8",
				"accessDeviceVlan" : "1",
				"accessDeviceMac" : "XX-XX-XX-XX-XX-XX",
				"natTerminalIp" : "10.10.10.10",
				"natStartPort" : "10235",
				"natEndPort" : "10260",
				"autoAccess" : false,
				"hasMdmInfo" : false,
				"role" : "",
				"securityGroupId" : "",
				"stationId" : "",
				"sysName" : "",
				"terminalGroup" : "",
				"vipType" : "",
				"bypassScene" : "",
				"externalGroupName" : "/group"
			}
		]
	}
]

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