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


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.


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.


Sample requests

&<Common request parameters>

Sample success responses

XML format


JSON format

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