Binds a multi-factor authentication (MFA) device to a Resource Access Management (RAM) user.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ram:BindMFADevice |
update |
*User
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| SerialNumber |
string |
No |
The serial number of the MFA device. Note
You can call the CreateVirtualMFADevice operation to obtain the serial number of the MFA device. |
acs:ram::177242285274****:mfa/device001 |
| UserPrincipalName |
string |
Yes |
The logon name of the RAM user. |
test@example.onaliyun.com |
| AuthenticationCode1 |
string |
No |
The first verification code. Note
You can call the CreateVirtualMFADevice operation to create an MFA device and generate a key (value of |
123456 |
| AuthenticationCode2 |
string |
No |
The second verification code. Note
You can call the CreateVirtualMFADevice operation to create an MFA device and generate a key (value of |
654321 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
B9AF80E4-1565-42D9-9256-0B8B0D9FD3EC |
Examples
Success response
JSON format
{
"RequestId": "B9AF80E4-1565-42D9-9256-0B8B0D9FD3EC"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.