DescribeAclCheck
Queries the details of an ACL check.
Operation description
Rate limit
The rate limit for this API operation is 10 queries per second (QPS) per user. If the limit is exceeded, API calls are throttled, which may affect your business. Call this API operation at a reasonable rate.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-cloudfirewall:DescribeAclCheck |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Lang |
string |
No |
The language in which messages are received. Valid values:
|
zh |
| TaskId |
string |
Yes |
The task ID. |
132 |
| PageNo |
integer |
Yes |
The page number. |
1 |
| PageSize |
integer |
Yes |
The number of entries per page. |
10 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
25E655B0-CAED-53D4-8054-F983126**** |
| CheckRecord |
object |
The check record. |
|
| AclTotalCount |
integer |
The total number of access control policies at the time of the check. |
10 |
| RecordAssessmentDetail |
string |
The assessment details of the access control policy check. |
It is recommended to remove the invalid policy, while helping to save the specification. |
| CheckName |
string |
The name of the access control policy check. |
PolicyHitCountZero |
| Description |
string |
The description of the access control policy check item. |
Due to business offline or other reasons, the number of hits of the object policy in a period of time is 0. |
| LastCheckTime |
string |
The timestamp of the last check. Unit: seconds. |
1724982259 |
| Level |
string |
The risk level. |
High |
| TaskId |
string |
The task ID. |
task-c92d4544ef7b6a42 |
| Acls |
array<object> |
The list of access control policy check results. |
|
|
array<object> |
The access control policy check result. |
||
| Acl |
object |
The access control policy check result. |
|
| Direction |
string |
The traffic direction on the Internet. Valid values:
|
out |
| Order |
integer |
The priority of the access control policy. The priority starts from 1 and increments sequentially. A smaller priority number indicates a higher priority. |
1 |
| SourceType |
string |
The type of the source address in the access control policy. Valid values:
|
group |
| ApplicationName |
string |
The application types supported by the access control policies for VPC border firewalls. Use ApplicationNameList. Valid values:
|
ANY |
| HitTimes |
integer |
The number of hits of the access control policy. |
1 |
| Description |
string |
The description of the access control policy. |
test_policy |
| SourceGroupType |
string |
The type of the source address book in the access control policy. Valid values:
|
ip |
| DnsResultTime |
integer |
The timestamp of DNS resolution. The value is a UNIX timestamp in seconds. |
1579261141 |
| DnsResult |
string |
The DNS resolution result. |
192.0.XX.XX |
| Proto |
string |
The protocol type of the traffic in the access control policy. Valid values:
Note
If you do not specify this parameter, all protocol types are queried. |
TCP |
| DestinationGroupType |
string |
The type of the destination address book in the access control policy. Valid values:
|
domain |
| Destination |
string |
The destination address in the access control policy. Fuzzy match is supported. The value of this parameter varies based on the destination type.
Note
If you do not specify this parameter, all types of destination addresses are queried. |
kms.cn-shanghai.aliyuncs.com |
| HitLastTime |
integer |
The latest time of hits. The value is a UNIX timestamp in the seconds format. |
1579261141 |
| DestPortGroup |
string |
The type of the destination port for traffic access in the access control policy. Valid values:
|
my_port_group |
| AclUuid |
string |
The UUID of the access control policy. |
997b38e0-01fa-4db7-8d30-02ebf6fdb747 |
| DestPortType |
string |
The type of the destination port for traffic access in the access control policy. Valid values:
|
port |
| Source |
string |
The source address in the access control policy. Valid values:
|
172.28.7.167 |
| DestinationType |
string |
The type of the destination address in the access control policy. Valid values:
|
domain |
| DestPort |
string |
The destination port of the traffic in the access control policy. |
80/80 |
| IpVersion |
integer |
The IP address version. Valid values:
|
4 |
| AclAction |
string |
The action that Cloud Firewall performs on the traffic that matches the access control policy. Valid values:
|
log |
| Release |
string |
The status of the access control policy. Valid values:
|
true |
| ApplicationId |
string |
The ID of the application for the traffic in the access control policy. |
plugin_idp4_ciam |
| DestinationGroupCidrs |
array |
The CIDR blocks in the destination address book of the access control policy. |
|
|
string |
The CIDR blocks in the destination address book of the access control policy. |
192.0.XX.XX/32 |
|
| DestPortGroupPorts |
array |
The ports in the destination port address book. |
|
|
string |
The ports in the destination port address book. |
80/80 |
|
| SourceGroupCidrs |
array |
The CIDR blocks in the source address book of the access control policy. |
|
|
string |
The CIDR blocks in the source address book of the access control policy. |
111.48.54.39/32 |
|
| ApplicationNameList |
array |
The list of application types supported by the access control policy. Valid values:
|
|
|
string |
The list of application types supported by the access control policies for VPC border firewalls. Valid values:
|
ANY |
|
| SpreadCnt |
integer |
The quota consumed by the access control policy, which is the sum of the quota consumed by each policy. Quota consumed by a single policy = Number of source addresses (number of CIDR blocks or locations) × Number of destination addresses (number of CIDR blocks, locations, or domain names) × Number of port ranges × Number of applications. |
10 |
| CreateTime |
integer |
The creation time of the policy. The value is a UNIX timestamp in seconds. |
1761062400 |
| ModifyTime |
integer |
The last modification time of the policy. The value is a UNIX timestamp in seconds. |
1761062400 |
| RepeatType |
string |
The recurrence type of the Policy Validity Period for the access control policy. Valid values:
|
Permanent |
| RepeatDays |
array |
The recurrence days of the Policy Validity Period for the access control policy. Note
If RepeatType is set to Weekly, valid values are 0 to 6, where 0 indicates Sunday. If RepeatType is set to Monthly, valid values are 1 to 31. |
|
|
integer |
The recurrence days of the Policy Validity Period for the access control policy. Note
If RepeatType is set to Weekly, valid values are 0 to 6, where 0 indicates Sunday. If RepeatType is set to Monthly, valid values are 1 to 31. |
6 |
|
| RepeatStartTime |
string |
The recurrence start time of the Policy Validity Period for the access control policy. Example: 08:00. The time must be on the hour or half-hour, and must be at least 30 minutes earlier than the recurrence end time. Note
If RepeatType is Permanent or None, RepeatStartTime is empty. If RepeatType is Daily, Weekly, or Monthly, RepeatStartTime must have a value, and you must specify the recurrence start time. The time is in the HH:mm format (24-hour clock). Examples: 08:00 and 23:30. |
08:00 |
| RepeatEndTime |
string |
The recurrence end time of the Policy Validity Period for the access control policy. Example: 23:30. The time must be on the hour or half-hour, and must be at least 30 minutes later than the recurrence start time. Note
If RepeatType is Permanent or None, RepeatEndTime is empty. If RepeatType is Daily, Weekly, or Monthly, RepeatEndTime must have a value, and you must specify the recurrence end time. The time is in the HH:mm format (24-hour clock). Examples: 08:00 and 23:30. |
23:30 |
| StartTime |
integer |
The start time of the query. The value is a UNIX timestamp in seconds. |
1730318400 |
| EndTime |
integer |
The end time of the Policy Validity Period for the access control policy. The value is a UNIX timestamp in the seconds format. The time must be on the hour or half-hour, and must be at least 30 minutes later than the start time. Note
If RepeatType is Permanent, EndTime is empty. If RepeatType is None, Daily, Weekly, or Monthly, EndTime must have a value, and you must specify the end time. |
1758334822 |
| AddressListCount |
integer |
The number of addresses in the address book. |
1 |
| GroupUuid |
string |
The UUID of the address book. To delete an address book for access control, you must provide the UUID of the address book. You can call the DescribeAddressBook operation to obtain the UUID. |
b91d86c3-2b52-4534-aae9-8d0339b12a48 |
| AutoAddTagEcs |
integer |
Specifies whether to automatically add the public IP addresses of newly matched ECS instances to the address book. Newly matched ECS instances refer to newly purchased ECS instances with tags configured or ECS instances with modified tags. |
0 |
| GroupName |
string |
The name of the address book. |
Zhong Kui Open White List |
| ReferenceCount |
integer |
The number of times the address book is referenced. |
1 |
| GroupType |
string |
The type of the address book. Valid values:
|
ip |
| TagRelation |
string |
The relationship between multiple ECS tags. Valid values:
|
or |
| TagList |
array<object> |
The list of ECS tags. |
|
|
object |
The ECS tag. |
||
| TagValue |
string |
The value of the ECS tag. |
tfTestAcc0 |
| TagKey |
string |
The key of the ECS tag. |
ss |
| AddressList |
array |
The address information in the address book. |
|
|
string |
The address information in the address book. |
183.2.201.71/32,60.28.235.22/32,210.51.58.107/32,60.28.235.81/32,210.51.58.51/32,60.28.235.52/32,1.1.1.1/32,154.212.141.143/32,167.94.146.55/32,185.226.197.47/32,101.251.238.174/32 |
|
| NatGatewayId |
string |
The ID of the NAT gateway. |
ngw-2ze4w62zbdkwjmoqeokgl |
DomainResolveType
deprecated
|
integer |
The domain name resolution mode of the access control policy. Valid values:
|
FQDN |
| VpcFirewallId |
string |
The instance ID of the VPC border firewall. |
vfw-925514970c2c4bcab222 |
| Addresses |
array<object> |
The list of addresses and description notes. |
|
|
object |
The address and description note. |
||
| Address |
string |
The address information in the address book. |
192.0.XX.XX/32 |
| Note |
string |
The description note. |
Reviewed |
| AclStatus |
string |
The access control policy check status. Valid values:
|
Pending |
| AclAssessmentDetail |
string |
The assessment details of the access control policy. |
No traffic hit policy. |
| ProcessStatus |
string |
The processing status. Valid values:
|
Pending |
| ErrorMessage |
string |
The error message. |
null |
| ActionType |
string |
The action taken for rules that are being processed or have been processed.
|
DisableRule |
| RecommendOptions |
array<object> |
The recommended options. |
|
|
array<object> |
|||
| ActionType |
string |
The recommended action. Valid values:
|
DisableRule |
| RecommendContent |
object |
The recommended content. |
|
| Addresses |
array<object> |
The address book. |
|
|
object |
|||
| Address |
string |
The address in the address book. |
1.1.1.1/32 |
| Note |
string |
The description of the address. |
test |
| AclAction |
string |
The action that Cloud Firewall performs on traffic in an access control policy. Valid values:
|
accept |
| Proto |
string |
The protocol type of traffic in an access control policy. Valid values:
|
TCP |
| ApplicationNameList |
array |
The list of application types supported by the access control policy. |
|
|
string |
The application type supported by the access control policy. Valid values:
|
HTTP |
|
| Description |
string |
The description of the rule. |
rule |
| Source |
string |
The source address in the access control policy. Valid values: If SourceType is set to net, Source is the source CIDR block. Example: 1.1.XX.XX/24 If SourceType is set to group, Source is the name of the source address book. Example: db_group If SourceType is set to location, Source is the source region. Example: ["BJ11", "ZB"] |
1.1.1.1/32 |
| SourceType |
string |
The type of the source address in the access control policy. Valid values:
|
net |
| Destination |
string |
The destination address in the access control policy. Valid values: If DestinationType is set to net, Destination is the destination CIDR block. Example: 1.2.XX.XX/24 If DestinationType is set to group, Destination is the name of the destination address book. Example: db_group If DestinationType is set to domain, Destination is the destination domain name. Example: *.aliyuncs.com If DestinationType is set to location, Destination is the destination region. Example: ["BJ11", "ZB"] |
1.2.2.2/32 |
| DestinationType |
string |
The type of the destination address in the access control policy. Valid values:
|
net |
| Order |
integer |
The priority of the access control policy. The priority value starts from 1 and increases sequentially. A smaller value indicates a higher priority. |
1 |
| Release |
string |
The status of the access control policy. By default, a policy is enabled after it is created. Valid values:
|
true |
| DestPortType |
string |
The type of the destination port for traffic in the access control policy. Valid values:
|
port |
| DestPort |
string |
The destination port for traffic in the access control policy. Valid values:
Note
When the protocol type is ICMP, access control on destination ports is not supported.
Note
If you set the destination port type to group (destination port address book), you do not need to specify a destination port number. All ports that you want the access control policy to manage are included in the destination port address book.
|
80 |
| DestPortGroup |
string |
The name of the destination port address book for traffic in the access control policy. Note
If DestPortType is set to group, you must specify the name of the destination port address book. |
my_port_group |
Examples
Success response
JSON format
{
"RequestId": "25E655B0-CAED-53D4-8054-F983126****",
"CheckRecord": {
"AclTotalCount": 10,
"RecordAssessmentDetail": "It is recommended to remove the invalid policy, while helping to save the specification.\n",
"CheckName": "PolicyHitCountZero",
"Description": "Due to business offline or other reasons, the number of hits of the object policy in a period of time is 0.\n",
"LastCheckTime": "1724982259",
"Level": "High",
"TaskId": "task-c92d4544ef7b6a42",
"Acls": [
{
"Acl": {
"Direction": "out",
"Order": 1,
"SourceType": "group",
"ApplicationName": "ANY",
"HitTimes": 1,
"Description": "test_policy",
"SourceGroupType": "ip",
"DnsResultTime": 1579261141,
"DnsResult": "192.0.XX.XX",
"Proto": "TCP",
"DestinationGroupType": "domain",
"Destination": "kms.cn-shanghai.aliyuncs.com",
"HitLastTime": 1579261141,
"DestPortGroup": "my_port_group\n",
"AclUuid": "997b38e0-01fa-4db7-8d30-02ebf6fdb747",
"DestPortType": "port",
"Source": "172.28.7.167",
"DestinationType": "domain",
"DestPort": "80/80",
"IpVersion": 4,
"AclAction": "log",
"Release": "true",
"ApplicationId": "plugin_idp4_ciam",
"DestinationGroupCidrs": [
"192.0.XX.XX/32"
],
"DestPortGroupPorts": [
"80/80"
],
"SourceGroupCidrs": [
"111.48.54.39/32"
],
"ApplicationNameList": [
"ANY"
],
"SpreadCnt": 10,
"CreateTime": 1761062400,
"ModifyTime": 1761062400,
"RepeatType": "Permanent",
"RepeatDays": [
6
],
"RepeatStartTime": "08:00\n",
"RepeatEndTime": "23:30",
"StartTime": 1730318400,
"EndTime": 1758334822,
"AddressListCount": 1,
"GroupUuid": "b91d86c3-2b52-4534-aae9-8d0339b12a48",
"AutoAddTagEcs": 0,
"GroupName": "Zhong Kui Open White List",
"ReferenceCount": 1,
"GroupType": "ip",
"TagRelation": "or",
"TagList": [
{
"TagValue": "tfTestAcc0",
"TagKey": "ss"
}
],
"AddressList": [
"183.2.201.71/32,60.28.235.22/32,210.51.58.107/32,60.28.235.81/32,210.51.58.51/32,60.28.235.52/32,1.1.1.1/32,154.212.141.143/32,167.94.146.55/32,185.226.197.47/32,101.251.238.174/32"
],
"NatGatewayId": "ngw-2ze4w62zbdkwjmoqeokgl",
"DomainResolveType": 0,
"VpcFirewallId": "vfw-925514970c2c4bcab222",
"Addresses": [
{
"Address": "192.0.XX.XX/32",
"Note": "Reviewed"
}
]
},
"AclStatus": "Pending",
"AclAssessmentDetail": "No traffic hit policy.",
"ProcessStatus": "Pending",
"ErrorMessage": "null",
"ActionType": "DisableRule",
"RecommendOptions": [
{
"ActionType": "DisableRule",
"RecommendContent": {
"Addresses": [
{
"Address": "1.1.1.1/32",
"Note": "test"
}
],
"AclAction": "accept",
"Proto": "TCP",
"ApplicationNameList": [
"HTTP"
],
"Description": "rule",
"Source": "1.1.1.1/32",
"SourceType": "net",
"Destination": "1.2.2.2/32",
"DestinationType": "net",
"Order": 1,
"Release": "true",
"DestPortType": "port",
"DestPort": "80",
"DestPortGroup": "my_port_group"
}
}
]
}
]
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | ErrorAclCheckNotExist | ACL check not exist. | The access control configuration check does not exist. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.