Creates a RAM user group.
Debugging
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 64 characters in length and can contain letters, digits, periods (.), hyphens (-), and underscores (_). |
Comments | String | No | Development team |
The description of the RAM user group. The comments 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. |
GroupId | String | g-FpMEHiMysofp**** |
The ID of the RAM user group. |
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>
<GroupId>g-FpMEHiMysofp****</GroupId>
</Group>
</CreateGroupResponse>
JSON
format
{
"RequestId": "D3F0679E-9757-95DB-AF2D-04D5188C69C5",
"Group": {
"GroupName": "Dev-Team",
"Comments": "Development team",
"CreateDate": "2015-01-23T12:33:18Z",
"GroupId": "g-FpMEHiMysofp****"
}
}
Error codes
For a list of error codes, visit the API Error Center.