Query ACL
Updated at:2025-10-16
Description
View ACL information.
Request structure
Plain Text
1GET /v{version}/acl?vpcId={vpcId} HTTP/1.1
2Host: bcc.bj.baidubce.com
3Authorization: authorization string
Request headers
There are no special headers required beyond the common headers.
Request parameters
| Parameter name | Types | Whether required | Parameter location | Description |
|---|---|---|---|---|
| version | String | Yes | URL parameter | For API version No., the current value is 1 |
| vpcId | String | Yes | Query | VPC ID |
Response headers
No special headers are required beyond the standard ones.
Response parameters
| Parameter name | Types | Description |
|---|---|---|
| vpcId | String | VPC ID |
| vpcName | String | Name of VPC |
| vpcCidr | String | VPC CIDR |
| aclEntrys | List<[AclEntry](VPC/API Reference/Appendix.md#AclRule)> | Entry list of the ACL |
Request example
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
Response example
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
