Skip to main content
PUT
/
deployments
/
{deployment_id}
/
appsearch
/
{ref_id}
/
read_only_mode
Set AppSearch read-only status
curl --request PUT \
  --url https://api.elastic-cloud.com/api/v1/deployments/{deployment_id}/appsearch/{ref_id}/read_only_mode \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "enabled": "<boolean>"
}'
{
  "enabled": "<boolean>"
}

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>"

Body

application/json
enabled
string
Example:

"<boolean>"

Response

Standard response

enabled
string
Example:

"<boolean>"

I