UnbindMFADevice

Last Updated: Aug 25, 2016

Interface description

 Unbinds a multi-factor authentication device.

Request parameters

Action

  • Type: String
  • Required: Yes
  • Description: Operation interface, required. The parameter value is “UnbindMFADevice”.

UserName

  • Type: String
  • Required: Yes
  • Description: User name.

Return parameters

MFADevice

Required permissions

Action

ram:UnbindMFADevice

Resource

acs:ram:*:${AccountId}:user/${UserName}

Error messages

InvalidParameter.UserName.InvalidChars
  • HTTP Status:400
  • Error Message:The parameter - “UserName” contains invalid chars.
InvalidParameter.UserName.Length
  • HTTP Status:400
  • Error Message:The parameter - “UserName” beyond the length limit.
EntityNotExist.User
  • HTTP Status:404
  • Error Message:The user does not exist.
EntityNotExist.User.MFADevice
  • HTTP Status:404
  • Error Message:The user has not bound any MFA device.

Operation examples

Request example

  1. https://ram.aliyuncs.com/?Action=UnbindMFADevice
  2. &UserName=zhangqiang
  3. &<Public request parameters>

Return example

XML format

  1. <UnbindMFADeviceResponse>
  2. <RequestId>04F0F334-1335-436C-A1D7-6C044FE73368</RequestId>
  3. <MFADevice>
  4. <SerialNumber>acs:ram::1234567890123:mfa/device002</SerialNumber>
  5. </MFADevice>
  6. </UnbindMFADeviceResponse>

JSON format

  1. {
  2. "RequestId": "04F0F334-1335-436C-A1D7-6C044FE73368",
  3. "MFADevice": {
  4. "SerialNumber":"acs:ram::1234567890123:mfa/device002"
  5. }
  6. }
Thank you! We've received your feedback.