Restores a shutdown Deployment
Restores all resources in a Deployment.
Path parameters
-
Identifier for the Deployment
Query parameters
-
restore_snapshot boolean
Whether or not to restore a snapshot for those resources that allow it.
Default value is
false
.
Responses
-
The request was valid and the resources of the deployment were restored.
-
There are Elasticsearch resources in the deployment which are not shut down.
-
You are not authorized to perform this action.
-
The Deployment specified by {deployment_id} cannot be found. (code:
deployments.deployment_not_found
)
POST /deployments/{deployment_id}/_restore
curl \
-X POST https://{{hostname}}/api/v1/deployments/{deployment_id}/_restore
Response examples (200)
{
"id": "string"
}
Response examples (400)
{
"errors": [
{
"code": "string",
"message": "string",
"fields": [
"string"
]
}
]
}
Response examples (401)
{
"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"
]
}
]
}