Creates a permission group.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer automatically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes CreateAccessGroup

The operation that you want to perform.

Set the value to CreateAccessGroup.

AccessGroupName String Yes classic-test

The name of the permission group.

Limits:

  • The name must be 3 to 64 characters in length.
  • The name must start with a letter and can contain letters, digits, underscores (_), and hyphens (-).
  • The name must be different from the name of the default permission groups.

Default permission groups: DEFAULT_VPC_GROUP_NAME (VPC default permission group) and DEFAULT_CLASSIC_GROUP_NAME (classic network default permission group).

AccessGroupType String Yes Classic

The network type of the permission group.

Valid values:

  • Vpc: the virtual private cloud (VPC) network.
  • Classic: the classic network.
Description String No classictestaccessgroup

The description of the permission group.

Limits:

  • By default, the description is the same as the name of the permission group. The description must be 2 to 128 characters in length.
  • The description must start with a letter and cannot start with http:// or https://.
  • The description can contain digits, colons (:), underscores (_), and hyphens (-).
FileSystemType String No standard

The type of the file system.

Valid values:

  • standard: the default value, which indicates General-purpose NAS file systems.
  • extreme: Extreme NAS file systems.

Response parameters

Parameter Type Example Description
AccessGroupName String classic-test

The name of the permission group.

RequestId String 55C5FFD6-BF99-41BD-9C66-FFF39189F4F8

The ID of the request.

Examples

Sample requests

GET https://nas.cn-hangzhou.aliyuncs.com/?Action=CreatAccessGroup
&AccessGroupName=classic-test
&AccessGroupType=Classic
&Description=classic test access group
&<Common request parameters>

Sample success responses

XML format

<RequestId>55C5FFD6-BF99-41BD-9C66-FFF39189F4F8</RequestId>
<AccessGroupName>classic-test</AccessGroupName>

JSON format

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

Error codes

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