Logo
Elasticsearch API Documentation

Restart Deployment Stateless Resource

POST {{baseUrl}}/deployments/:deployment_id/:stateless_resource_kind/:ref_id/_restart?cancel_pending=false

Restarts a Stateless Resource. If a Resource is active: this command re-applies the existing plan but applies a cluster_reboot, which issues a restart command and waits for it to complete. If a Resource is inactive: this command starts it up with the most recent successful plan.

 

Body PARAM

Key Datatype Required Description 
cancel_pending
boolean If true, cancels any pending plans before restarting. If false and there are pending plans, returns an error.



HEADERS

Key Datatype Required Description 




RESPONSES

status





Curl
curl -X POST 'https://api.elastic-cloud.com/api/v1//deployments/:deployment_id/:stateless_resource_kind/:ref_id/_restart?cancel_pending=false?cancel_pending=false'

ENDPOINTS