Creates a multi-factor authentication (MFA) device.


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes CreateVirtualMFADevice

The operation that you want to perform. Set the value to CreateVirtualMFADevice.

VirtualMFADeviceName String Yes device001

The name of the MFA device.

The name must be 1 to 64 characters in length and can contain letters, digits, periods (.), and hyphens (-).

Response parameters

Parameter Type Example Description
RequestId String 04F0F334-1335-436C-A1D7-6C044FE73368

The ID of the request.

VirtualMFADevice Struct

The information of the MFA device.

Base32StringSeed String DSF98HAD982KJA9SDFNAS9D8FU839B8ADHBGS****

The key of the MFA device.


The Base64-encoded QR code, in the PNG format.

SerialNumber String acs:ram::123456789012****:mfa/device001

The serial number of the MFA device.


Sample requests
&<Common request parameters>

Sample success responses

XML format


JSON format

    "RequestId": "04F0F334-1335-436C-A1D7-6C044FE73368",
    "VirtualMFADevice": {
        "SerialNumber": "acs:ram::123456789012****:mfa/device001",
        "Base32StringSeed": "DSF98HAD982KJA9SDFNAS9D8FU839B8ADHBGS****",
        "QRCodePNG": "YXNkZmFzZDlmeW5hc2Q5OGZoODd4bXJmcThhaGU5aSBmYXNkZiBzYWRmIGFGIDRxd2VjIGEgdHEz****"

Error codes

For a list of error codes, visit the API Error Center.