Modifies the configurations of a virtual private cloud (VPC) firewall. The VPC firewall controls traffic between two VPCs that are connected by using an Express Connect circuit.
Description
You can call the ModifyVpcFirewallConfigure operation to modify the configurations of a VPC firewall. The VPC firewall controls traffic between two VPCs that are connected by using an Express Connect circuit.
Before you call the operation, make sure that you created a VPC firewall by calling the CreateVpcFirewallConfigure operation.
Limits
You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | ModifyVpcFirewallConfigure |
The operation that you want to perform. Set the value to ModifyVpcFirewallConfigure. |
Lang | String | No | zh |
The natural language of the request and response. Valid values:
|
VpcFirewallId | String | Yes | vfw-m5e7dbc4y**** |
The instance ID of the VPC firewall. Note You can call the DescribeVpcFirewallList operation to query the isnatnce IDs of VPC firewalls.
|
VpcFirewallName | String | Yes | Test firewall |
The instance name of the VPC firewall. |
LocalVpcCidrTableList | String | Yes | [{"RouteTableId":"vtb-1234","RouteEntryList":[{"DestinationCidr":"192.168.XX.XX/24","NextHopInstanceId":"vrt-m5eb5me6c3l5sezae****"}]},{"RouteTableId":"vtb-1235","RouteEntryList":[{"DestinationCidr":"192.168.XX.XX/24","NextHopInstanceId":"vrt-m5eb5me6c3l5sezae****"}]}] |
The CIDR blocks of the local VPC. The value is a JSON string that contains the following parameters:
Note You can call the DescribeVpcFirewallDetail operation to query the CIDR blocks of local VPCs for VPC firewalls.
|
PeerVpcCidrTableList | String | Yes | [{"RouteTableId":"vtb-1234","RouteEntryList":[{"DestinationCidr":"192.168.XX.XX/24","NextHopInstanceId":"vrt-m5eb5me6c3l5sezae****"}]},{"RouteTableId":"vtb-1235","RouteEntryList":[{"DestinationCidr":"192.168.XX.XX/24","NextHopInstanceId":"vrt-m5eb5me6c3l5sezae****"}]}] |
The CIDR blocks of the peer VPC. The value is a JSON string that contains the following parameters:
Note You can call the DescribeVpcFirewallDetail operation to query the CIDR blocks of peer VPCs for VPC firewalls.
|
MemberUid | String | No | 258039427902**** |
The UID of the member that is managed by your Alibaba Cloud account. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 850A84D6-0DE4-4797-A1E8-00090125k6f8 |
The ID of the request. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=ModifyVpcFirewallConfigure
&Lang=zh
&VpcFirewallId=vfw-m5e7dbc4y****
&VpcFirewallName=Test firewall
&LocalVpcCidrTableList=[{"RouteTableId":"vtb-1234","RouteEntryList":[{"DestinationCidr":"192.168.XX.XX/24","NextHopInstanceId":"vrt-m5eb5me6c3l5sezae****"}]},{"RouteTableId":"vtb-1235","RouteEntryList":[{"DestinationCidr":"192.168.XX.XX/24","NextHopInstanceId":"vrt-m5eb5me6c3l5sezae****"}]}]
&PeerVpcCidrTableList=[{"RouteTableId":"vtb-1234","RouteEntryList":[{"DestinationCidr":"192.168.XX.XX/24","NextHopInstanceId":"vrt-m5eb5me6c3l5sezae****"}]},{"RouteTableId":"vtb-1235","RouteEntryList":[{"DestinationCidr":"192.168.XX.XX/24","NextHopInstanceId":"vrt-m5eb5me6c3l5sezae****"}]}]
&MemberUid=258039427902****
&Common request parameters
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<ModifyVpcFirewallConfigureResponse>
<RequestId>850A84D6-0DE4-4797-A1E8-00090125k6f8</RequestId>
</ModifyVpcFirewallConfigureResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "850A84D6-0DE4-4797-A1E8-00090125k6f8"
}