Creates a logon configuration for a Resource Access Management (RAM) user.
Try it now
Test
RAM authorization
Action | Access level | Resource type | Condition key | Dependent action |
ram:CreateLoginProfile | create | *User
| None | None |
Request parameters
Parameter | Type | Required | Description | Example |
UserPrincipalName | string | Yes | The logon name of the RAM user. | test@example.onaliyun.com |
Password | string | No | The logon password for the RAM user. The password must meet the password policy. | mypassword |
PasswordResetRequired | boolean | No | Specifies whether the RAM user must reset the password at the next logon. Valid values:
| false |
MFABindRequired | boolean | No | Specifies whether the RAM user must enable multi-factor authentication (MFA). Valid values:
| false |
Status | string | No | Specifies whether to enable password-based logon to the console. Valid values:
| Active |
Response elements
Element | Type | Description | Example |
object | |||
RequestId | string | The request ID. | 29CB303C-1F05-43A6-A6BC-EBC5A797F8DB |
| LoginProfile | object | The console logon settings of the RAM user. | |
UserPrincipalName | string | The logon name of the RAM user. | test@example.onaliyun.com |
Status | string | Indicates whether password-based logon for the console is enabled or disabled. | Active |
UpdateDate | string | The time when the logon configuration was last updated. | 2020-10-14T03:47:51Z |
PasswordResetRequired | boolean | Indicates whether the RAM user must reset the password at the next logon. | false |
MFABindRequired | boolean | Indicates whether the RAM user is required to enable MFA. | false |
PasswordStatus | string | The status of the initial password. This password is set when a logon configuration is created or when console logon is re-enabled. Valid values
| NotInitial |
Examples
Success response
JSON format
{
"RequestId": "29CB303C-1F05-43A6-A6BC-EBC5A797F8DB",
"LoginProfile": {
"UserPrincipalName": "test@example.onaliyun.com",
"Status": "Active",
"UpdateDate": "2020-10-14T03:47:51Z",
"PasswordResetRequired": false,
"MFABindRequired": false,
"PasswordStatus": "NotInitial"
}
}Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.