ModifyVpcFirewallSwitchStatus
Modifies the switch status of virtual private cloud (VPC) firewalls at the border that protect traffic between two VPCs connected over Express Connect.
Operation description
This operation modifies the switch status of virtual private cloud (VPC) firewalls at the border. The virtual private cloud (VPC) firewalls at the border protect traffic between two VPCs connected over Express Connect. After you enable the virtual private cloud (VPC) firewalls at the border, the mutual access traffic between the two VPCs connected over Express Connect is protected by the virtual private cloud (VPC) firewalls at the border. After the shutdown of the virtual private cloud (VPC) firewalls at the border, the virtual private cloud (VPC) firewalls at the border no longer protect the mutual access traffic between the two VPCs connected over Express Connect.
Before you invoke this operation, you must have invoked the CreateVpcFirewallConfigure operation to create virtual private cloud (VPC) firewalls at the border.
QPS limit
The QPS limit per user for this operation is 10. If the number of invocations per second exceeds the limit, throttling is triggered, which may affect your services. Make invocations at a reasonable rate.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-cloudfirewall:ModifyVpcFirewallSwitchStatus |
update |
*VpcFirewall
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Lang |
string |
No |
The language of the request and response. Valid values:
|
zh |
| VpcFirewallId |
string |
Yes |
The instance ID of the virtual private cloud (VPC) firewalls at the border. Note
You can invoke the DescribeVpcFirewallList operation to query the instance ID of the virtual private cloud (VPC) firewalls at the border. |
vfw-m5e7dbc4y**** |
| FirewallSwitch |
string |
Yes |
Settings for the switch status of virtual private cloud (VPC) firewalls at the border. Valid values:
|
open |
| MemberUid |
string |
No |
The UID of the member accounts of the current Alibaba Cloud account. |
258039427902**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. |
850A84D6-0DE4-4797-A1E8-00090125afj2 |
Examples
Success response
JSON format
{
"RequestId": "850A84D6-0DE4-4797-A1E8-00090125afj2"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 200 | ErrorDBUpdateError | A database update error occurred. | A database update error occurred. |
| 400 | ErrorFirewallSwitch | The firewall enabling parameter is incorrect. Please select again. | The specified switch of the firewall is invalid. Enter another value. |
| 400 | ErrorDBTxError | A database transaction error occurred. | The error message returned because an internal error has occurred in the database transaction. |
| 400 | ErrorRecordLog | An error occurred while updating the operation log. | An error occurred while updating the operation log. |
| 400 | ErrorAliUid | Aliuid invalid. | The aliuid is invalid. |
| 400 | ErrorInvalidMemberUid | Member uid is invalid | The member is invalid. |
| 400 | ErrorFirewallId | Firewall ID is invalid. | The ID of the firewall is invalid. |
| 400 | ErrorVpcFirewallNotFound | Vpc firewall not found. | The specified VPC firewall does not exist. Select another one. |
| 400 | ErrorDBSelectError | A database select error occurred. | The error message returned because an internal error has occurred in querying the database. |
| 400 | ErrorNetworkInterfaceNotFound | The NIC of the firewall is invalid. Check its configurations. | The NIC of the firewall is invalid. Check the parameter. |
| 400 | ErrorFirewallCannotOpen | The firewall status is invalid, can not open. | The firewall cannot be enabled because the status of the firewall is invalid. Try again later. |
| 400 | ErrorVpcFirewall.CannotOpen | VPC firewall '{vpc_firewall_id}' cannot be opened in current state '{current_state}'. Reason: {reason}. Please wait {retry_after_seconds} seconds and retry. | VPC firewall '{vpc_firewall_id}' cannot be opened in current state '{current_state}'. Reason: {reason}. Please wait {retry_after_seconds} seconds and retry. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.