Queries RAM user groups.
Debugging
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 |
MaxItems | Integer | No | 100 |
The number of entries to return. If a response is truncated because it reaches the
value of Valid values: 1 to 1000. Default value: 100. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
Groups | Array of Group |
The list of the RAM user groups. |
|
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. |
UpdateDate | String | 2015-01-23T12:33:18Z |
The time when the information of the RAM user group was updated. |
IsTruncated | Boolean | true |
Indicates whether the response is truncated. |
Marker | String | EXAMPLE |
The marker. This parameter is returned only if the value of |
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
<ListGroupsResponse>
<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>
<GroupId>g-FpMEHiMysofp****</GroupId>
</Group>
<Group>
<GroupName>QA-Team</GroupName>
<Comments>Test team</Comments>
<CreateDate>2015-02-18T17:22:08Z</CreateDate>
<UpdateDate>2015-02-18T17:22:08Z</UpdateDate>
<GroupId>g-zYtroLrgbZR1****</GroupId>
</Group>
</Groups>
</ListGroupsResponse>
JSON
format
{
"RequestId": "065527AA-2F2E-AD7C-7484-F2626CFE4934",
"IsTruncated": true,
"Marker": "EXAMPLE",
"Groups": {
"Group": [
{
"GroupName": "Dev-Team",
"Comments": "Development team",
"CreateDate" : "2015-01-23T12:33:18Z",
"UpdateDate" : "2015-01-23T12:33:18Z",
"GroupId": "g-FpMEHiMysofp****"
},
{
"GroupName": "QA-Team",
"Comments":"Test team",
"CreateDate" : "2015-02-18T17:22:08Z",
"UpdateDate" : "2015-02-18T17:22:08Z",
"GroupId": "g-zYtroLrgbZR1****"
}
]
}
}
Error codes
For a list of error codes, visit the API Error Center.