edit-icon download-icon

DescribeAccessRules

Last Updated: Apr 11, 2018

Description

Used to return the permission group rule description.

Request parameters

Parameter name Type Required Description
Action String TRUE Operation interface name and system required parameter. Value: DescribeAccessRules
AccessGroupName String TRUE Permission group name.
AccessRuleId String FALSE Rule serial number.
PageSize Integer FALSE The number of permission rules contained on each page. The default value is 10.
PageNumber Integer FALSE The page number of the list (beginning from 1).

Response parameters

Parameter name Type Description
TotalCount Integer Total number of permission rules.
PageSize Integer The number of permission rules contained on each page.
PageNumber Integer The page number of the list.
AccessRules AccessRules Permission rule description.

Example

Request example

  1. GET https://nas.cn-hangzhou.aliyuncs.com/?Action=DescribeAccessRules
  2. &AccessGroupName=classic-test
  3. &<Public Request Parameter>

Response example

XML example

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <DescribeAccessRulesResponse>
  3. <AccessRules>
  4. <AccessRule>
  5. <SourceCidrIp>10.0.0.1/32</SourceCidrIp>
  6. <AccessRuleId>1</AccessRuleId>
  7. <RWAccess>RDWR</RWAccess>
  8. <UserAccess>no_squash</UserAccess>
  9. <Priority>1</Priority>
  10. </AccessRule>
  11. </AccessRules>
  12. <PageNumber>1</PageNumber>
  13. <TotalCount>1</TotalCount>
  14. <PageSize>1</PageSize>
  15. <RequestId>86D89E82-4297-4343-8E1E-A2495B35CC70</RequestId>
  16. </DescribeAccessRulesResponse>

JSON example

  1. {
  2. "TotalCount": 1,
  3. "PageSize": 1,
  4. "RequestId": "86D89E82-4297-4343-8E1E-A2495B35CC70",
  5. "PageNumber": 1,
  6. "AccessRules": {
  7. "AccessRule": [
  8. {
  9. "RWAccess": "RDWR",
  10. "UserAccess": "no_squash",
  11. "Priority": 1,
  12. "SourceCidrIp": "10.0.0.1/32",
  13. "AccessRuleId": "1"
  14. }
  15. ]
  16. }
  17. }
Thank you! We've received your feedback.