Shut down Stateless Resource belonging to a given Deployment. Kibana cannot be shut down on Elasticsearch Service as it is required for Elasticsearch administrative functions, such as Snapshot Lifecycle Management and version upgrades.
请求示例请求示例
Shell
JavaScript
Java
Swift
curl--location--request POST 'http://127.0.0.1/deployments////_shutdown' \
--header'Authorization: ApiKey {{EC_API_KEY}}'
🟠400Parameter is restricted and can only be set by a Platform administrator. (code: `deployments.restricted_parameter`)
🟠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`)
🟠449Elevated permissions are required. (code: `root.unauthorized.rbac.elevated_permissions_required`)
🔴500We have failed you. (code: `deployments.deployment_resource_no_longer_exists`)