Other deployment operations
editOther deployment operations
editRestart an Elasticsearch resource
editRestart an Elasticsearch resource.
curl -XPOST \ -H "Authorization: ApiKey $EC_API_KEY" \ "https://api.elastic-cloud.com/api/v1/deployments/$DEPLOYMENT_ID/$RESOURCE_KIND/$REF_ID/_restart"
DEPLOYMENT_ID
The ID of the deployment returned in the response for POST /deployments
RESOURCE_KIND
Type of the deployment resource. Depending on the version to be deployed, it can be elasticsearch
, kibana
, apm
, integrations_server
, appsearch
or enterprise_search
REF_ID
Name given to each resource type in the attribute ref_id
. main-elasticsearch
in the preceding example
Shut down a Elasticsearch Service deployment
editShut down a Elasticsearch Service deployment.
curl -XPOST \ -H "Authorization: ApiKey $EC_API_KEY" \ "https://api.elastic-cloud.com/api/v1/deployments/$DEPLOYMENT_ID/_shutdown"
DEPLOYMENT_ID
The ID of the deployment returned in the response for POST /deployments