Enables console logon for a RAM user.

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 CreateLoginProfile

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

UserName String Yes zhangq****

The name of the RAM user.

Password String Yes mypassword

The logon password of the RAM user. The password must meet the password strength requirements. For more information, see GetPasswordPolicy.

PasswordResetRequired Boolean No false

Specifies whether the RAM user must change the password upon logon. Default value: false.

MFABindRequired Boolean No false

Specifies whether an MFA device must be attached to the RAM user upon logon. Default value: false.

Response parameters

Parameter Type Example Description
LoginProfile

The logon configurations of the RAM user.

CreateDate String 2015-01-23T12:33:18Z

The time when the logon configurations were created.

MFABindRequired Boolean false

Indicates whether an MFA device must be attached to the RAM user upon logon.

PasswordResetRequired Boolean false

Indicates whether the RAM user must change the password upon logon.

UserName String zhangq****

The name of the RAM user.

RequestId String 04F0F334-1335-436C-A1D7-6C044FE73368

The ID of the request.

Examples

Sample requests


https://ram.aliyuncs.com/?Action=CreateLoginProfile
&UserName=zhangq****
&Password=mypassword
&PasswordResetRequired=false
&<Common request parameters>

Sample success responses

XML format

<RequestId>04F0F334-1335-436C-A1D7-6C044FE73368</RequestId>
<LoginProfile>
    <UserName>zhangq****</UserName>
    <PasswordResetRequired>true</PasswordResetRequired>
    <MFABindRequired>true</MFABindRequired>
    <CreateDate>2015-01-23T12:33:18Z</CreateDate>
</LoginProfile>

JSON format

{
	"RequestId":"04F0F334-1335-436C-A1D7-6C044FE73368",
	"LoginProfile":{
		"PasswordResetRequired":true,
		"MFABindRequired":true,
		"UserName":"zhangq****",
		"CreateDate":"2015-01-23T12:33:18Z"
	}
}

Error codes

For a list of error codes, visit the API Error Center.