Changing the Password of a DCS Instance
Function
This API is used to change the password of a DCS instance.
URI
PUT /v1.0/{project_id}/instances/{instance_id}/password
Parameter |
Type |
Mandatory |
Description |
---|---|---|---|
project_id |
String |
Yes |
Project ID. For details on how to obtain the value of this parameter, see Obtaining a Project ID. |
instance_id |
String |
Yes |
DCS instance ID. |
Request
Request parameters
Parameter |
Type |
Mandatory |
Description |
---|---|---|---|
old_password |
String |
Yes |
Old password. |
new_password |
String |
Yes |
New password. Password complexity requirements:
|
Example request
- Request URL:
PUT https://{dcs_endpoint}/v1.0/{project_id}/instances/{instance_id}/password
- Example:
{ "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 success. { "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