Change the administrator password of a tenant

2023-08-22 02:51:01  Updated

Description

You can call this operation to change the administrator password of a tenant.

Call description

Prerequisite

You have passed the authentication for the OCP application service.

Request path

POST /api/v2/ob/clusters/{id}/tenants/{tenantId}/changePassword

Path parameters

Parameter Type Required Example value Description
id Long Yes 1 The ID of the cluster to which the tenant belongs.
tenantId Long Yes 1 The ID of the tenant.

Request parameters

Parameter Type Required Example value Description
newPassword String Yes foo The priorities of the zones.
saveToCredential Boolean No true Specifies whether to save the password to the password box. Default value: true.

Response parameters

Basic data structure

Parameter Type Description
successful Boolean Indicates whether the request was successful.
timestamp Datetime The timestamp when the server completed the request.
duration Integer The time taken by the server to process the request, in milliseconds.
status Integer An HTTP status code.
traceId String The trace ID of the request. This trace ID is used for troubleshooting.
server String The address of the application server that responded to the request.

Examples

Sample request

POST /api/v2/ob/clusters/1/tenants/2/changePassword

body:

{
  "newPassword": "foo"
}

Sample response

{
  "duration": 233,
  "server": "xxx.xxx.xxx.xxx",
  "status": 200,
  "successful": true,
  "timestamp": "2021-03-02T16:02:24.643+08:00",
  "traceId": "49556176bcfe439b"
}

Contact Us