You can call this operation to retrieve the information about the RAM user.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | GetUser |
The operation that you want to perform. Set the value to GetUser. |
UserName | String | Yes | zhangq**** |
The name of the RAM user. The name must be 1 to 64 characters in length, and can contain letters, digits, periods (.), hyphens (-), and underscores (_). |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 2D69A58F-345C-4FDE-88E4-BF5189484043 |
The ID of the request. |
User | N/A | N/A |
The information about the RAM user. |
Comments | String | This is a cloud computing engineer. |
The description. |
CreateDate | String | 2015-01-23T12:33:18Z |
The time when the RAM user was created. |
DisplayName | String | Zhang * |
The display name of the RAM user. |
String | zhangq****@example.com |
The email address of the RAM user. |
|
LastLoginDate | String | 2015-01-23T12:33:18Z |
The time when the RAM user last logged on to the console by using the password. |
MobilePhone | String | 86-1860000**** |
The mobile phone number of the RAM user. |
UpdateDate | String | 2015-02-11T03:15:21Z |
The time when the information about the RAM user was updated. |
UserId | String | 122748924538**** |
The unique ID of the RAM user. |
UserName | String | zhangq**** |
The name of the RAM user. |
Examples
Sample requests
https://ram.aliyuncs.com/?Action=GetUser
&UserName=zhangq****
&<Common request parameters>
Sample success responses
XML
format
<RequestId>2D69A58F-345C-4FDE-88E4-BF5189484043</RequestId>
<User>
<UserId>122748924538****</UserId>
<UserName>zhangq****</UserName>
<DisplayName>Zhang *</DisplayName>
<MobilePhone>86-1860000****</MobilePhone>
<Email>zhangq****@example.com</Email>
<Comments>This is a cloud computing engineer.</Comments>
<CreateDate>2015-01-23T12:33:18Z</CreateDate>
<UpdateDate>2015-02-11T03:15:21Z</UpdateDate>
<LastLoginDate>2015-01-23T12:33:18Z</LastLoginDate>
</User>
JSON
format
{
"User":{
"LastLoginDate":"2015-01-23T12:33:18Z",
"Comments":"This is a cloud computing engineer.",
"Email":"zhangq****@example.com",
"UserName":"zhangq****",
"UpdateDate":"2015-02-11T03:15:21Z",
"UserId":"122748924538****",
"MobilePhone":"86-1860000****",
"DisplayName":"Zhang *",
"CreateDate":"2015-01-23T12:33:18Z"
},
"RequestId":"2D69A58F-345C-4FDE-88E4-BF5189484043"
}
Error codes
For a list of error codes, visit the API Error Center.