Enables or disables a routing policy.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Lang |
string |
No |
The language of the response. Valid values:
|
zh |
| FirewallId |
string |
No |
The instance ID of the VPC boundary firewall. |
vfw-tr-5b202e7f0be64611**** |
| TrFirewallRoutePolicyId |
string |
No |
The ID of the routing policy for the firewall. |
policy-93684cc5caa44b2e**** |
| TrFirewallRoutePolicySwitchStatus |
string |
No |
The status of the policy. Valid values:
|
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. | |
| 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.