DescribeAclCheck

Updated at:

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

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

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:

  • en :

    English.

  • zh :

    Chinese (default)

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:

  • in: inbound traffic access control.

  • out: outbound traffic access control.

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:

  • net: source CIDR block.

  • group: source address book.

  • location: source location.

group

ApplicationName

string

The application types supported by the access control policies for VPC border firewalls. Use ApplicationNameList. Valid values:

  • HTTP

  • HTTPS

  • MySQL

  • SMTP

  • SMTPS

  • RDP

  • VNC

  • SSH

  • Redis

  • MQTT

  • MongoDB

  • Memcache

  • SSL

  • ANY: all application types of the access control policy.

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: IP address book, which contains one or more CIDR blocks.

  • tag: ECS tag-based address book, which contains the IP addresses of one or more ECS tags.

  • domain: domain name address book, which contains one or more domain names.

  • threat: threat intelligence address book, which contains one or more malicious IP addresses or domain names.

  • backsrc: back-to-origin address book, which contains the back-to-origin addresses of one or more Anti-DDoS or WAF instances.

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:

  • TCP

  • UDP

  • ICMP

  • ANY: all protocol types.

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:

  • ip: IP address book, which contains one or more CIDR blocks.

  • tag: ECS tag-based address book, which contains the IP addresses of one or more ECS tags.

  • domain: domain name address book, which contains one or more domain names.

  • threat: threat intelligence address book, which contains one or more malicious IP addresses or domain names.

  • backsrc: back-to-origin address book, which contains the back-to-origin addresses of one or more Anti-DDoS or WAF instances.

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.

  • If the destination type is net, the destination address is a CIDR block. Example: 10.0.3.0/24.

  • If the destination type is domain, the destination address is a domain name. Example: aliyun.

  • If the destination type is group, the destination address is the name of an address book. Example: db_group.

  • If the destination type is location, the destination address is an area name. For more information about the positional encoding of specific areas, see AddControlPolicy. Example: ["BJ11", "ZB"].

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:

  • port: port.

  • group: port address book.

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: port.

  • group: port address book.

port

Source

string

The source address in the access control policy. Valid values:

  • If SourceType is set to net, the source address is a CIDR block. Example: 192.0.XX.XX/24.

  • If SourceType is set to group, the source address is the name of a source address book. Example: db_group.

  • If SourceType is set to location, the source address is an area. For more information about the positional encoding of specific areas, see AddControlPolicy. Example: ["BJ11", "ZB"].

172.28.7.167

DestinationType

string

The type of the destination address in the access control policy. Valid values:

  • net: destination CIDR block.

  • group: destination address book.

  • domain: destination domain name.

  • location: destination location.

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: IPv4.

  • 6: IPv6.

4

AclAction

string

The action that Cloud Firewall performs on the traffic that matches the access control policy. Valid values:

  • accept: allows the traffic.

  • drop: blocks the traffic.

  • log: monitors the traffic.

log

Release

string

The status of the access control policy. Valid values:

  • true: The access control policy is enabled.

  • false: The access control policy is disabled.

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:

  • FTP

  • HTTP

  • HTTPS

  • Memcache

  • MongoDB

  • MQTT

  • MySQL

  • RDP

  • Redis

  • SMTP

  • SMTPS

  • SSH

  • SSL

  • VNC

  • ANY: all application types.

string

The list of application types supported by the access control policies for VPC border firewalls. Valid values:

  • HTTP

  • HTTPS

  • MySQL

  • SMTP

  • SMTPS

  • RDP

  • VNC

  • SSH

  • Redis

  • MQTT

  • MongoDB

  • Memcache

  • SSL

  • ANY: all application types of the access control policy.

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 (default): always.

  • None: specified single time.

  • Daily: every day.

  • Weekly: every week.

  • Monthly: every month.

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: IP address book.

  • domain: domain name address book.

  • port: port address book.

  • tag: ECS tag-based address book.

  • allCloud: cloud service address book.

  • threat: threat intelligence address book.

ip

TagRelation

string

The relationship between multiple ECS tags. Valid values:

  • and: The logical AND relation. The public IP addresses of Elastic Compute Service (ECS) instances that match all specified tags are added to the address book.

  • or: The logical OR relation. The public IP addresses of Elastic Compute Service (ECS) instances that match any of the specified tags are added to the address book.

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: FQDN-based resolution.

  • DNS: DNS-based dynamic resolution.

  • FQDN_AND_DNS: FQDN- and DNS-based dynamic resolution.

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 :

    Pending.

  • Ignored :

    Ignored.

  • Processed :

    Processed.

Pending

AclAssessmentDetail

string

The assessment details of the access control policy.

No traffic hit policy.

ProcessStatus

string

The processing status. Valid values:

  1. Pending: unprocessed

  2. Success: processed successfully

  3. Processing: being processed

  4. Ignored: ignored

  5. Failed: processing failed

  6. PendingOrFailed: unprocessed or processing failed

Pending

ErrorMessage

string

The error message.

null

ActionType

string

The action taken for rules that are being processed or have been processed.

  1. CreateRule: Creates a policy.

  2. DeleteRule: Deletes a policy.

  3. DisableRule: Disables a policy.

  4. ModifyRule: Modifies a policy.

  5. ModifyAddressGroup: Modifies an IP or domain name address book.

  6. ModifyPortGroup: Modifies a port address book.

DisableRule

RecommendOptions

array<object>

The recommended options.

array<object>

ActionType

string

The recommended action. Valid values:

  • CreateRule: Creates a policy.

  • DeleteRule: Deletes a policy.

  • DisableRule: Disables a policy.

  • ModifyRule: Modifies a policy.

  • ModifyAddressGroup: Modifies an IP or domain name address book.

  • ModifyPortGroup: Modifies a port address book.

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: Allows the traffic.

  • drop: Denies the traffic.

  • log: Monitors the traffic.

accept

Proto

string

The protocol type of traffic in an access control policy. Valid values:

  • ANY (any protocol)

  • TCP

  • UDP

  • ICMP

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:

  • FTP

  • HTTP

  • HTTPS

  • Memcache

  • MongoDB

  • MQTT

  • MySQL

  • RDP

  • Redis

  • SMTP

  • SMTPS

  • SSH

  • SSL_No_Cert

  • SSL

  • VNC

  • ANY (all application types)

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: Source CIDR block.

  • group: Source address book.

  • location: Source region.

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: Destination CIDR block.

  • group: Destination address book.

  • domain: Destination domain name.

  • location: Destination region.

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: Enables the access control policy.

  • false: Disables the access control policy.

true

DestPortType

string

The type of the destination port for traffic in the access control policy. Valid values:

  • port: Port.

  • group: Port address book.

port

DestPort

string

The destination port for traffic in the access control policy. Valid values:

  • If the protocol type is ICMP, DestPort is left empty.

Note

When the protocol type is ICMP, access control on destination ports is not supported.

  • If the protocol type is TCP, UDP, or ANY, and the destination port type (DestPortType) is group, DestPort is left empty.

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.

  • If the protocol type is TCP, UDP, or ANY, and the destination port type (DestPortType) is port, DestPort is the destination port number.

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.