ModifyVpcFirewallControlPolicy
Modifies the configuration of an access control policy for a specified VPC firewall policy group.
Operation description
This operation is typically used to modify the configuration of an access control policy for a specified VPC firewall policy group. VPC firewall instances that protect Cloud Enterprise Network (CEN) instances and VPC firewall instances that protect Express Connect circuits use different access control policies.
QPS limit
The QPS limit for a single user is 10 calls per second. If the limit is exceeded, API calls are throttled, which may affect your business. Make API calls at a reasonable frequency.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-cloudfirewall:ModifyVpcFirewallControlPolicy |
update |
*VpcFirewallControlPolicy
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Lang |
string |
No |
The language of the response message. Valid values:
|
zh |
| AclAction |
string |
No |
The action that Cloud Firewall performs on traffic that matches the access control policy. Valid values:
|
accept |
ApplicationName
deprecated
|
string |
No |
The application type supported by the access control policy. Valid values:
|
HTTP |
| Description |
string |
No |
The description of the access control policy. |
test |
| DestPort |
string |
No |
The destination port in the access control policy. |
80 |
| Destination |
string |
No |
The destination address in the access control policy.
|
10.2.X.X/XX |
| DestinationType |
string |
No |
The type of the destination address in the access control policy. Valid values:
|
net |
| VpcFirewallId |
string |
Yes |
The instance ID of the virtual private cloud (VPC) firewalls at the border. You can invoke the DescribeVpcFirewallAclGroupList operation to obtain the ID.
|
vfw-a42bbb7b887148c9**** |
| Proto |
string |
No |
The type of the security protocol in the access control policy. Valid values:
|
TCP |
| Source |
string |
No |
The source address in the access control policy. Valid values:
|
10.2.X.X/XX |
| AclUuid |
string |
Yes |
The UUID of the access control policy. You must provide the UUID when you modify the access control policy. You can call the DescribeVpcFirewallControlPolicy operation to query the UUID. |
00281255-d220-4db1-8f4f-c4df221a**** |
| SourceType |
string |
No |
The type of the source address in the access control policy. Valid values:
|
net |
| DestPortType |
string |
No |
The type of the destination port in the access control policy. Valid values:
|
port |
| DestPortGroup |
string |
No |
The name of the destination port address book in the access control policy. |
my_port_group |
| Release |
string |
No |
Specifies whether the access control policy is enabled. By default, the policy is enabled after it is created. Valid values:
|
true |
| ApplicationNameList |
array |
No |
The list of application names. |
|
|
string |
No |
The application name. |
["ANY"] |
|
| RepeatType |
string |
No |
The recurrence type of the Policy Validity Period for the access control policy. Valid values:
Valid values:
|
Permanent |
| RepeatDays |
array |
No |
The set of recurrence days for the Policy Validity Period of the access control policy.
Note
When the Settings for RepeatType are Weekly, duplicate values are not allowed in RepeatDays.
Note
When the Settings for RepeatType are Monthly, duplicate values are not allowed in RepeatDays. |
|
|
integer |
No |
The recurrence day for the Policy Validity Period of the access control policy. Note
When the Settings for RepeatType are Weekly, valid values are 0 to 6. A week starts on Sunday. When the Settings for RepeatType are Monthly, valid values are 1 to 31. |
1 |
|
| RepeatStartTime |
string |
No |
The recurrence start time when the policy takes effect. Use the 24-hour time format HH:mm, such as 08:00. The time must be on the hour or half hour, and must be at least half an hour earlier than the recurrence end time. Note
When RepeatType is set to Permanent or None, RepeatStartTime is empty. When RepeatType is set to Daily, Weekly, or Monthly, RepeatStartTime must be specified. |
08:00 |
| RepeatEndTime |
string |
No |
The recurrence end time when the policy takes effect. Use the 24-hour time format HH:mm, such as 23:30. The time must be on the hour or half hour, and must be at least half an hour later than the recurrence start time. Note
When RepeatType is set to Permanent or None, RepeatEndTime is empty. When RepeatType is set to Daily, Weekly, or Monthly, RepeatEndTime must be specified. |
23:30 |
| StartTime |
integer |
No |
The start time of the Policy Validity Period for the access control policy. The value is expressed in the format of a UNIX timestamp in seconds. The time must be on the hour or half hour, and must be at least half an hour earlier than the end time. Note
When RepeatType is set to Permanent, StartTime is empty. When RepeatType is set to None, Daily, Weekly, or Monthly, StartTime must be specified, and you must configure the Settings for the start time. |
1694761200 |
| EndTime |
integer |
No |
The end time of the Policy Validity Period for the access control policy. The value is expressed in the format of a UNIX timestamp in seconds. The time must be on the hour or half hour, and must be at least half an hour later than the start time. Note
When RepeatType is set to Permanent, EndTime is empty. When RepeatType is set to None, Daily, Weekly, or Monthly, EndTime must be specified, and you must configure the Settings for the end time. |
1694764800 |
| DomainResolveType |
string |
No |
The domain name resolution mode of the access control policy. Valid values:
|
FQDN |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. |
CBF1E9B7-D6A0-4E9E-AD3E-2B47E6C2837D |
Examples
Success response
JSON format
{
"RequestId": "CBF1E9B7-D6A0-4E9E-AD3E-2B47E6C2837D"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | ErrorParametersUid | The aliUid parameter is invalid. | The aliUid parameter is invalid. |
| 400 | ErrorDBSelect | An error occurred while querying database. | An error occurred while querying database. |
| 400 | ErrorParametersSource | The source is invalid. | The source is invalid. |
| 400 | ErrorParametersProto | The protocol is invalid. | The protocol is invalid. |
| 400 | ErrorParametersDestination | The Destination parameter is invalid. | The Destination parameter is invalid. |
| 400 | ErrorParametersDestPort | The dst_port is invalid. | The dst_port is invalid. |
| 400 | ErrorParametersAction | The action is invalid. | The action is invalid. |
| 400 | ErrorAddressCountExceed | The maximum number of addresses is exceeded. | The maximum number of address is exceeded. |
| 400 | ErrorAclNotExist | The ACL does not exist. | The ACL does not exist. |
| 400 | ErrorRecordLog | An error occurred while updating the operation log. | An error occurred while updating the operation log. |
| 400 | ErrorAclEffectiveTimeNonPermanent | ACL rule is not allowed to update status when effective is not permanent. | ACL rule is not allowed to update status when effective is not permanent. |
| 400 | ErrorUUIDNew | The UUID is invalid. | The UUID is invalid. |
| 400 | ErrorParameterIpVersion | The IP version is invalid. | The IP version is invalid. |
| 400 | ErrorParametersDirection | The direction is invalid. | The direction is invalid. |
| 400 | ErrorDomainResolve | A domain resolution error occurred. | An error occurred while resolving the domain. |
| 400 | ErrorParameters | Parameters error. | Parameter error. |
| 400 | ErrorAclExtendedCountExceed | ACL or extended ACL rules are not matched. | ACL or extended ACL rules are not matched. |
| 400 | ErrorAclDomainAnyCountExceed | The number of resolved domain names cannot exceed 200. ACL configuration can be continued for HTTP, HTTPS, SMTP, SMTPS, and SSL applications. | The domain name is resolved to more than 200 IP addresses. We recommend that you set Application in your access control policy to HTTPS, HTTPS, SMTP, SMTPS, or SSL. |
| 400 | ErrorDBUpdate | internal error: sql updat. | An error occurred while updating the database. |
| 400 | ErrorDBInsert | An error occurred while performing an insert operation in the database. | An error occurred while performing an insert operation in the database. |
| 400 | ErrorParametersFtpNotSupport | domain destination not support ftp. | FTP application is not supported when the policy destination is a domain name |
| 400 | ErrorParametersApplicationName | Specified parameter ApplicationName is not valid. | Specified parameter ApplicationName is not valid. |
| 400 | ErrorParametersApplicationNameList | Specified parameter ApplicationNameList is not valid. | Specified parameter ApplicationNameList is not valid. |
| 400 | ErrorParametersAclUuid | Specified parameter AclUuid is not valid. | Specified parameter AclUuid is not valid. |
| 400 | ErrorAddressGroupNotExist | The address group does not exist. | The address group does not exist. |
| 400 | ErrorParametersVpcFirewallId | Specified parameter VpcFirewallId is not valid. | Specified parameter VpcFirewallId is not valid. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.