Modifies 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 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.

If you want to query the name of a RAM user group, call the ListGroups operation.

NewGroupName String No NewDev-Team

The new name of the RAM user group.

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

NewComments String No Development team

The new 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 NewDev-Team

The name of the RAM user group.

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

The time when the RAM user group was modified.

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>
      </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"
    }
}

Error codes

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