Queries the information about the access control policies for a specified virtual private cloud (VPC) firewall.
Operation description
You can call the DescribeVpcFirewallControlPolicy operation to query the information about all access control policies that are created for a specified VPC firewall. Different access control policies are used when a VPC firewall is used to protect traffic between two VPCs that are connected by using a Cloud Enterprise Network (CEN) instance or an Express Connect circuit.
Limits
You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
yundun-cloudfirewall:DescribeVpcFirewallControlPolicy | get |
|
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
Lang | string | No | The language of the content within the request and response. Valid values:
| zh |
VpcFirewallId | string | Yes | The instance ID of the VPC firewall. Valid values:
Note
You can call the DescribeVpcFirewallAclGroupList operation to query the ID.
| vfw-a42bbb7b887148c9**** |
CurrentPage | string | Yes | The number of the page to return. | 1 |
PageSize | string | Yes | The number of entries to return on each page. Maximum value: 50. | 10 |
Source | string | No | The source address in the access control policy. Fuzzy match is supported. Note
The value of this parameter can be a CIDR block or an address book name.
| 192.0.XX.XX/24 |
Destination | string | No | The destination address in the access control policy. Fuzzy match is supported. Note
The value of this parameter can be a CIDR block or an address book name.
| 192.0.XX.XX/24 |
Description | string | No | The description of the access control policy. Fuzzy match is supported. | test |
Proto | string | No | The protocol type in the access control policy. Valid values:
Note
If you do not specify this parameter, access control policies of all protocol types are queried.
| TCP |
AclAction | string | No | The action that Cloud Firewall performs on the traffic. Valid values:
Note
If you do not specify this parameter, access control policies are queried based on all actions.
| accept |
MemberUid | string | No | The UID of the member that is managed by your Alibaba Cloud account. | 258039427902**** |
AclUuid | string | No | The unique ID of the access control policy. | 4037fbf7-3e39-4634-92a4-d0155247**** |
Release | string | No | The status of the access control policy. Valid values:
| true |
RepeatType | string | No | The recurrence type for the access control policy to take effect. Valid values:
| Permanent |
Response parameters
Examples
Sample success responses
JSON
format
{
"TotalCount": "20",
"RequestId": "CBF1E9B7-D6A0-4E9E-AD3E-2B47E6C2837D",
"Policys": [
{
"Destination": "192.0.XX.XX/24",
"Order": 1,
"DestPortGroup": "my_port_group",
"SourceType": "net",
"ApplicationName": "HTTP",
"AclUuid": "4037fbf7-3e39-4634-92a4-d0155247****",
"DestPortType": "port",
"Source": "192.0.XX.XX/24",
"DestinationType": "net",
"HitTimes": 100,
"DestPort": "80",
"Description": "test",
"AclAction": "accept",
"ApplicationId": "10**",
"Proto": "TCP",
"DestinationGroupCidrs": [
"[\"192.0.XX.XX/24\", \"192.0.XX.XX/32\"]"
],
"DestPortGroupPorts": [
"[80,443]"
],
"SourceGroupCidrs": [
"[\"192.0.XX.XX/24\", \"198.51.XX.XX/32\"]"
],
"MemberUid": "258039427902****",
"Release": "true",
"SourceGroupType": "ip",
"DestinationGroupType": "ip",
"HitLastTime": 1579261141,
"ModifyTime": 1761062400,
"SpreadCnt": 0,
"CreateTime": 1761062400,
"ApplicationNameList": [
"[\n \"HTTPS\", \n \"SMTPS\", \n \"SSL\"\n]"
],
"DomainResolveType": "FQDN",
"RepeatType": "Permanent",
"RepeatDays": [
1
],
"RepeatStartTime": "08:00",
"RepeatEndTime": "23:30",
"StartTime": 1694761200,
"EndTime": 1694764800
}
]
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | ErrorParametersUid | The aliUid parameter is invalid. | The aliUid parameter is invalid. |
400 | ErrorParametersPageSizeOrNo | Either pageSize or pageNo is invalid. | Either pageSize or pageNo is invalid. |
400 | ErrorDBSelect | An error occurred while querying database. | An error occurred while querying database. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2024-08-08 | The Error code has changed. The response structure of the API has changed | View Change Details |
2023-10-12 | The Error code has changed. The request parameters of the API has changed. The response structure of the API has changed | View Change Details |
2023-09-14 | The Error code has changed. The response structure of the API has changed | View Change Details |
2023-09-11 | The Error code has changed. The response structure of the API has changed | View Change Details |