Creates a user group.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ram:CreateGroup |
create |
*Group
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DisplayName |
string |
No |
The display name of the user group. The maximum length is 24 characters. |
Dev-Team |
| Comments |
string |
No |
The comments. The maximum length is 128 characters. |
Development team |
| GroupName |
string |
No |
The name of the user group. This parameter is required. The maximum length is 64 characters. It can contain letters, digits, periods (.), underscores (_), and hyphens (-). |
Dev-Team |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Group |
object |
The user group information. |
|
| DisplayName |
string |
The display name of the user group. |
Dev-Team |
| GroupId |
string |
The ID of the user group. |
740317625433843**** |
| UpdateDate |
string |
The time when the user group was updated. Format: RFC 3339 (UTC). Example: 2020-10-19T16:15:17Z. |
2020-10-19T16:15:17Z |
| GroupName |
string |
The name of the user group. |
Dev-Team |
| Comments |
string |
The comments. |
Development team |
| CreateDate |
string |
The time when the user group was created. Format: RFC 3339 (UTC). Example: 2020-10-19T16:15:17Z. |
2020-10-19T16:15:17Z |
| RequestId |
string |
The request ID. |
3C38192B-7BF8-45DA-8F0A-E670EA51426C |
Examples
Success response
JSON format
{
"Group": {
"DisplayName": "Dev-Team",
"GroupId": "740317625433843****",
"UpdateDate": "2020-10-19T16:15:17Z",
"GroupName": "Dev-Team",
"Comments": "开发团队",
"CreateDate": "2020-10-19T16:15:17Z"
},
"RequestId": "3C38192B-7BF8-45DA-8F0A-E670EA51426C"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.