Locks a virtual MFA device that is bound to a convenience user.

Description

After a virtual MFA device is locked, the status of the virtual MFA device changes to LOCKED. The convenience user to which the MFA device is bound cannot log on to the cloud desktop that resides in the workspace with the MFA feature enabled because the convenience user will fail authentication based on the virtual MFA device. You can call the UnlockMfaDevice operation to unlock the virtual MFA device.

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 LockMfaDevice

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

SerialNumber String No dc856334-446b-4035-bfbc-18af261e****

The serial number of the virtual MFA device, which is a unique identifier.

Response parameters

Parameter Type Example Description
RequestId String 42FE70D8-4336-471B-8314-CCCFCE4159FD

The ID of the request.

Examples

Sample requests

https://eds-user.cn-shanghai.aliyuncs.com/?Action=LockMfaDevice
&SerialNumber=dc856334-446b-4035-bfbc-18af261e****
&<Common request parameters>

Sample success responses

XML format

<LockMfaDeviceResponse>
      <RequestId>42FE70D8-4336-471B-8314-CCCFCE4159FD</RequestId>
</LockMfaDeviceResponse>

JSON format

{
    "RequestId": "42FE70D8-4336-471B-8314-CCCFCE4159FD"
}