Delete deployment template
Deletes a deployment template by id.
Path parameters
-
template_id
string Required The identifier for the deployment template.
Query parameters
-
region
string Required Region of the deployment template
Responses
-
200 application/json
The deployment template was successfully deleted.
-
400 application/json
The requested region is not supported. (code:
templates.region_not_found
) -
401 application/json
The user is not authorized to access requested region. (code:
templates.region_not_allowed
) -
404 application/json
The deployment template specified by {template_id} cannot be found. (code:
templates.template_not_found
)
DELETE
/deployments/templates/{template_id}
curl \
--request DELETE 'https://{{hostname}}/api/v1/deployments/templates/{template_id}?region=string' \
--user "username:password"
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"
]
}
]
}