Copies all access control policies from a policy group of a source virtual private cloud (VPC) firewall to a policy group of a destination VPC firewall.
Operation description
You can call the BatchCopyVpcFirewallControlPolicy operation to copy all access control policies from a policy group of a source VPC firewall to a policy group of a destination VPC firewall.
Before you call this operation, we recommend that you back up access control policies. For more information about how to back up an access control policy, see Back up an access control policy.
After you call this operation, all the access control policies in the policy group of the destination VPC firewall are replaced.
The policy groups of the source VPC firewall and the destination VPC firewall must belong to the same Alibaba Cloud account.
Limits
You can call this operation up to 10 times per second per account. When the number of calls to this operation per second exceeds the limit, throttling is triggered. Throttling may affect your business. We recommend that you take note of the limit on 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:BatchCopyVpcFirewallControlPolicy | update |
|
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
SourceIp | string | No | The source IP address of the request. | 192.0.XX.XX |
Lang | string | No | The language of the content within the request and response. Valid values:
| zh |
SourceVpcFirewallId | string | Yes | The ID of the policy group of the source VPC firewall. Valid values:
Note
You can call the DescribeVpcFirewallAclGroupList operation to query the IDs of policy groups.
| vfw-a42bbb7b887148c9**** |
TargetVpcFirewallId | string | Yes | The ID of the policy group of the destination VPC firewall. Valid values:
Note
You can call the DescribeVpcFirewallAclGroupList operation to query the IDs of policy groups.
| vfw-e37d3a04cf79446a**** |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "850A84D6-0DE4-4797-A1E8-00090125k6j3"
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | ErrorParametersUid | The aliUid parameter is invalid. | The aliUid parameter is invalid. |
400 | ErrorParametersSource | The source is invalid. | The source is invalid. |
400 | ErrorDBSelect | An error occurred while querying database. | An error occurred while querying database. |
400 | ErrorParametersTarget | Target VPC Firewall ID not exist. | Target VPC Firewall ID not exist. |
400 | ErrorParametersSourceTarget | Source and target firewall is same. | Source and target firewall is same. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2024-01-23 | The Error code has changed | View Change Details |