All Products
Search
Document Center

Server Load Balancer:DescribeAccessControlListAttribute

Last Updated:Oct 12, 2024

Queries the configuration of an access control list (ACL).

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

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
slb:DescribeAccessControlListAttributeget
  • acl
    acs:slb:{#regionId}:{#accountId}:acl/{#aclId}
  • slb:tag
none

Request parameters

ParameterTypeRequiredDescriptionExample
RegionIdstringYes

The region ID of the ACL.

You can call the DescribeRegions operation to query the most recent region list.

cn-hangzhou
AclIdstringYes

The ID of the ACL that you want to query.

acl-bp1ut10zzvh1y8dfs****
AclEntryCommentstringNo

The remarks of the ACL entry.

test
PageintegerNo

The number of the page to return.

1
PageSizeintegerNo

The number of entries to return on each page. Maximum value: 50. Default value: 10.

10

Response parameters

ParameterTypeDescriptionExample
object
AclIdstring

The ACL ID.

acl-bp1ut10zzvh1y8dfs****
Tagsarray<object>

The tags added to the ACL.

Tagobject

The tags.

TagKeystring

The tag key.

TestKey
TagValuestring

The tag value.

TestValue
AddressIPVersionstring

The IP version. Valid values: ipv4 and ipv6.

ipv4
RequestIdstring

The ID of the request.

C9906A1D-86F7-4C9C-A369-54DA42EF206A
ResourceGroupIdstring

The resource group ID.

rg-acfmz3jksig****
AclNamestring

The ACL name.

doctest
AclEntrysarray<object>

The information about the access control policy.

AclEntryobject

The information about the access control policy.

AclEntryCommentstring

The remarks of the ACL entry.

test
AclEntryIPstring

The IP entry in the ACL.

192.168.0.1
RelatedListenersarray<object>

The listeners with which the ACL is associated.

RelatedListenerobject

The listeners that are associated with the network ACL.

ListenerPortinteger

The frontend port of the listener with which the ACL is associated.

443
AclTypestring

The type of ACL. Valid values:

  • black
  • white
white
Protocolstring

The type of protocol that the associated listener uses.

https
LoadBalancerIdstring

The CLB instance ID.

lb-bp1qpzldlm38bnexl****
CreateTimestring

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

2022-08-31T02:49:05Z
TotalAclEntryinteger

The total number of ACL entries.

200

Examples

Sample success responses

JSONformat

{
  "AclId": "acl-bp1ut10zzvh1y8dfs****",
  "Tags": {
    "Tag": [
      {
        "TagKey": "TestKey",
        "TagValue": "TestValue"
      }
    ]
  },
  "AddressIPVersion": "ipv4",
  "RequestId": "C9906A1D-86F7-4C9C-A369-54DA42EF206A",
  "ResourceGroupId": "rg-acfmz3jksig****",
  "AclName": "doctest",
  "AclEntrys": {
    "AclEntry": [
      {
        "AclEntryComment": "test",
        "AclEntryIP": "192.168.0.1"
      }
    ]
  },
  "RelatedListeners": {
    "RelatedListener": [
      {
        "ListenerPort": 443,
        "AclType": "white",
        "Protocol": "https",
        "LoadBalancerId": "lb-bp1qpzldlm38bnexl****"
      }
    ]
  },
  "CreateTime": "2022-08-31T02:49:05Z",
  "TotalAclEntry": 200
}

Error codes

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

Change history

Change timeSummary of changesOperation
2023-03-21The request parameters of the API has changed. The response structure of the API has changedView Change Details