Skip to main content
POST
/
deployments
/
{deployment_id}
/
elasticsearch
/
{ref_id}
/
_reset-password
Reset 'elastic' user password
curl --request POST \
  --url https://api.elastic-cloud.com/api/v1/deployments/{deployment_id}/elasticsearch/{ref_id}/_reset-password \
  --header 'Authorization: <api-key>'
{
  "password": "<string>",
  "username": "<string>"
}

Authorizations

Authorization
string
header
required

Path Parameters

deployment_id
string
required

(Required) Identifier for the Deployment.

Example:

"<string>"

ref_id
string
required

(Required) User-specified RefId for the Resource (or '_main' if there is only one).

Example:

"<string>"

Query Parameters

check_completion
string

If true, will not reset elastic user password and instead will return a status code signaling whether or not the current credentials are ready to use (eg from creation or the last call to _reset_password)

Example:

"false"

Response

The password reset was out carried successfully

password
string
Example:

"<string>"

username
string
Example:

"<string>"

I