查询ACL
更新时间:2024-12-30
描述
查询ACL信息。
请求结构
                Plain Text
                
            
            1GET /v{version}/acl?vpcId={vpcId} HTTP/1.1   
2Host: bcc.bj.baidubce.com      
3Authorization: authorization string
            请求头域
除公共头域外,无其它特殊头域。
请求参数
| 参数名称 | 类型 | 是否必需 | 参数位置 | 描述 | 
|---|---|---|---|---|
| version | String | 是 | URL参数 | API版本号,当前取值为1 | 
| vpcId | String | 是 | Query参数 | VPC的ID | 
返回头域
除公共头域,无其它特殊头域。
返回参数
| 参数名称 | 类型 | 描述 | 
|---|---|---|
| vpcId | String | VPC的ID | 
| vpcName | String | VPC的名称 | 
| vpcCidr | String | VPC的CIDR | 
| aclEntrys | List<AclEntry> | ACL的Entry列表 | 
请求示例
                Plain Text
                
            
            1GET /v1/acl?vpcId=vpc-rkyh223g7vh4 HTTP/1.1
2Host: bcc.bj.baidubce.com
3Authorization: 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
            返回示例
                Plain Text
                
            
            1    HTTP/1.1 200 OK
2    x-bce-request-id: 7e789a40-adac-414a-8bd4-916d6be61112
3    Date: Mon, 02 Apr 2018 08:14:25 GMT
4    Content-Type: application/json;charset=UTF-8
5    Server: BWS
6    {
7       "vpcId": "vpc-rkyh223g7vh4", 
8       "vpcName": "test01", 
9       "vpcCidr": "192.168.0.0/16", 
10       "aclEntrys": [
11        {
12            "subnetId": "sbn-svz99ha4a40w", 
13            "subnetName": "subnet01", 
14            "subnetCidr": "192.168.0.0/20", 
15            "aclRules": [
16                {
17                    "id": "ar-ik9p9zq6u5ry", 
18                    "subnetId": "sbn-svz99ha4a40w", 
19                    "description": "", 
20                    "protocol": "tcp", 
21                    "sourceIpAddress": "192.168.0.0", 
22                    "destinationIpAddress": "192.168.0.0/20", 
23                    "sourcePort": "1-65535", 
24                    "destinationPort": "443", 
25                    "position": 2, 
26                    "direction": "ingress", 
27                    "ipVersion": 4, 
28                    "action": "allow"
29                }
30            ]
31        }
32     ]
33  }
34  
            