Queries the list of all multi-factor authentication (MFA) devices.

Debugging

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 ListVirtualMFADevices

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

Response parameters

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

The ID of the request.

VirtualMFADevices Array

The list of MFA devices.

VirtualMFADevice

The information of an MFA device.

ActivateDate String 2015-02-18T17:22:08Z

The time when the MFA device was enabled.

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

The serial number of the MFA device.

User

The basic information of the RAM user to which the MFA device is attached.

DisplayName String Zhang*

The display name of the RAM user.

UserId String 122748924538****

The unique ID of the RAM user.

UserName String zhangq****

The name of the RAM user.

Examples

Sample requests

https://ram.aliyuncs.com/?Action=ListVirtualMFADevices
&<Common request parameters>

Sample success responses

XML format

<RequestId>04F0F334-1335-436C-A1D7-6C044FE73368</RequestId>
<VirtualMFADevices>
    <VirtualMFADevice>
        <SerialNumber>acs:ram::123456789012****:mfa/device001</SerialNumber>
    </VirtualMFADevice>
    <VirtualMFADevice>
        <SerialNumber>acs:ram::123456789012****:mfa/device002</SerialNumber>
        <ActivateDate>2015-02-18T17:22:08Z</ActivateDate>
        <User>
            <UserId>122748924538****</UserId>
            <UserName>zhangq****</UserName>
            <DisplayName>Zhang*</DisplayName>
        </User>
    </VirtualMFADevice>
</VirtualMFADevices>

JSON format

{
	"RequestId":"04F0F334-1335-436C-A1D7-6C044FE73368",
	"VirtualMFADevices":{
		"VirtualMFADevice":[
			{
				"SerialNumber":"acs:ram::123456789012****:mfa/device001"
			},
			{
				"User":{
					"UserName":"zhangq****",
					"UserId":"122748924538****",
					"DisplayName":"Zhang*"
				},
				"SerialNumber":"acs:ram::123456789012****:mfa/device002",
				"ActivateDate":"2015-02-18T17:22:08Z"
			}
		]
	}
}

Error codes

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