UpdateAdminPassword
Updates the password of the elastic account for a specified Elasticsearch instance.
Operation description
When you invoke this operation, note the following:
You cannot update information when the instance status is activating, invalid, or freeze (inactive).
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
elasticsearch:UpdateAdminPassword |
update |
*Instance
|
None | None |
Request syntax
PATCH /openapi/instances/{InstanceId}/admin-pwd HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The instance ID. |
es-cn-nif1q9o8r0008**** |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| clientToken |
string |
No |
A unique token used to ensure idempotence of the request. This parameter value is generated by the client and must be unique across different requests. The maximum length is 64 ASCII characters. |
5A2CFF0E-5718-45B5-9D4D-70B3FF**** |
| body |
object |
No |
The request body parameters. |
{ "esAdminPassword": "es_password*" } |
| esAdminPassword |
string |
No |
The new password after the update. Note
The password must be 8 to 32 characters in length and must contain at least three of the following character types: uppercase letters, lowercase letters, and special characters: !@#$%^&*()_+-=. |
es_password |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
0FA05123-745C-42FD-A69B-AFF48EF9**** |
| Result |
boolean |
Indicates whether the password is updated. Valid values:
|
true |
Examples
Success response
JSON format
{
"RequestId": "0FA05123-745C-42FD-A69B-AFF48EF9****",
"Result": true
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.