Important: This API is currently in Tech Preview. While available for use, it is subject to change. Upgrades all resources (Elasticsearch, Kibana, APM, Enterprise Search, etc.) in the deployment to the specified Elastic Stack version. Both the current deployment version and the target version must be >= 8.0.0.
Responses
-
Deployment upgrade initiated successfully
-
- The specified version is invalid or not available. (code:
deployments.invalid_version) - The target version must be >= 8.0.0. (code:
deployments.upgrade.target_version_must_be_above_8_0_0) - The current deployment version must be >= 8.0.0. (code:
deployments.upgrade.source_version_must_be_above_8_0_0) - The target version must be greater than the current deployment version. (code:
deployments.upgrade_path_not_allowed)
- The specified version is invalid or not available. (code:
-
The Deployment specified by {deployment_id} cannot be found. (code:
deployments.deployment_not_found) -
A resource in the deployment has a failed last plan attempt. Resolve it before upgrading. (code:
deployments.upgrade_deployment_resource_last_plan_failed) -
Failed to upgrade the deployment. (code:
deployments.upgrade_internal_error)
POST
/deployments/{deployment_id}/upgrade
curl \
--request POST 'https://api.elastic-cloud.com/api/v1/deployments/{deployment_id}/upgrade' \
--header "Content-Type: application/json" \
--data '{"target_version":"string"}'