Queries the description of a permission rule.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
nas:DescribeAccessRules |
list |
*AccessGroup
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| AccessGroupName |
string |
Yes |
The name of the permission group. |
classic-test |
| AccessRuleId |
string |
No |
The ID of the permission rule. |
1 |
| PageSize |
integer |
No |
The number of file systems on each page during a paged query. Valid values: 1 to 100. Default value: 10. |
1 |
| PageNumber |
integer |
No |
The page number of the file system list. Start value (default value): 1. |
1 |
| FileSystemType |
string |
No |
The type of the file system. Valid values:
Valid values:
|
standard |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| TotalCount |
integer |
The total number of permission rules. |
1 |
| RequestId |
string |
The request ID. |
86D89E82-4297-4343-8E1E-A2495B35**** |
| PageSize |
integer |
The number of permission rules on each page. |
1 |
| PageNumber |
integer |
The page number of the file system list. |
1 |
| AccessRules |
object |
||
| AccessRule |
array<object> |
The collection of permission rule information. |
|
|
object |
|||
| AccessRuleId |
string |
The ID of the rule. |
1 |
| SourceCidrIp |
string |
The IP address or CIDR block of the authorized object. |
10.0.*.*/** |
| Ipv6SourceCidrIp |
string |
The IPv6 address or CIDR block of the authorized object. |
2001:250:6000::*** |
| RWAccess |
string |
The access permissions of the authorized object on the file system. Valid values:
|
RDWR |
| UserAccess |
string |
The access permissions for different types of users in the authorized object. Valid values:
The nobody user has the least permissions in Linux and can access only the public content of the file system. This ensures the security of the file system. |
no_squash |
| Priority |
integer |
The priority of the rule. If multiple rules are attached to the authorized object, the rule with the highest priority takes effect. Valid values: 1 to 100. The value 1 indicates the highest priority. |
1 |
| FileSystemType |
string |
The type of the file system. Valid values:
|
standard |
| AccessGroupName |
string |
The name of the permission group. |
test |
| RegionId |
string |
The region ID. |
cn-hangzhou |
Examples
Success response
JSON format
{
"TotalCount": 1,
"RequestId": "86D89E82-4297-4343-8E1E-A2495B35****",
"PageSize": 1,
"PageNumber": 1,
"AccessRules": {
"AccessRule": [
{
"AccessRuleId": "1",
"SourceCidrIp": "10.0.*.*/**",
"Ipv6SourceCidrIp": "2001:250:6000::***",
"RWAccess": "RDWR",
"UserAccess": "no_squash",
"Priority": 1,
"FileSystemType": "standard",
"AccessGroupName": "test",
"RegionId": "cn-hangzhou"
}
]
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.