edit-icon download-icon

CreateAccessRule

Last Updated: Apr 11, 2018

Description

Used to create a permission rule.

Request parameters

Parameter name Type Required Description
Action String TRUE Operation interface name and system required parameter. Value: CreateAccessRule
AccessGroupName String TRUE Permission group name.
SourceCidrIp String TRUE Address or address segment.
RWAccessType String FALSE Read-write permission type: RDWR (default), RDONLY
UserAccessType String FALSE User permission type: no_squash (default), root_squash, all_squash
Priority Integer FALSE Priority level. Range: 1-100. Default value: 1

Response parameters

Parameter name Type Description
AccessRuleId String Rule serial number.

Example

Request example

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

Response example

XML example

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <CreateAccessRuleResponse>
  3. <AccessRuleId>1</AccessRuleId>
  4. <RequestId>A323836B-5BC6-45A6-8048-60675C23EE2A</RequestId>
  5. </CreateAccessRuleResponse>

JSON example

  1. {
  2. "RequestId": "A323836B-5BC6-45A6-8048-60675C23EE2A",
  3. "AccessRuleId": "1"
  4. }
Thank you! We've received your feedback.