Modifies a RAM user group.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | UpdateGroup |
The operation that you want to perform. Set the value to UpdateGroup. |
GroupName | String | Yes | Dev-Team |
The name of the RAM user group. |
NewGroupName | String | No | NewDev-Team |
The new 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 (_). |
NewComments | String | No | Development team |
The new 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 | NewDev-Team |
The new name of the RAM user group. |
UpdateDate | String | 2015-01-23T12:33:18Z |
The time when the information of the RAM user group was updated. |
RequestId | String | EC6647CC-0A36-EC7A-BA72-CC81BF3DE182 |
The ID of the request. |
Examples
Sample requests
https://ram.aliyuncs.com/?Action=UpdateGroup
&GroupName=Dev-Team
&NewGroupName=NewDev-Team
&<Common request parameters>
Sample success responses
XML
format
<UpdateGroupResponse>
<RequestId>EC6647CC-0A36-EC7A-BA72-CC81BF3DE182</RequestId>
<Group>
<GroupName>NewDev-Team</GroupName>
<Comments>Development team</Comments>
<CreateDate>2015-01-23T12:33:18Z</CreateDate>
<UpdateDate>2015-01-23T12:33:18Z</UpdateDate>
<GroupId>g-FpMEHiMysofp****</GroupId>
</Group>
</UpdateGroupResponse>
JSON
format
{
"RequestId": "EC6647CC-0A36-EC7A-BA72-CC81BF3DE182",
"Group": {
"GroupName": "NewDev-Team",
"Comments": "Development team",
"CreateDate" : "2015-01-23T12:33:18Z",
"UpdateDate" : "2015-01-23T12:33:18Z",
"GroupId": "g-FpMEHiMysofp****"
}
}
Error codes
For a list of error codes, visit the API Error Center.