Creates a RAM user 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 CreateGroup

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

GroupName String Yes Dev-Team

The name of the RAM user group.

The name must be 1 to 128 characters in length and can contain letters, digits, and hyphens (-).

Comments String No Development team

The description of the RAM user group.

The description must be 1 to 128 characters in length.

Response parameters

Parameter Type Example Description
Group Struct

The information of the RAM user group.

Comments String Development team

The description of the RAM user group.

CreateDate String 2015-01-23T12:33:18Z

The time when the RAM user group was created.

GroupName String Dev-Team

The name of the RAM user group.

RequestId String D3F0679E-9757-95DB-AF2D-04D5188C69C5

The ID of the request.

Examples

Sample requests

https://ram.aliyuncs.com/?Action=CreateGroup
&GroupName=Dev-Team
&Comments=Development team
&<Common request parameters>

Sample success responses

XML format

<CreateGroupResponse>
      <RequestId>D3F0679E-9757-95DB-AF2D-04D5188C69C5</RequestId>
      <Group>
            <GroupName>Dev-Team</GroupName>
            <Comments>Development team</Comments>
            <CreateDate>2015-01-23T12:33:18Z</CreateDate>
      </Group>
</CreateGroupResponse>

JSON format

{
    "RequestId": "D3F0679E-9757-95DB-AF2D-04D5188C69C5",
    "Group": {
        "GroupName": "Dev-Team",
        "Comments": "Development team",
        "CreateDate": "2015-01-23T12:33:18Z"
    }
}

Error codes

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