Restores a shutdown resource

POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/_restore

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, or integrations_server.

  • ref_id string Required

    User-specified RefId for the Resource (or '_main' if there is only one)

Query parameters

  • Whether or not to restore a snapshot for those resources that allow it.

    Default value is false.

Responses

  • Standard Deployment Resource Crud Response

    Hide response attributes Show response attributes object
    • id string Required

      The id of the deployment

    • kind string Required

      The kind of the stateless resource

    • ref_id string Required

      The reference id of the resource

    • 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)
    Hide headers attribute Show headers attribute
    • The error codes associated with the response

      Values are deployments.resource_does_not_have_a_pending_plan or deployments.resource_not_shutdown.

    Hide response attribute Show response attribute object
    • errors array[object] Required

      A list of errors that occurred in the failing request

      Hide errors attributes Show errors attributes object
      • code string Required

        A structured code representing the error type that occurred

      • message string Required

        A human readable message describing the error that occurred

      • fields array[string]

        If the error can be tied to a specific field or fields in the user request, this lists those fields

  • The Deployment specified by {deployment_id} cannot be found. (code: deployments.deployment_not_found)

    Hide headers attribute Show headers attribute
    • The error codes associated with the response

      Value is deployments.deployment_not_found.

    Hide response attribute Show response attribute object
    • errors array[object] Required

      A list of errors that occurred in the failing request

      Hide errors attributes Show errors attributes object
      • code string Required

        A structured code representing the error type that occurred

      • message string Required

        A human readable message describing the error that occurred

      • fields array[string]

        If the error can be tied to a specific field or fields in the user request, this lists those fields

POST /deployments/{deployment_id}/{resource_kind}/{ref_id}/_restore
curl \
 -X POST https://api.elastic-cloud.com/api/v1/deployments/{deployment_id}/{resource_kind}/{ref_id}/_restore
Response examples (200)
{
  "id": "string",
  "kind": "string",
  "ref_id": "string"
}
Response examples (400)
# Headers
x-cloud-error-codes: deployments.resource_does_not_have_a_pending_plan

# Payload
{
  "errors": [
    {
      "code": "string",
      "message": "string",
      "fields": [
        "string"
      ]
    }
  ]
}
Response examples (404)
# Headers
x-cloud-error-codes: deployments.deployment_not_found

# Payload
{
  "errors": [
    {
      "code": "string",
      "message": "string",
      "fields": [
        "string"
      ]
    }
  ]
}