Lists virtual Multi-Factor Authentication (MFA) devices.

Debug

Use OpenAPI Explorer to perform debug operations and generate SDK code examples.

Request parameters

Parameter Type Required? Example value Description
Action String Yes ListVirtualMFADevices

The name of this action.

Value: ListVirtualMFADevices

Response parameters

Parameter Type Example value Description
RequestId String 04F0F334-1335-436C-A1D7-6C044FE73368 The request ID.
VirtualMFADevices N/A N/A The list of virtual MFA devices.
ActivateDate String 2015-02-18T17:22:08Z The date and time when an MFA device was activated.
SerialNumber String acs:ram::123456789012****:mfa/device002 The ID of an MFA device.
User N/A N/A The basic information about the RAM user to which the MFA device is attached.
DisplayName String Alice The display name of the RAM user.
UserId String 122748924538**** The ID of the RAM user.
UserName String Alice The username of the RAM user.

Example

Request example

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

Response example

XML format

<ListVirtualMFADevicesResponse>
  <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>Alice</UserName>
        <DisplayName>Alice</DisplayName>
      </User>
    </VirtualMFADevice>
  </VirtualMFADevices>
</ListVirtualMFADevicesResponse>

JSON format

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

Errors

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