Description
This topic describes the API for changing the management password of a specified tenant.
Call instructions
API constraints
You must authenticate by using the OCP application service.
Request path
POST /api/v2/ob/clusters/{id}/tenants/{tenantId}/changePassword
Request parameters
path:
Parameter |
Type |
Required |
Example value |
Description |
|---|---|---|---|---|
| id | Long | Yes | 1000001 | The cluster ID of the target tenant in OCP. |
| tenantId | Long | Yes | 1000002 | The tenant ID of the target tenant in OCP. |
body:
Parameter |
Type |
Required |
Example value |
Description |
|---|---|---|---|---|
| newPassword | String | Yes | foo | Zone priority. |
Return result
Basic data structure
Parameter |
Type |
Description |
|---|---|---|
| successful | Boolean | Specifies whether the request is successful. |
| timestamp | Datetime | The timestamp when the server finishes processing the request. |
| duration | Integer | The time taken by the server to process the request, in milliseconds. |
| status | Integer | An HTTP status code that conforms to the HTTP standard. |
| traceId | String | The Trace ID of the request, which is used for troubleshooting. |
| server | String | The address of the application service that responds to the request. |
Examples
Request example
POST /api/v2/ob/clusters/1000001/tenants/1000002/changePassword
{
"newPassword": "foo"
}
Return example
{
"duration": 233,
"server": "a83ad33525",
"status": 200,
"successful": true,
"timestamp": "2021-03-02T16:02:24.643+08:00",
"traceId": "49556176bcfe439b"
}
