Changing the RBAC Account Password of a ServiceComb Engine
Function
This API is used to change the RBAC account password of a ServiceComb engine.
Authorization Information
Each account has all of the permissions required to call all APIs, but IAM users must have the required permissions specifically assigned.
- If you are using role/policy-based authorization, see the required permissions in Permissions and Supported Actions.
- If you are using identity policy-based authorization, the permission listed below is required.
Action
Access Level
Resource Type (*: required)
Condition Key
Alias
Dependency
cse:engine:update
write
engine
-
-
URI
POST /v3/{project_id}/accounts/{name}/password
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
project_id |
Yes |
String |
Project ID, which must be unique. The value contains 1 to 64 characters. |
|
name |
Yes |
String |
RBAC account name. |
Request
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
X-Auth-Token |
Yes |
String |
User token. |
|
X-Enterprise-Project-ID |
No |
String |
If this parameter is not set, the default enterprise project is default and the ID is 0. Default value: 0 |
|
Content-Type |
Yes |
String |
Set it to application/json;charset=UTF-8. |
|
Accept |
Yes |
String |
Set it to application/json. |
|
X-Engine-Id |
Yes |
String |
ServiceComb engine ID. |
|
Authorization |
Yes |
String |
RBAC token of the ServiceComb engine. The format is Bear {token text}. |
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
currentPassword |
No |
String |
Current password. Required when the modifier changes its own password. Otherwise (for example, the admin account changes the password of another account), the current password is not required. |
|
password |
Yes |
String |
New password. |
Response
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
result |
String |
Result. |
Status code: 400
|
Parameter |
Type |
Description |
|---|---|---|
|
error_code |
String |
Error code. |
|
error_msg |
String |
Error message. |
|
detail |
String |
Location details. |
Status code: 500
|
Parameter |
Type |
Description |
|---|---|---|
|
error_code |
String |
Error code. |
|
error_msg |
String |
Error message. |
|
detail |
String |
Location details. |
Example Request
POST /v3/{project_id}/accounts/{name}/password
{
"currentPassword": "currentPassword",
"password": "password"
}
Example Response
Status code: 200
OK
{
"Result" : "string"
}
Status Code
|
Status Code |
Description |
|---|---|
|
200 |
OK |
|
400 |
Bad Request |
|
500 |
Internal Server Error |
Error Code
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