All Products
Search
Document Center

OpenSearch:ModifyPassword

Last Updated:Jul 16, 2024

Changes the password of an instance.

Operation description

Method

PUT

URI

/openapi/ha3/instances/{instanceId}/password

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request syntax

PUT /openapi/ha3/instances/{instanceId}/password

Request parameters

ParameterTypeRequiredDescriptionExample
instanceIdstringYes

The instance ID.

ha-cn-7pp2pcna701
bodyobjectNo

The request body.

usernamestringNo

The username.

"username"
passwordstringNo

The password.

******************************

Response parameters

ParameterTypeDescriptionExample
object

Schema of Response

requestIdstring

The ID of the request

407BFD91-DE7D-50BA-8F88-CDE52A3B5E46
resultobject

The result

{}

Description of response parameters

For more information, see Response structure.

Examples

Sample success responses

JSONformat

{
  "requestId": "407BFD91-DE7D-50BA-8F88-CDE52A3B5E46",
  "result": {}
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2022-01-12Add OperationView Change Details