Modifies the configuration of a VPC firewall for a transit router. **Prerequisites**: Cloud Enterprise Network (CEN) Enterprise Edition transit router → Create a VPC firewall for the transit router by calling CreateTrFirewallV2 → Obtain the FirewallId and then call this operation.
Operation description
Modifies the configuration of a virtual private cloud (VPC) firewall. Although this operation is named ModifyTrFirewallV2Configuration, it supports all VPC firewall types and is not limited to VPC firewalls for Enterprise Edition transit routers. The FirewallId format is not restricted to the vfw-tr-* prefix. Before calling this operation, create a VPC firewall instance. For transit router-type firewalls, call CreateTrFirewallV2 to create the firewall, and call DescribeTrFirewallsV2List to query the FirewallId.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-cloudfirewall:ModifyTrFirewallV2Configuration |
update |
*VpcCenTrFirewall
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Lang |
string |
No |
The language of the content within the response. Valid values:
|
zh |
| FirewallId |
string |
No |
The instance ID of the VPC firewall. You can call DescribeTrFirewallsV2List to obtain the ID. Note
Note: FirewallId and FirewallName are jointly required. Both parameters must be provided at the same time. If either parameter is missing, the operation returns a 400 error. |
vfw-tr-bcdf89d405ce4bd2**** |
| FirewallName |
string |
No |
The instance name of the VPC firewall. Note
Note: FirewallId and FirewallName are jointly required. Both parameters must be provided at the same time. If either parameter is missing, the operation returns a 400 error. |
vpc-firewall |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
A74C8FDD-2BEF-52D5-8B01-EB6FD94606F9 |
Examples
Success response
JSON format
{
"RequestId": "A74C8FDD-2BEF-52D5-8B01-EB6FD94606F9"
}
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 | ErrorTrFirewallNotExist | Cen TR firewall not exist. | Cloud Enterprise Network Enterprise Edition firewall does not exist. |
| 400 | ErrorDBSelectError | A database select error occurred. | The error message returned because an internal error has occurred in querying the database. |
| 400 | ErrorAuthentication | authentication error | The authentication failed. |
| 400 | ErrorVpcFirewallExist | Vpc firewall already exist. | The firewall is already configured and cannot be configured repeatedly. |
| 400 | ErrorDBInsertError | A database insert error occurred. | An error occurred while performing an insert operation in the database. |
| 400 | ErrorDBTxError | A database transaction error occurred. | The error message returned because an internal error has occurred in the database transaction. |
| 400 | ErrorDBNoRow | No rows in database. | No data found. |
| 400 | MissingParameter.FirewallId | The required parameter 'FirewallId' is missing. | |
| 400 | MissingParameter.FirewallName | The required parameter 'FirewallName' is missing. | |
| 400 | -360444 | firewall id is required | firewall id is required |
| 400 | -360445 | firewall name is required | firewall name is required |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.