Removes a Multi-Factor Authentication (MFA) device from a RAM user.

Debug

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

Request parameters

Parameter Type Required? Example value Description
Action String Yes UnbindMFADevice

The name of this action.

Value: UnbindMFADevice

UserName String Yes Alice The username of the RAM user from which the MFA device is removed.

Response parameters

Parameter Type Example value Description
MFADevice N/A N/A The information about the MFA device.
SerialNumber String acs:ram::123456789012****:mfa/device002 The ID of the MFA device.
RequestId String 04F0F334-1335-436C-A1D7-6C044FE73368 The request ID.

Example

Request example

https://ram.aliyuncs.com/?Action=UnbindMFADevice
&UserName=Alice
&<Common parameters>

Response example

XML format

<UnbindMFADeviceResponse>
  <RequestId>04F0F334-1335-436C-A1D7-6C044FE73368</RequestId>
  <MFADevice>
    <SerialNumber>acs:ram::123456789012****:mfa/device002</SerialNumber>
  </MFADevice>
</UnbindMFADeviceResponse>

JSON format

{
    "RequestId":"04F0F334-1335-436C-A1D7-6C044FE73368",
    "MFADevice":{
        "SerialNumber":"acs:ram::123456789012****:mfa/device002"
    }
}

Errors

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