Skip to main content

CreateAccessGroup

Description

call the CreateAccessGroup interface to create a permission group.

Request Method

POST

Request Path

/apsara/route/NAS/CreateAccessGroup

Request Parameters Common Parameters

NameLocationTypeRequiredSample valueDescription
AccessGroupTypeBODYstringYesClassicpermission group type. Value: Vpc: VPC Classic: Classic Network
DescriptionBODYstringNoclassictestaccessgrouppermission group description. Limit: The default name is the same as the name, and the length is 2 to 128 English or Chinese characters. must start with a large or small letter or Chinese, and cannot start with http:// and https. can contain numbers, semicolons (:), underscores (_), or dashes (-).
regionIdBODYstringYesNo sample value for this parameter.region id
AccessGroupNameBODYstringYesclassic-testpermission group name. Limit: is 3 to 64 characters in length. must start with a lowercase letter, which can contain letters, numbers, underscores (_), or dashes (-). the name of the newly created permission group cannot be the same as the two default permission groups. default permission group: DEFAULT_VPC_GROUP_NAME (vpc default permission group) and DEFAULT_CLASSIC_GROUP_NAME (classic network default permission group).
FileSystemTypeBODYstringNostandardfile system type. default value: standard (general purpose NAS)
versionBODYstringNo2016-01-01version of api

Return data

NameTypeSample valueDescription
RequestIdstring55C5FFD6-BF99-41BD-9C66-FFF39189****request ID.
AccessGroupNamestringclassic-testpermission group name.

Example

Successful Response example

{
"RequestId":"55C5FFD6-BF99-41BD-9C66-FFF39189****",
"AccessGroupName":"classic-test"
}

Failed Response example

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

}