查询ACL
更新时间:2023-09-11
描述
查询ACL信息。
请求结构
GET /v{version}/acl?vpcId={vpcId} HTTP/1.1
Host: bcc.bj.baidubce.com
Authorization: authorization string
请求头域
除公共头域外,无其它特殊头域。
请求参数
参数名称 | 类型 | 是否必需 | 参数位置 | 描述 |
---|---|---|---|---|
version | String | 是 | URL参数 | API版本号 |
vpcId | String | 是 | Query参数 | vpc的ID |
返回头域
除公共头域,无其它特殊头域。
返回参数
参数名称 | 类型 | 描述 |
---|---|---|
vpcId | String | VPC的ID |
vpcName | String | VPC的名称 |
vpcCidr | String | VPC的CIDR |
aclEntrys | List<AclEntry> | ACL的Entry列表 |
请求示例
GET /v1/acl?vpcId=vpc-rkyh223g7vh4 HTTP/1.1
Host: bcc.bj.baidubce.com
authorization: bce-auth-v1/c3119080364d11e8912505e5e0ae9978/2018-04-02T08:14:25Z/3600/host;x-bce-account;x-bce-client-ip;x-bce-date;x-bce-request-id;x-bce-security-
token/6b93bfd5ca2328fcb5560fa57f56253d80a629f6aac9c9cb74adf9a055fceb53
返回示例
HTTP/1.1 200 OK
x-bce-request-id: 7e789a40-adac-414a-8bd4-916d6be61112
Date: Mon, 02 Apr 2018 08:14:25 GMT
Content-Type: application/json;charset=UTF-8
Server: BWS
{
"vpcId": "vpc-rkyh223g7vh4",
"vpcName": "test01",
"vpcCidr": "192.168.0.0/16",
"aclEntrys": [
{
"subnetId": "sbn-svz99ha4a40w",
"subnetName": "subnet01",
"subnetCidr": "192.168.0.0/20",
"aclRules": [
{
"id": "ar-ik9p9zq6u5ry",
"subnetId": "sbn-svz99ha4a40w",
"description": "",
"protocol": "tcp",
"sourceIpAddress": "192.168.0.0",
"destinationIpAddress": "192.168.0.0/20",
"sourcePort": "1-65535",
"destinationPort": "443",
"position": 2,
"direction": "ingress",
"ipVersion": 4,
"action": "allow"
}
]
}
]
}