All Products
Search
Document Center

Server Load Balancer:ListAcls

更新時間:Sep 09, 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

Filter access control lists (ACLs) by ACL ID. You can specify at most 20 ACL IDs in each call.

stringNo

The ACL ID.

nacl-hp34s2h0xx1ht4nwo****
AclNamesarrayNo

The ACL names. You can specify up to 10 ACL names in each call.

stringNo

The ACL name.

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
Tagarray<object>No

The tags.

objectNo

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 response parameters.

Aclsarray<object>

A list of ACLs.

object

The network ACLs.

AclIdstring

The ACL ID.

nacl-hp34s2h0xx1ht4nwo****
AclNamestring

The name of the ACL.

test-acl
AclStatusstring

The status of the ACL. Valid values:

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

The IP version of the ACL. Only IPv4 may be returned.

IPv4
ResourceGroupIdstring

The ID of the resource group.

rg-atstuj3rtopty****
ConfigManagedEnabledboolean

Indicates whether configuration management is enabled. Valid values:

  • true
  • false
false
CreateTimestring

The time when the ACL was created. The follows the YYYY-MM-DDThh:mm:ssZ format.

2023-02-15T07:37:33Z
Tagsarray<object>

The tags.

object

The tags.

Keystring

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

env
Valuestring

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

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 request ID.

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

HTTP status codeError codeError message
403Forbidden.AclACL authentication has failed.

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

Change history

Change timeSummary of changesOperation
2024-01-17The Error code has changedView Change Details