Creates a 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 |
No |
The name of the MFA device. The name must be 1 to 64 characters in length, and can contain letters, digits, periods (.), and hyphens (-). |
device001 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| VirtualMFADevice |
object |
The information about the MFA device. |
|
| SerialNumber |
string |
The serial number of the MFA device. |
acs:ram::123456789012****:mfa/device001 |
| QRCodePNG |
string |
The Base64-encoded QR code, in the PNG format. |
YXNkZmFzZDlmeW5hc2Q5OGZoODd4bXJmcThhaGU5aSBmYXNkZiBzYWRmIGFGIDRxd2VjIGEgdHEz**** |
| Base32StringSeed |
string |
The key of the MFA device. |
DSF98HAD982KJA9SDFNAS9D8FU839B8ADHBGS**** |
| RequestId |
string |
The request ID. |
04F0F334-1335-436C-A1D7-6C044FE73368 |
Examples
Success response
JSON format
{
"VirtualMFADevice": {
"SerialNumber": "acs:ram::123456789012****:mfa/device001",
"QRCodePNG": "YXNkZmFzZDlmeW5hc2Q5OGZoODd4bXJmcThhaGU5aSBmYXNkZiBzYWRmIGFGIDRxd2VjIGEgdHEz****",
"Base32StringSeed": "DSF98HAD982KJA9SDFNAS9D8FU839B8ADHBGS****"
},
"RequestId": "04F0F334-1335-436C-A1D7-6C044FE73368"
}
Error response
JSON format
{
"RequestId": "04F0F334-1335-436C-A1D7-6C044FE73368",
"VirtualMFADevice": {
"SerialNumber": "acs:ram::1234567890123:mfa/device001",
"Base32StringSeed": "DSF98HAD982KJA9SDFNAS9D8FU839B8ADHBGSD7A8",
"QRCodePNG": "YXNkZmFzZDlmeW5hc2Q5OGZoODd4bXJmcThhaGU5aSBmYXNkZiBzYWRmIGFGIDRxd2VjIGEgdHEzdCAg"
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.