Queries RAM users.

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 QueryAccountList

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

PageNumber Integer Yes 10

The number of the page to return.

PageSize Integer Yes 20

The number of entries returned per page.

RegionId String Yes cn-hangzhou

The region ID.

Response parameters

Parameter Type Example Description
Data Array of Data

The information of the RAM users.

RamUid String 153268435710****

The ID of the RAM user.

Remark String 123444

The remarks on the RAM user.

Role String root

The role assigned to the RAM user.

ShortName String abc

The abbreviated name of the RAM user.

UserName String admin123

The username of the RAM user.

PageNumber Integer 10

The page number of the returned page.

PageSize Integer 20

The number of entries returned per page.

RegionId String cn-hangzhou

The region ID.

RequestId String 8A840E5A-37DC-4178-81C1-367E733DA558

The ID of the request.

TotalCount Integer 200

The total number of records returned.

Examples

Sample requests

http(s)://[Endpoint]/?Action=QueryAccountList
&PageNumber=10
&PageSize=20
&RegionId=cn-hangzhou
&<Common request parameters>

Sample success responses

XML format

<TotalCount>200</TotalCount>
<PageSize>20</PageSize>
<RequestId>8A840E5A-37DC-4178-81C1-367E733DA558</RequestId>
<PageNumber>10</PageNumber>
<Data>
    <Role>root</Role>
    <ShortName>abc</ShortName>
    <UserName>admin123</UserName>
    <RamUid>153268435710****</RamUid>
    <Remark>123444</Remark>
</Data>
<RegionId>cn-hangzhou</RegionId>

JSON format

{"TotalCount":"200","PageSize":"20","RequestId":"8A840E5A-37DC-4178-81C1-367E733DA558","PageNumber":"10","Data":[{"Role":"root","ShortName":"abc","UserName":"admin123","RamUid":"153268435710****","Remark":"123444"}],"RegionId":"cn-hangzhou"}

Error codes

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