Skip to main content

ModifyAccessRule

Description

call ModifyAccessRule interface to modify permission group rules.

Request Method

POST

Request Path

/apsara/route/NAS/ModifyAccessRule

Request Parameters Common Parameters

NameLocationTypeRequiredSample valueDescription
UserAccessTypeBODYstringNoall_squashthe system user of the authorized object has access to the file system. Value: no_squash: allows root user to access the file system. root_squash: when accessing as root, map the nobody user. all_squash: no matter what user is accessed, it is mapped to a nobody user. nobody user is the default user of Linux system, can only access public content on the server, with low permissions and high security characteristics.
regionIdBODYstringYesNo sample value for this parameter.region id
PriorityBODYintegerNo1priority of permission group rules. value range: 1~100 default value: 1 (highest priority)
AccessGroupNameBODYstringYesclassic-testpermission group name.
SourceCidrIpBODYstringNo192.1**.*.*IP address or network segment. The format must be a single IP address or CIDR network segment. Description The permission group of the classic network type only supports IP addresses.
FileSystemTypeBODYstringNostandardfile system type. default value: standard (general purpose NAS)
AccessRuleIdBODYstringYes1permission group rule ID.
RWAccessTypeBODYstringNoRDWRAuthorize the read and write permissions of the object to the file system. Value: RDWR (default): read and write RDONLY: read-only
versionBODYstringNo2016-01-01version of api

Return data

NameTypeSample valueDescription
RequestIdstring6299428C-3861-435D-AE54-9B330A00****request ID.

Example

Successful Response example

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

Failed Response example

{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}

}