Calls DescribeACLAttribute to query the information about a specified access control list (ACL) instance.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
smartag:DescribeACLAttribute |
get |
*Acl
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID of the access control list (ACL) instance. |
cn-hangzhou |
| AclId |
string |
Yes |
The ID of the access control list (ACL) instance. |
acl-ohlexqptfhyaq**** |
| PageSize |
integer |
No |
The number of access control rule entries to display per page in a paginated query. Valid values: 1 to 50. Default value: 10. |
10 |
| PageNumber |
integer |
No |
The page number in a paginated query. Default value: 1. |
1 |
| Direction |
string |
No |
The direction of the access control rule. Valid values:
|
out |
| Order |
string |
No |
The order ID. |
1255444444 |
| Name |
string |
No |
The name of the ACL instance. The name must be 2 to 100 characters in length and must start with an uppercase letter, a lowercase letter, or a Chinese character. It can contain digits, periods (.), underscores (_), and hyphens (-). Note
This parameter supports fuzzy search. |
doctest |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| TotalCount |
integer |
The total number of access control rule entries in the current ACL instance. |
3 |
| PageSize |
integer |
The number of access control rule entries displayed per page in a paginated query. |
10 |
| RequestId |
string |
The request ID. |
8F62CE77-FBA2-4F8D-AED9-0A02814EDA69 |
| PageNumber |
integer |
The page number in a paginated query. |
1 |
| Acrs |
object |
||
| Acr |
array<object> |
The access control rule information in the current ACL instance. |
|
|
array<object> |
|||
| Direction |
string |
The direction in which the access control rule is applied.
|
out |
| Type |
string |
The type of the access control rule:
|
WAN |
| DpiSignatureIds |
object |
||
| DpiSignatureId |
array |
The IDs of the applications that match the current ACL rule. You can call the ListDpiSignatures operation to query application IDs and information about the applications. |
|
|
string |
A list of application IDs that match the access control rule. You can call the ListDpiSignatures operation to query application IDs and their corresponding application information. |
1 |
|
| IpProtocol |
string |
The protocol used by the access control rule. For information about the protocol types supported by the access control feature, see the console. The protocol is not case-sensitive. |
UDP |
| Priority |
integer |
The priority of the access control rule. A smaller value indicates a higher priority. Valid values: 1 to 100. |
70 |
| AclId |
string |
The ID of the ACL. |
acl-7louazbja80bmg**** |
| Policy |
string |
The authorization policy of the access control rule:
|
drop |
| Description |
string |
The description of the access control rule. The description must be 1 to 512 characters in length. This parameter is not returned by default. You can call the ModifyACLRule operation to set this parameter. After the parameter is set, the query returns this parameter. |
ACLRule |
| GmtCreate |
integer |
The timestamp when the access control rule was created. The timestamp is in the Long format. If two access control rules have the same priority, the one with the earlier timestamp takes precedence. |
1580821597000 |
| DestCidr |
string |
The destination CIDR block. The destination CIDR block must be in the 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. Specify the port range in a format such as 1/200 or 80/80. -1/-1 indicates that the port is not restricted. |
10000/20000 |
| Name |
string |
The name of the ACL. The name must be 2 to 100 characters in length, start with a letter or a Chinese character, and can contain digits, periods (.), underscores (_), and hyphens (-). |
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 the 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. Specify the port range in a format such as 1/200 or 80/80. -1/-1 indicates that the port is not restricted. |
30000/40000 |
| DpiGroupIds |
object |
||
| DpiGroupId |
array |
The IDs of the application groups that match the current ACL rule. You can call the ListDpiGroups operation to query application group IDs and information about the applications. |
|
|
string |
A list of application group IDs that match the access control rule. You can call the ListDpiGroups operation to query application group IDs and the applications that they contain. |
20 |
|
| AclType |
string |
The type of SAG instance that can be associated with the ACL. Valid values:
|
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.