Queries the multi-factor authentication (MFA) device that is attached to a Resource Access Management (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 | test |
The username of the RAM user. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
MFADevice | Struct |
The information about the MFA device that is attached to the RAM user. |
|
SerialNumber | String | acs:ram::177242285274****:mfa/test |
The serial number of the MFA device. |
Type | String | VMFA |
The type of the MFA device. Valid values:
|
RequestId | String | 04F0F334-1335-436C-A1D7-6C044FE73368 |
The ID of the request. |
Examples
Sample requests
https://ram.aliyuncs.com/?Action=GetUserMFAInfo
&UserName=test
&<Common Request Parameters>
Sample success responses
XML
format
<GetUserMFAInfoResponse>
<RequestId>04F0F334-1335-436C-A1D7-6C044FE73368</RequestId>
<MFADevice>
<SerialNumber>acs:ram::177242285274****:mfa/test</SerialNumber>
<Type>VMFA</Type>
</MFADevice>
</GetUserMFAInfoResponse>
JSON
format
{
"RequestId": "04F0F334-1335-436C-A1D7-6C044FE73368",
"MFADevice": {
"SerialNumber":"acs:ram::177242285274****:mfa/test",
"Type": "VMFA"
}
}
Error codes
For a list of error codes, visit the API Error Center.