Queries the details of rules.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description 
Action String Yes DescribeAccessRules

The operation that you want to perform. Set the value to DescribeAccessRules.

AccessGroupName String Yes classic-test

The name of the permission group.

AccessRuleId String No 1

The ID of the rule.

PageSize Integer No 1

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

PageNumber Integer No 1

The number of the page to return. Pages start from page 1.

FileSystemType String No standard

The type of the file system. Valid values: standard and extreme. Default value: standard.

Response parameters

Parameter Type Example Description 
RequestId String 86D89E82-4297-4343-8E1E-A2495B35CC70

The ID of the request.

TotalCount Integer   1

The total number of rules.

PageSize Integer   1

The number of entries returned per page.

PageNumber Integer   1

The page number of the returned page.

AccessRules Array

The details of rules.

SourceCidrIp String 10.0.0.1/32

An IP address or Classless Inter-Domain Routing (CIDR) block.

Priority Integer   1

The priority. Valid values: 1 to 100. Default value: 1.

AccessRuleId String 1

The ID of each rule.

RWAccess String RDWR

The type of permission. Valid values: RDWR and RDONLY. Default value: RDWR.

UserAccess String no_squash

The type of user permission. Valid values: no_squash, root_squash, and all_squash. Default value: no_squash.

Examples

Sample requests

GET https://nas.cn-hangzhou.aliyuncs.com/?Action=DescribeAccessRules
&AccessGroupName=classic-test
&<Common request parameters>

Sample success responses

XML format

<DescribeAccessRulesResponse>
    <AccessRules>
        <AccessRule>
            <SourceCidrIp>10.0.0.1/32</SourceCidrIp>
            <AccessRuleId>1</AccessRuleId>
            <RWAccess>RDWR</RWAccess>
            <UserAccess>no_squash</UserAccess>
            <Priority>1</Priority>
        </AccessRule>
    </AccessRules>
    <PageNumber>1</PageNumber>
    <TotalCount>1</TotalCount>
    <PageSize>1</PageSize>
    <RequestId>86D89E82-4297-4343-8E1E-A2495B35CC70</RequestId>
</DescribeAccessRulesResponse>

JSON format

{
  "TotalCount": 1,
  "PageSize": 1,
  "RequestId": "86D89E82-4297-4343-8E1E-A2495B35CC70",
  "PageNumber": 1,
  "AccessRules": {
    "AccessRule": [
      {
        "RWAccess": "RDWR",
        "UserAccess": "no_squash",
        "Priority": 1,
        "SourceCidrIp": "10.0.0.1/32",
        "AccessRuleId": "1"
      }
    ]
  }
}

Error codes

For a list of error codes, visit the API Error Center.