Delete deployment template
Deletes a deployment template by id.
Path parameters
-
The identifier for the deployment template.
Query parameters
-
Region of the deployment template
Responses
-
The deployment template was successfully deleted.
Additional properties are allowed.
-
The requested region is not supported. (code:
templates.region_not_found
) -
The user is not authorized to access requested region. (code:
templates.region_not_allowed
) -
The deployment template specified by {template_id} cannot be found. (code:
templates.template_not_found
)
DELETE /deployments/templates/{template_id}
curl \
-X DELETE https://{{hostname}}/api/v1/deployments/templates/{template_id}?region=string
Response examples (200)
{}
Response examples (400)
# Headers
x-cloud-error-codes: templates.region_not_found
# Payload
{
"errors": [
{
"code": "string",
"message": "string",
"fields": [
"string"
]
}
]
}
Response examples (401)
# Headers
x-cloud-error-codes: templates.region_not_allowed
# Payload
{
"errors": [
{
"code": "string",
"message": "string",
"fields": [
"string"
]
}
]
}
Response examples (404)
# Headers
x-cloud-error-codes: templates.template_not_found
# Payload
{
"errors": [
{
"code": "string",
"message": "string",
"fields": [
"string"
]
}
]
}