Queries information about the multi-factor authentication (MFA) device that is bound to a Resource Access Management (RAM) user.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ram:GetUserMFAInfo |
get |
*User
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| UserPrincipalName |
string |
No |
The logon name of the RAM user. This parameter is differently set in the following scenarios:
|
test@example.onaliyun.com |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| MFADevice |
object |
The information about the MFA device. |
|
| SerialNumber |
string |
The serial number of the MFA device. |
acs:ram::177242285274****:mfa/device001 |
| Type |
string |
The type of the MFA device. Valid values:
|
VMFA |
| RequestId |
string |
The request ID. |
FCF7322A-20A9-4F68-8B7F-F86958839BC0 |
| IsMFAEnable |
boolean |
Indicates whether the MFA device is enabled. Valid values:
|
true |
Examples
Success response
JSON format
{
"MFADevice": {
"SerialNumber": "acs:ram::177242285274****:mfa/device001",
"Type": "VMFA"
},
"RequestId": "FCF7322A-20A9-4F68-8B7F-F86958839BC0",
"IsMFAEnable": true
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.