Queries ACLs.
Debugging
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.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
ga:ListAcls | List |
|
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
RegionId | string | Yes | The ID of the region where the Global Accelerator (GA) instance is deployed. Set the value to cn-hangzhou. | cn-hangzhou |
ClientToken | string | No | The client token that is used to ensure the idempotence of the request. You can use the client to generate the value, but you must make sure that it is unique among different requests. The client token can contain only ASCII characters. Note
If you do not set this parameter, ClientToken is set to the value of RequestId. The value of RequestId for each API request may be different.
| 123e4567-e89b-12d3-a456-426655440000 |
AclIds | array | No | The ID of the network ACL. You can specify up to 20 network ACL IDs in each request. | |
string | No | The ID of the network ACL. You can specify up to 20 network ACL IDs in each request. | nacl-hp34s2h0xx1ht4nwo**** | |
AclName | string | No | The name of the network ACL. You can specify up to 10 network ACL names in each request. The name must be 2 to 128 characters in length, and can contain digits, periods (.), underscores (_), and hyphens (-). The name must start with a letter. | test-acl |
NextToken | string | No | The token that is used for the next query. Valid values:
| caeba0bbb2be03f84eb48b699f0a**** |
MaxResults | integer | No | The number of entries per page. Valid values: 1 to 50. Default value: 10. | 10 |
ResourceGroupId | string | No | The ID of the resource group. | rg-aek2lgw4evw**** |
Tag | object [] | No | The tags of the resource. | |
Key | string | No | The tag key of the network ACL. The tag key cannot be an empty string. The tag key can be up to 64 characters in length and cannot contain You can specify up to 20 tag keys. | tag-key |
Value | string | No | The tag value of the network ACL. The tag value can be an empty string. The tag value can be up to 128 characters in length and cannot contain You can specify up to 20 tag values. | tag-value |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "64ADAB1E-0B7F-4FD8-A404-3BECC0E9CCFF",
"TotalCount": 1,
"NextToken": "FFmyTO70t****",
"MaxResults": 10,
"Acls": [
{
"AclId": "nacl-hp34s2h0xx1ht4nwo****",
"AclName": "test-acl",
"AddressIPVersion": "IPv4",
"AclStatus": "active",
"ResourceGroupId": "rg-aek2lgw4evw****",
"Tags": [
{
"Key": "tag-key",
"Value": "tag-value"
}
]
}
]
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2021-04-27 | Add Operation | see changesets |