最近更新时间:2024.03.28 17:09:34
首次发布时间:2024.03.28 17:09:34
根据访问控制规则ID查询访问控制规则
下表仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数。
参数 | 类型 | 是否必填 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | DescribeControlPolicyByRuleId | 要执行的操作,取值:DescribeControlPolicyByRuleId |
Version | String | 是 | 2021-09-06 | API的版本,取值:2021-09-06 |
Direction | String | 是 | in | 访问控制策略的流量方向。取值:
|
RuleIds | Array of String | 是 | ["f04ac7ce-628b-4cb7-be61-310222b7****"] | 访问控制策略唯一标识列表 |
下表仅列出本接口特有的返回参数。更多信息请参见返回结构
参数 | 类型 | 示例值 | 描述 |
---|---|---|---|
Data | Array of DescribeControlPolicyStructure | 参见结构示例值 | 返回的访问控制规则数据 |
POST /DescribeControlPolicyByRuleId { "RuleIds": [ "fe6b5edc-8c54-40b6-9a85-*****" ], "Direction": "in" }
{ "ResponseMetadata": { "RequestID": "*****", "Service": "", "Region": "", "Action": "DescribeControlPolicyByRuleId", "Version": "2021-09-06" }, "Result": { "Data": [ { "AccountId": "*****", "Direction": "in", "RuleId": "fe6b5edc-8c54-40b6-9a85-*****", "Prio": 1, "Proto": "TCP", "Action": "monitor", "Status": true, "HitCnt": 2, "Description": "10087观察", "Source": "0.0.0.0/0", "SourceType": "net", "SourceGroupType": "", "Destination": "10.249.217.204", "DestinationType": "net", "DestinationGroupType": "", "DestPort": "10087", "DestPortType": "port", "DestPortGroupType": "", "SourceCidrList": [ "0.0.0.0/0" ], "DestinationCidrList": [ "10.249.217.204" ], "DestPortList": [ "10087" ], "UseCount": 1 } ] } }
下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。
状态码 | 错误码 | 错误信息 | 说明 |
---|---|---|---|
400 | InvalidParameter | Invalid Parameter | 无效的参数 |
400 | QueryDbFailed | Query configuration failed | 查询数据库失败 |
400 | BadRequest | The http request is bad due to some reason: %s. | 由于某些原因,http请求不正确 |
400 | MissingParameter | The required parameter %s is missing. | 缺少所需的参数 |
500 | InternalError | Internal service error. %s | 内部服务错误 |