You need to enable JavaScript to run this app.
导航

DescribeVpcFirewallAclRuleList - 获取vpc边界流量控制网关规则列表

最近更新时间2024.03.28 17:09:34

首次发布时间2024.03.28 17:09:34

获取vpc边界流量控制网关规则列表

调试

请求参数

下表仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数

参数
类型
是否必填
示例值
描述
Action
String

DescribeVpcFirewallAclRuleList

要执行的操作,取值:DescribeVpcFirewallAclRuleList

Version
String

2021-09-06

API的版本,取值:2021-09-06

VpcFirewallId
String

vfw-****

VPC边界防火墙实例ID

PageNumber
Integer

1

当前页码

PageSize
Integer

10

分页大小

Source
String

10.0.0.0/0

访问控制策略的源地址,支持模糊查询

Destination
String

10.0.0.0/0

访问控制策略的目的地址,支持模糊查询

Proto
Array of String

["ICMP"]

协议

Action
Array of String

["accept"]

访问控制策略的动作

Status
Array of Boolean

[false]

访问控制策略的状态

RuleId
String

f04ac7ce-628b-4cb7-be61-310222b7****

访问控制策略的唯一标识

Description
String

test

描述信息

返回参数

下表仅列出本接口特有的返回参数。更多信息请参见返回结构

参数
类型
示例值
描述
TotalCount
Integer

1

返回数据总数量
当查询数据为空时,且使用python SDK调用时此项为None

PageSize
Integer

1

返回数据的分页大小

PageNumber
Integer

1

返回数据的当前页码

Count
Integer

1

返回数据的实际数量
当查询数据为空时,且使用python SDK调用时此项为None

Data
Array of VpcFwRuleStructure

参见结构示例值

返回的vpc rule数据

请求示例

POST /DescribeVpcFirewallAclRuleList HTTP/1.1

{"VpcFirewallId":"vfw-ycmvbaiku8tz35******"}

返回示例

{
    "ResponseMetadata":{
        "RequestID":"2023100720365381D6E985*****",
        "Service":"",
        "Region":"",
        "Action":"DescribeVpcFirewallAclRuleList",
        "Version":"2021-09-06"
    },
    "Result":{
        "TotalCount":1,
        "PageSize":1,
        "CurrentPage":1,
        "Count":1,
        "Data":[
            {
                "AccountId":"2100*******",
                "RuleId":"f3d94384-78ba-431a-*****",
                "VpcFirewallId":"",
                "VpcFirewallName":"创建完后再新购高级版本",
                "Prio":1,
                "Source":"192.168.3.1/32",
                "SourceType":"net",
                "SourceGroupType":"",
                "Destination":"192.168.4.1/32",
                "DestinationType":"net",
                "DestinationGroupType":"",
                "DestPort":"23",
                "DestPortType":"port",
                "DestPortGroupType":"",
                "Proto":"TCP",
                "Action":"accept",
                "Status":false,
                "Description":"",
                "HitCnt":0,
                "UseCount":1,
                "SourceCidrList":[
                    "192.168.3.1/32"
                ],
                "DestinationCidrList":[
                    "192.168.4.1/32"
                ],
                "DestPortList":[
                    "23"
                ]
            }
        ]
    }
}

错误码

下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。

状态码
错误码
错误信息
说明
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.

缺少所需的参数

400
NotFound.VpcFirewall
The specified Vpc Firewall does not exist.

指定vpc防火墙不存在

500
InternalError
Internal service error. %s

内部服务错误