Delete Stateless Resource from Deployment
Delete Stateless Resource belonging to a given Deployment. Deployment must be shutdown already.
Path parameters
-
deployment_id
string Required Identifier for the Deployment
-
stateless_resource_kind
string Required The kind of stateless resource
Values are
kibana
,apm
,appsearch
,enterprise_search
, orintegrations_server
. -
ref_id
string Required User-specified RefId for the Resource (or '_main' if there is only one)
Responses
-
200 application/json
Standard Deployment Resource Crud Response
-
400 application/json
Resource has still instances. (code:
deployments.resource_has_instances
) -
404 application/json
- 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
)
- The Deployment specified by {deployment_id} cannot be found. (code:
-
500 application/json
We have failed you. (code:
deployments.deployment_resource_no_longer_exists
)
DELETE
/deployments/{deployment_id}/{stateless_resource_kind}/{ref_id}
curl \
--request DELETE 'https://{{hostname}}/api/v1/deployments/{deployment_id}/{stateless_resource_kind}/{ref_id}' \
--user "username:password"