Restarts an Elasticsearch 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.
请求示例请求示例
Shell
JavaScript
Java
Swift
curl--location--request POST 'http://127.0.0.1/deployments//elasticsearch//_restart' \
--header'Authorization: ApiKey {{EC_API_KEY}}'
🟠404* The Deployment specified by {deployment_id} cannot be found. (code: `deployments.deployment_not_found`)
* The Resource specified by {ref_id} cannot be found. (code: `deployments.deployment_resource_not_found`)
🟠422The command sent to a Resource found the Resource in an illegal state, the error message gives more details. (code: `deployments.deployment_resource_plan_change_error`)
🟠449Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`)
🔴500A Resource that was previously stored no longer exists. (code: `deployments.deployment_resource_no_longer_exists`)