Queries the multi-factor authentication (MFA) device that is attached to a RAM user.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | GetUserMFAInfo |
The operation that you want to perform. Set the value to GetUserMFAInfo. |
UserName | String | Yes | zhangq**** |
The name of the RAM user. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
MFADevice |
The information of the MFA device that is attached to the RAM user. |
||
SerialNumber | String | Virtual-MFA-device002 |
The serial number of the MFA device. |
RequestId | String | 04F0F334-1335-436C-A1D7-6C044FE73368 |
The ID of the request. |
Examples
Sample requests
https://ram.aliyuncs.com/?Action=GetUserMFAInfo
&UserName=zhangq****
&<Common request parameters>
Sample success responses
XML
format
<RequestId>04F0F334-1335-436C-A1D7-6C044FE73368</RequestId>
<MFADevice>
<SerialNumber>Virtual-MFA-device002</SerialNumber>
</MFADevice>
JSON
format
{
"RequestId":"04F0F334-1335-436C-A1D7-6C044FE73368",
"MFADevice":{
"SerialNumber":"Virtual-MFA-device002"
}
}
Error codes
For a list of error codes, visit the API Error Center.