Changing the Password of a DCS Instance
Function
This API is used to change the password of a DCS instance.
Request
Request parameters
Parameter |
Type |
Mandatory |
Description |
---|---|---|---|
old_password |
String |
Yes |
Old password. |
new_password |
String |
Yes |
New password. Password complexity requirements:
|
Example request
PUT https://{dcs_endpoint}/v1.0/{project_id}/instances/{instance_id}/password
{ "old_password": "XXXXXX", "new_password": "XXXXXX" }
Response
Response parameters
Parameter |
Type |
Description |
---|---|---|
result |
String |
An indicator of whether the password is successfully changed: Options:
|
message |
String |
Result of password change. |
retry_times_left |
String |
Number of remaining password attempts. If the old password is incorrect, the value of this parameter is not null. |
lock_time |
String |
Account lockout duration. If the old password is incorrect or the account is locked, the value of this parameter is not null. |
lock_time_left |
String |
Remaining time before the account is unlocked. If the account is locked, the value of this parameter is not null. |
//Change password sucessful. { "result" : "success", "message" : "Modify DCSInstance password success.", "retry_times_left" : "5", "lock_time" : "0", "lock_time_left" : "0" } //Change password failed. { "result" : "passwordFailed", "message" : "verify password failed.", "retry_times_left" : "4", "lock_time" : "5", "lock_time_left" : "5" }
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot