Delete Stateless Resource from Deployment
Delete Stateless Resource belonging to a given Deployment. Deployment must be shutdown already.
Path parameters
-
Identifier for the Deployment
-
The kind of stateless resource
Values are
kibana
,apm
,appsearch
,enterprise_search
, orintegrations_server
. -
User-specified RefId for the Resource (or '_main' if there is only one)
Responses
-
Standard Deployment Resource Crud Response
-
Resource has still instances. (code:
deployments.resource_has_instances
) -
- 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:
-
We have failed you. (code:
deployments.deployment_resource_no_longer_exists
)
DELETE /deployments/{deployment_id}/{stateless_resource_kind}/{ref_id}
curl \
-X DELETE https://{{hostname}}/api/v1/deployments/{deployment_id}/{stateless_resource_kind}/{ref_id}
Response examples (200)
{
"id": "string",
"kind": "string",
"ref_id": "string"
}
Response examples (400)
# Headers
x-cloud-error-codes: deployments.resource_has_instances
# Payload
{
"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"
]
}
]
}
Response examples (500)
# Headers
x-cloud-error-codes: deployments.deployment_resource_no_longer_exists
# Payload
{
"errors": [
{
"code": "string",
"message": "string",
"fields": [
"string"
]
}
]
}