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 dynamically 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. The name must be 3 to 64 characters in length and can contain letters, digits, underscores (_), and hyphens (-). The name must start with a letter.

Default permission groups include DEFAULT_VPC_GROUP_NAME and DEFAULT_CLASSIC_GROUP_NAME. The name of a new permission group must be different from the default permission group names.

AccessGroupType String Yes Classic

The type of the permission group. Valid values: VPC and Classic.

Description String No classictestaccessgroup

The description of the permission group. 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 letters, digits, colons (:), underscores (_), and hyphens (-).

FileSystemType String No standard

The type of the file system.

  • Valid values: standard and extreme.
  • Default value: standard.

Response parameters

Parameter Type Example Description 
RequestId String 55C5FFD6-BF99-41BD-9C66-FFF39189F4F8

The ID of the request.

AccessGroupName String classic-test

The name of the permission group.

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

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

JSON format

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

Error codes

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