Set AppSearch read-only status
Enable/Disable read-only mode on the given App Search resource.
Path parameters
-
Identifier for the Deployment.
-
User-specified RefId for the Resource (or '_main' if there is only one).
PUT /deployments/{deployment_id}/appsearch/{ref_id}/read_only_mode
curl \
-X PUT https://api.elastic-cloud.com/api/v1/deployments/{deployment_id}/appsearch/{ref_id}/read_only_mode \
-d '{"enabled":true}'
Request examples
{
"enabled": true
}
Response examples (200)
{
"enabled": true
}
Response examples (404)
# Headers
x-cloud-error-codes: deployments.deployment_resource_not_found
# Payload
{
"errors": [
{
"code": "string",
"message": "string",
"fields": [
"string"
]
}
]
}
Response examples (500)
# Headers
x-cloud-error-codes: deployments.deployment_resource_no_longer_exists
# Payload
{
"errors": [
{
"code": "string",
"message": "string",
"fields": [
"string"
]
}
]
}