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

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

响应示例

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

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" : "",
	"total" : 10,
	"data" : [
		{
			"id" : "a91e169602a24a68bad4aa639359c8cf",
			"timeFlowName" : "one",
			"siteId" : "75f8ed0f-810a-4ff5-8e64-67c81312d01c",
			"siteIdList" : [
				 "33f8ed0f-810a-4ff5-8e64-67c81312d012"
			],
			"enableTrafficLimitMode" : true,
			"trafficLimitMode" : 1,
			"trafficLimit" : 34,
			"trafficLimitValue" : 34,
			"enableDurationLimitMode" : true,
			"durationLimitMode" : 1,
			"durationLimit" : 34,
			"durationLimitValue" : 34,
			"isReCount" : true,
			"isAnonymous" : false,
			"userGroupIds" : [
				 "33f8ed0f-810a-4ff5-8e64-67c81312d012"
			],
			"description" : "a policy",
			"policyType" : 1,
			"oneTimeValue" : 60,
			"terminalTimeValue" : 1440,
			"terminalTimeUnit" : 1,
			"terminalFlowValue" : 1024,
			"terminalFlowUnit" : 1,
			"terminalReCountEnable" : true,
			"redirectEnable" : false,
			"redirectUrl" : "https://xxx.xxx.xxx.xxx"
		}
	]
}

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