Creates a virtual multi-factor authentication (MFA) device.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ram:CreateVirtualMFADevice |
create |
*MFADevice
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| VirtualMFADeviceName |
string |
Yes |
The name of the MFA device. The name must be 1 to 64 characters in length and can contain letters, digits, and hyphens (-). |
device001 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| VirtualMFADevice |
object |
The information about the MFA device. |
|
| SerialNumber |
string |
The serial number of the MFA device. |
acs:ram::177242285274****:mfa/device001 |
| QRCodePNG |
string |
The Base64-encoded QR code of the key. |
YXNkZmFzZDlmeW5hc2Q5OGZoODd4bXJmcThhaGU5aSBmYXNkZiBzYWRmIGFGIDRxd2VjIGEgdHEz**** |
| Base32StringSeed |
string |
The key of the MFA device. |
LD3CJ23Z2VGEX6R7ZTQCOA4XL2KODS5PKH7442NLKYX2PVHSHYB7UT3TS5HA**** |
| RequestId |
string |
The request ID. |
C609CC97-10FE-43EB-BE32-BDC219D8F1E4 |
Examples
Success response
JSON format
{
"VirtualMFADevice": {
"SerialNumber": "acs:ram::177242285274****:mfa/device001",
"QRCodePNG": "YXNkZmFzZDlmeW5hc2Q5OGZoODd4bXJmcThhaGU5aSBmYXNkZiBzYWRmIGFGIDRxd2VjIGEgdHEz****",
"Base32StringSeed": "LD3CJ23Z2VGEX6R7ZTQCOA4XL2KODS5PKH7442NLKYX2PVHSHYB7UT3TS5HA****"
},
"RequestId": "C609CC97-10FE-43EB-BE32-BDC219D8F1E4"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.