Modifies a rule.

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 ModifyAccessRule

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

AccessGroupName String Yes classic-test

The name of the permission group.

AccessRuleId String Yes 1

The ID of the rule.

SourceCidrIp String No 192.168.0.1

An IP address or Classless Inter-Domain Routing (CIDR) block. For example, 12.1.1.1 or 13.1.1.1/25.

Note Only IP addresses are available for permission groups of the Classic type.
RWAccessType String No RDWR

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

UserAccessType String No all_squash

The type of user permission.

Priority Integer No 1

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

FileSystemType String No standard

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

Response parameters

Parameter Type Example Description 
RequestId String 6299428C-3861-435D-AE54-9B330A0007C8

The ID of the request.

Examples

Sample requests

GET https://nas.cn-hangzhou.aliyuncs.com/?Action=ModifyAccessRule
&AccessGroupName=classic-test
&AccessRuleId=1
&SourceCidrIp=192.168.0.1
&RWAccessType=RDWR
&UserAccessType=all_squash
&<Common request parameters>

Sample success responses

XML format

<ModifyAccessRuleResponse>
    <RequestId>6299428C-3861-435D-AE54-9B330A0007C8</RequestId>
</ModifyAccessRuleResponse>

JSON format

{
  "RequestId": "6299428C-3861-435D-AE54-9B330A0007C8"
}

Error codes

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