Changing the Password of an ACL Account
Function
This API is used to change the password of an ACL account.
URI
PUT /v2/{project_id}/instances/{instance_id}/accounts/{account_id}/password/modify
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
project_id |
Yes |
String |
Project ID. For details, see Obtaining a Project ID. |
|
instance_id |
Yes |
String |
Instance ID. |
|
account_id |
Yes |
String |
ACL account ID. |
Request Parameters
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
old_password |
No |
String |
Old password. |
|
new_password |
No |
String |
New password.
|
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
lock_time |
String |
Lock duration. If the password authentication fails and the account is locked, a response is returned and is not null. |
|
result |
String |
Password change result:
|
|
lock_time_left |
String |
Remaining time before the account is unlocked. When the account is locked, a response is returned and is not null. |
|
retry_times_left |
String |
Number of remaining password attempts. If the password authentication fails, a response is returned and is not null. |
|
message |
String |
Modification result description. |
Status code: 400
|
Parameter |
Type |
Description |
|---|---|---|
|
error_msg |
String |
Definition: Error message. Range: N/A |
|
error_code |
String |
Definition: Error code. Range: For details, see Error Codes. |
|
error_ext_msg |
String |
Definition: Extended error information. This parameter is not used currently and is set to null. Range: N/A |
Status code: 401
|
Parameter |
Type |
Description |
|---|---|---|
|
error_msg |
String |
Definition: Error message. Range: N/A |
|
error_code |
String |
Definition: Error code. Range: For details, see Error Codes. |
|
error_ext_msg |
String |
Definition: Extended error information. This parameter is not used currently and is set to null. Range: N/A |
Status code: 403
|
Parameter |
Type |
Description |
|---|---|---|
|
error_msg |
String |
Definition: Error message. Range: N/A |
|
error_code |
String |
Definition: Error code. Range: For details, see Error Codes. |
|
error_ext_msg |
String |
Definition: Extended error information. This parameter is not used currently and is set to null. Range: N/A |
Status code: 404
|
Parameter |
Type |
Description |
|---|---|---|
|
error_msg |
String |
Definition: Error message. Range: N/A |
|
error_code |
String |
Definition: Error code. Range: For details, see Error Codes. |
|
error_ext_msg |
String |
Definition: Extended error information. This parameter is not used currently and is set to null. Range: N/A |
Status code: 500
|
Parameter |
Type |
Description |
|---|---|---|
|
error_msg |
String |
Definition: Error message. Range: N/A |
|
error_code |
String |
Definition: Error code. Range: For details, see Error Codes. |
|
error_ext_msg |
String |
Definition: Extended error information. This parameter is not used currently and is set to null. Range: N/A |
Example Requests
PUT https://{dcs_endpoint}/v2/{project_id}/instances/{instance_id}/accounts/{account_id}/password/modify
{
"old_password" : "xxxxxx",
"new_password" : "xxxxxx"
}
Example Responses
Status code: 200
Password changed.
{
"lock_time" : "0",
"result" : "success",
"lock_time_left" : "0",
"retry_times_left" : "5",
"message" : "Modify DCSInstance password success."
}
Status code: 400
Invalid request.
{
"error_code" : "DCS.4961",
"error_msg" : "Acl account request param invalid."
}
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
Password changed. |
|
400 |
Invalid request. |
|
401 |
Invalid authentication information. |
|
403 |
Request rejected. |
|
404 |
The requested resource could not be found. |
|
500 |
Internal service error. |
Error Codes
See Error Codes.
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