Modifies the configuration of an access control policy in a specific policy group for a VPC firewall.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | ModifyVpcFirewallControlPolicy |
The operation that you want to perform. Set the value to ModifyVpcFirewallControlPolicy. |
AclAction | String | Yes | accept |
The action that Cloud Firewall performs on the traffic. Valid values:
|
AclUuid | String | Yes | 00281255-d220-4db1-8f4f-c4df221ad84c |
The unique ID of the access control policy. If you want to modify an access control policy, you must provide the ID of the policy. You can call the DescribeVpcFirewallControlPolicy operation to obtain the ID. |
ApplicationName | String | Yes | HTTP |
The application type that the access control policy supports. Valid values:
|
Description | String | Yes | test |
The description of the access control policy. |
Destination | String | Yes | 10.2.3.0/24 |
The destination address in the access control policy.
|
DestinationType | String | Yes | net |
The type of the destination address in the access control policy. Valid values:
|
Proto | String | Yes | TCP |
The type of the security protocol in the access control policy. Valid values:
|
Source | String | Yes | 10.2.4.0/24 |
The source address in the access control policy. Valid values:
|
SourceType | String | Yes | net |
The type of the source address in the access control policy. Valid values:
|
VpcFirewallId | String | Yes | vfw-a42bbb7b887148c9**** |
The ID of the access control policy group. You can call the DescribeVpcFirewallAclGroupList operation to obtain the ID.
|
Lang | String | No | zh |
The natural language of the request and response. Valid values: Valid values:
|
DestPort | String | No | 80 |
The destination port in the access control policy. |
DestPortType | String | No | port |
The type of the destination port in the access control policy.
|
DestPortGroup | String | No | my_port_group |
The destination port address book in the access control policy. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | CBF1E9B7-D6A0-4E9E-AD3E-2B47E6C2837D |
The ID of the request. |
Examples
Sample requests
http(s)://[Endpoint]/? Action=ModifyVpcFirewallControlPolicy
&VpcFirewallId=vfw-a42bbb7b887148c9****
&AclAction=accept
&AclUuid=00281255-d220-4db1-8f4f-c4df221ad84c
&ApplicationName=ANY
&Description=demo_rule_1
&Destination=10.2.3.0/24
&DestinationType=net
&Proto=TCP
&Source=10.2.4.0/24
&SourceType=net
&<Common request parameters>
Sample success responses
XML
format
<ModifyVpcFirewallControlPolicyResponse>
<RequestId>CBF1E9B7-D6A0-4E9E-AD3E-2B47E6C2837D</RequestId>
</ModifyVpcFirewallControlPolicyResponse>
JSON
format
{
"RequestId": "CBF1E9B7-D6A0-4E9E-AD3E-2B47E6C2837D"
}
Error codes
For a list of error codes, visit the API Error Center.