Queries the list of all RAM user groups.

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 ListGroups

The operation that you want to perform. Set the value to ListGroups.

Marker String No EXAMPLE

The marker. If part of a previous response is truncated, you can use this parameter to obtain the truncated part.

MaxItems Integer No 100

The number of entries to return. If a response is truncated because it reaches the value of MaxItems, the value of IsTruncated will be true.

Valid values: 1 to 1000. Default value: 100.

Response parameters

Parameter Type Example Description
Groups Array

The list of RAM user groups.

Group

The information of a 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 Dev-Team

The name of the RAM user group.

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

The time when the information of the RAM user group was modified.

IsTruncated Boolean true

Indicates whether the response is truncated.

Marker String EXAMPLE

The marker. This parameter is returned only if the value of IsTruncated is true. If the value of IsTruncated is true, you can call this operation again and set Marker to obtain the truncated part.

RequestId String 065527AA-2F2E-AD7C-7484-F2626CFE4934

The ID of the request.

Examples

Sample requests

https://ram.aliyuncs.com/?Action=ListGroups
&<Common request parameters>

Sample success responses

XML format

<RequestId>065527AA-2F2E-AD7C-7484-F2626CFE4934</RequestId>
<IsTruncated>true</IsTruncated>
<Marker>EXAMPLE</Marker>
<Groups>
    <Group>
        <GroupName>Dev-Team</GroupName>
        <Comments>Development team</Comments>
        <CreateDate>2015-01-23T12:33:18Z</CreateDate>
        <UpdateDate>2015-01-23T12:33:18Z</UpdateDate>
    </Group>
    <Group>
        <GroupName>QA-Team</GroupName>
        <Comments>Test team</Comments>
        <CreateDate>2015-02-18T17:22:08Z</CreateDate>
        <UpdateDate>2015-02-18T17:22:08Z</UpdateDate>
    </Group>
</Groups>

JSON format

{
	"Groups":{
		"Group":[
			{
				"Comments":"Development team",
				"GroupName":"Dev-Team",
				"UpdateDate":"2015-01-23T12:33:18Z",
				"CreateDate":"2015-01-23T12:33:18Z"
			},
			{
				"Comments":"Test team",
				"GroupName":"QA-Team",
				"UpdateDate":"2015-02-18T17:22:08Z",
				"CreateDate":"2015-02-18T17:22:08Z"
			}
		]
	},
	"IsTruncated":true,
	"RequestId":"065527AA-2F2E-AD7C-7484-F2626CFE4934",
	"Marker":"EXAMPLE"
}

Error codes

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