ModifyFirewallV2RoutePolicySwitch
Modifies the route policy switch.
Operation description
This operation modifies the route policy switch of the virtual private cloud (VPC) firewalls for a transit router (TR).
Before you begin
You have created virtual private cloud (VPC) firewalls for a transit router (TR) and obtained the FirewallId by calling CreateTrFirewallV2.
You have created a route policy and obtained the TrFirewallRoutePolicyId by calling CreateTrFirewallV2RoutePolicy.
You can call DescribeTrFirewallsV2List and DescribeTrFirewallV2RoutePolicyList to query and confirm the preceding resources.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-cloudfirewall:ModifyFirewallV2RoutePolicySwitch |
update |
*VpcCenTrFirewallPolicy
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Lang |
string |
No |
The language of the response message. Valid values:
|
zh |
| FirewallId |
string |
No |
The instance ID of the virtual private cloud (VPC) firewalls. Note: This parameter is actually required. If it is not provided, the operation returns ErrorParameters (-360103). |
vfw-tr-5b202e7f0be64611**** |
| TrFirewallRoutePolicyId |
string |
No |
The ID of the firewall route policy. Note: This parameter is actually required. If it is not provided or the policy does not exist, the operation returns ErrorTrFirewallPolicyNotFound (-361043). You can call DescribeTrFirewallV2RoutePolicyList to query valid route policy IDs. |
policy-93684cc5caa44b2e**** |
| TrFirewallRoutePolicySwitchStatus |
string |
No |
The status of the policy switch. Valid values:
Note: This parameter is actually required. If it is not provided or the value is not within the preceding range, the operation returns ErrorParameters (-360103). |
open |
| ShouldRecover |
string |
No |
Specifies whether to restore the traffic redirection configuration. Valid values:
|
false |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. |
1F6D4A8D-EC01-5996-A61A-AA3B56490C00 |
Examples
Success response
JSON format
{
"RequestId": "1F6D4A8D-EC01-5996-A61A-AA3B56490C00"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | ErrorAliUid | Aliuid invalid. | The aliuid is invalid. |
| 400 | ErrorParameters | Error Parameters | The parameter is invalid. |
| 400 | ErrorAuthentication | authentication error | The authentication failed. |
| 400 | ErrorDBTxError | A database transaction error occurred. | The error message returned because an internal error has occurred in the database transaction. |
| 400 | ErrorDBSelectError | A database select error occurred. | The error message returned because an internal error has occurred in querying the database. |
| 400 | ErrorIllegalRoutePolicyStatusUpdate | Can not update policy status. | Unable to update routing template status, please check if routing template status is being updated |
| 400 | ErrorFirewallUpdating | Can not modify firewall, firewall is updating. Please check if there is a routing policy updating. | The firewall cannot be operated. The firewall is in an updated state. Please check whether any drainage templates are being created, deleted, updated, opened or closed. |
| 400 | ErrorTrFwBackUpAssocationNotExist | Tr firewall back up association not Exist. | The routing table configuration before the drainage scenario is enabled cannot be obtained. The routing table before the drainage scenario is enabled may have been deleted. |
| 400 | ErrorDBInsertError | A database insert error occurred. | An error occurred while performing an insert operation in the database. |
| 400 | ErrorRecordLog | record operation log error. | Update operation log error. |
| 400 | ErrorTrFirewallPolicyNotFound | TR firewall policy does not exist. | The traffic diversion scenario for the VPC firewall for a transit router does not exist. |
| 400 | ErrorBandwidthPenalty | Cloud Firewall bandwidth is being overused. | Cloud Firewall bandwidth is being overused. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.