ModifyTrFirewallV2Configuration
Modifies the configuration of a TR firewall. Prerequisites: Cloud Enterprise Network (CEN) Enterprise Edition transit router -> Call CreateTrFirewallV2 to create a TR firewall -> Obtain the FirewallId and then call this API operation.
Operation description
Modifies the configuration of a virtual private cloud (VPC) firewall. Although the API operation is named ModifyTrFirewallV2Configuration, it supports all types of VPC firewalls and is not limited to CEN Enterprise Edition TR firewalls. The FirewallId format is not limited to the vfw-tr-* prefix. Before you call this API operation, you must create a VPC firewall instance. You can create a TR firewall by calling CreateTrFirewallV2 and query its FirewallId by calling DescribeTrFirewallsV2List.
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 response message. Valid values:
|
zh |
| FirewallId |
string |
No |
The ID of the VPC firewall instance. You can obtain the ID by calling DescribeTrFirewallsV2List. Note
Note: FirewallId and FirewallName are jointly required. You must specify both parameters. If either parameter is missing, the API operation returns a 400 error. |
vfw-tr-bcdf89d405ce4bd2**** |
| FirewallName |
string |
No |
The name of the VPC firewall instance. Note
Note: FirewallId and FirewallName are jointly required. You must specify both parameters. If either parameter is missing, the API operation returns a 400 error. |
vpc-firewall |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. |
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.