All Products
Search
Document Center

Smart Access Gateway:DescribeACLAttribute

Last Updated:Oct 09, 2026

Queries the details of a specified access control instance.

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

smartag:DescribeACLAttribute

get

*Acl

acs:smartag:{#regionId}:{#accountId}:acl/{#AclId}

None None

Request parameters

Parameter

Type

Required

Description

Example

RegionId

string

Yes

The region ID of the access control instance.

cn-hangzhou

AclId

string

Yes

The ID of the access control instance.

acl-ohlexqptfhyaq****

PageSize

integer

No

The number of access control rule entries to return on each page in a paging query.

Valid values: 1 to 50.

Default value: 10.

10

PageNumber

integer

No

The page number for a paging query. Default value: 1.

1

Direction

string

No

The direction in which the access control rule is applied. Valid values:

  • in: inbound, which indicates traffic from external networks to the local branch where the Smart Access Gateway instance is deployed.

  • out: outbound, which indicates traffic from the local branch where the Smart Access Gateway instance is deployed to external networks.

out

Order

string

No

The order ID.

1255444444

Name

string

No

The name of the access control instance.

The name must be 2 to 100 characters in length, and can contain digits, periods (.), underscores (_), and hyphens (-). It must start with a letter or Chinese character.

Note

Fuzzy search is supported for this parameter.

doctest

Response elements

Element

Type

Description

Example

object

TotalCount

integer

The total number of access control rule entries in the access control instance.

3

PageSize

integer

The number of access control rule entries returned on each page in a paging query.

10

RequestId

string

The request ID.

8F62CE77-FBA2-4F8D-AED9-0A02814EDA69

PageNumber

integer

The page number for a paging query.

1

Acrs

object

Acr

array<object>

The access control rule information in the access control instance.

array<object>

Direction

string

The direction in which the access control rule is applied.

  • in: inbound, which indicates traffic from external networks to the local branch where the Smart Access Gateway instance is deployed.

  • out: outbound, which indicates traffic from the local branch where the Smart Access Gateway instance is deployed to external networks.

out

Type

string

The type of the access control rule. Valid values:

  • LAN: private network, which indicates the access control rule settings for traffic destined for private endpoints.

  • WAN: public network, which indicates the access control rule settings for traffic destined for public IP addresses.

WAN

DpiSignatureIds

object

DpiSignatureId

array

The IDs of the applications matched by the access control rule.

string

The IDs of the applications matched by the access control rule.

You can call the ListDpiSignatures operation to query application IDs and application information.

1

IpProtocol

string

The protocol used by the access control rule.

For the protocol types supported by the access control feature, refer to the console. The protocol format is not case-sensitive.

UDP

Priority

integer

The priority of the access control rule.

Valid values: 1 to 100.

70

AclId

string

The ID of the access control instance.

acl-7louazbja80bmg****

Policy

string

The authorization policy of the access control rule. Valid values:

  • accept: allow.

  • drop: deny.

drop

Description

string

The description of the access control rule.

The description must be 1 to 512 characters in length.

This field is not returned by default. You can set this field by calling the ModifyACLRule operation. After it is set, it is returned in queries.

ACLRule

GmtCreate

integer

The timestamp when the access control rule was created.

The timestamp is of the Long type. If multiple access control rules have the same priority, the rule with the earlier timestamp takes precedence.

1580821597000

DestCidr

string

The destination CIDR block.

The destination CIDR block must be in CIDR format. Example: 192.168.10.0/24.

0.0.0.0/0

DestPortRange

string

The destination port range.

Valid values: -1 or 1 to 65535.

Format examples: 1/200 and 80/80. A value of -1/-1 indicates that all ports are allowed.

10000/20000

Name

string

The name of the access control instance.

The name must be 2 to 100 characters in length, and can contain digits, periods (.), underscores (_), and hyphens (-). It must start with a letter or Chinese character.

doctest

AcrId

string

The ID of the access control rule.

acr-gxzxj5w9qqdf1c****

SourceCidr

string

The source CIDR block.

The source CIDR block must be in CIDR format. Example: 192.168.1.0/24.

0.0.0.0/0

SourcePortRange

string

The source port range.

Valid values: -1 or 1 to 65535.

Format examples: 1/200 and 80/80. A value of -1/-1 indicates that all ports are allowed.

30000/40000

DpiGroupIds

object

DpiGroupId

array

The IDs of the application groups matched by the access control rule.

string

The IDs of the application groups matched by the access control rule.

You can call the ListDpiGroups operation to query application group IDs and the applications in each group.

20

AclType

string

The type of Smart Access Gateway instance that can be associated with the access control instance. Valid values:

  • acl-hardware: Smart Access Gateway hardware instance.

  • acl-software: SAG app instance.

acl-hardware

Examples

Success response

JSON format

{
  "TotalCount": 3,
  "PageSize": 10,
  "RequestId": "8F62CE77-FBA2-4F8D-AED9-0A02814EDA69",
  "PageNumber": 1,
  "Acrs": {
    "Acr": [
      {
        "Direction": "out",
        "Type": "WAN",
        "DpiSignatureIds": {
          "DpiSignatureId": [
            "1"
          ]
        },
        "IpProtocol": "UDP",
        "Priority": 70,
        "AclId": "acl-7louazbja80bmg****",
        "Policy": "drop",
        "Description": "ACLRule",
        "GmtCreate": 1580821597000,
        "DestCidr": "0.0.0.0/0",
        "DestPortRange": "10000/20000",
        "Name": "doctest",
        "AcrId": "acr-gxzxj5w9qqdf1c****",
        "SourceCidr": "0.0.0.0/0",
        "SourcePortRange": "30000/40000",
        "DpiGroupIds": {
          "DpiGroupId": [
            "20"
          ]
        },
        "AclType": "acl-hardware"
      }
    ]
  }
}

Error codes

HTTP status code

Error code

Error message

Description

403 Forbidden User not authorized to operate on the specified resource. You do not have permissions to manage the specified resource.
403 MissingParameter The input parameter is missing, please check your input. Missing parameters. Check whether all required parameters are set.
403 InvalidParameter The specified parameter is invalid. Invalid parameters.
403 InvalidId.ACL The specified ACL ID is invalid. The specified ACL group ID is invalid.
403 InternalError An internal server error occurred. An internal server error occurred.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.