Creates a RAM user group.

Debug

Use OpenAPI Explorer to perform debug operations and generate SDK code examples.

Request parameters

Parameter Type Required? Example value Description
Action String Yes CreateGroup

The name of this action.

Value: CreateGroup

GroupName String Yes Dev-Team

The RAM user group name. It must be 1 to 64 characters in length.

Pattern: ^[a-zA-Z0-9\-]+$.

Comments String No Development team The comment. It must be 1 to 128 characters in length.

Response parameters

Parameter Type Example value Description
Group N/A N/A The information that relates to the RAM user group.
Comments String Development team The comment.
CreateDate String 2015-01-23T12:33:18Z The date and time when the RAM user group was created.
GroupName String Dev-Team The RAM user group name.
RequestId String D3F0679E-9757-95DB-AF2D-04D5188C69C5 The request ID.

Example

Request example

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

Response example

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":{
        "Comments":"Development team",
        "GroupName":"Dev-Team",
        "CreateDate":"2015-01-23T12:33:18Z"
    }
}

Errors

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