Restores a shutdown resource
Restores a shutdown resource belonging to a given Deployment.
Path parameters
-
deployment_id
string Required Identifier for the Deployment
-
resource_kind
string Required The kind of resource
Values are
elasticsearch
,kibana
,apm
,appsearch
,enterprise_search
, orintegrations_server
. -
ref_id
string Required User-specified RefId for the Resource (or '_main' if there is only one)
Query parameters
-
restore_snapshot
boolean Whether or not to restore a snapshot for those resources that allow it.
Default value is
false
.
Responses
-
200 application/json
Standard Deployment Resource Crud Response
-
400 application/json
- The Resource does not have a pending plan. (code:
deployments.resource_does_not_have_a_pending_plan
) - The resource is not shut down. (code:
deployments.resource_not_shutdown
)
- The Resource does not have a pending plan. (code:
-
404 application/json
The Deployment specified by {deployment_id} cannot be found. (code:
deployments.deployment_not_found
)
POST
/deployments/{deployment_id}/{resource_kind}/{ref_id}/_restore
curl \
--request POST 'https://api.elastic-cloud.com/api/v1/deployments/{deployment_id}/{resource_kind}/{ref_id}/_restore'