All Products
Search
Document Center

Server Load Balancer:ListAcls

Last Updated:Mar 01, 2024

Queries the access control lists (ACLs) in a region.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
alb:ListAclsList
  • Acl
    acs:alb:{#regionId}:{#accountId}:acl/*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
AclIdsarrayNo

The ID of the network ACL. You can specify at most 20 network ACL IDs in each request.

stringNo

The ID of the network ACL.

nacl-hp34s2h0xx1ht4nwo****
AclNamesarrayNo

The names of the network ACLs. You can specify at most 10 network ACL names in each request.

stringNo

The name of the network ACL.

test-acl
ResourceGroupIdstringNo

The ID of the resource group. You can filter the query results based on the specified ID.

rg-atstuj3rtopty****
NextTokenstringNo

The token that is used for the next query. Valid values:

  • If this is your first query or no next query is to be sent, ignore this parameter.
  • If a next query is to be sent, set the value to the value of NextToken that is returned from the last call.
FFmyTO70tTpLG6I3FmYAXGKPd****
MaxResultsintegerNo

The maximum number of entries to return. This parameter is optional. Valid values: 1 to 100. Default value: 20.

50
Tagobject []No

The tags.

KeystringNo

The tag key. The tag key can be up to 128 characters in length and cannot start with acs: or aliyun. It cannot contain http:// or https://.

env
ValuestringNo

The tag value. The tag value can be up to 128 characters in length and cannot start with acs: or aliyun. It cannot contain http:// or https://.

product

Response parameters

ParameterTypeDescriptionExample
object

The structure of the network ACL.

Aclsobject []

The network ACLs.

AclIdstring

The ID of the network ACL.

nacl-hp34s2h0xx1ht4nwo****
AclNamestring

The name of the network ACL.

test-acl
AclStatusstring

The status of the network ACL. Valid values:

  • Creating: The network ACL is being created.
  • Available: The network ACL is available.
  • Configuring: The network ACL is being configured.
Available
AddressIPVersionstring

The IP version. IPv4 is returned.

IPv4
ResourceGroupIdstring

The ID of the resource group.

rg-atstuj3rtopty****
ConfigManagedEnabledboolean

The status of configuration management. Valid values:

  • true: configuration management is enabled.
  • false: configuration management is disabled.
false
CreateTimestring

The time when the resource was created.

2023-02-15T07:37:33Z
Tagsobject []

The tags.

Keystring

The tag key.

env
Valuestring

The tag value.

product
MaxResultsinteger

The maximum number of network ACLs returned. This parameter is optional. Valid values: 1 to 100. If this parameter is not set, the default value 20 is returned.

20
NextTokenstring

The token that is used for the next query. Valid values:

  • If NextToken is empty, it indicates that no next query is to be sent.
  • If NextToken is returned, the value indicates the token that is used for the next query.
FFmyTO70t****
RequestIdstring

The ID of the request.

593B0448-D13E-4C56-AC0D-FDF0FDE0E9A3
TotalCountinteger

The total number of entries returned.

10

Examples

Sample success responses

JSONformat

{
  "Acls": [
    {
      "AclId": "nacl-hp34s2h0xx1ht4nwo****",
      "AclName": "test-acl",
      "AclStatus": "Available",
      "AddressIPVersion": "IPv4",
      "ResourceGroupId": "rg-atstuj3rtopty****",
      "ConfigManagedEnabled": false,
      "CreateTime": "2023-02-15T07:37:33Z",
      "Tags": [
        {
          "Key": "env",
          "Value": "product"
        }
      ]
    }
  ],
  "MaxResults": 20,
  "NextToken": "FFmyTO70t****",
  "RequestId": "593B0448-D13E-4C56-AC0D-FDF0FDE0E9A3",
  "TotalCount": 10
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2024-01-17The Error code has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    Added Error Codes: 403