Set deployment template

Creates or updates a deployment template.

Request

PUT /api/v1/platform/configuration/templates/deployments/{template_id}

Path parameters

template_id (required)
(string) The identifier for the deployment template.

Query parameters

create_only
(boolean) If true, will fail if the deployment template already exists at the given id
version
(integer) If specified, checks for conflicts against the version of the template (returned in 'x-cloud-resource-version' of the GET request)

Request body

(DeploymentTemplateInfo) (required) The deployment template definition.

Responses

200
(IdResponse) The deployment definition was valid and the template has been updated.
201
(IdResponse) The deployment definition was valid and the template was created.
400
(BasicFailedReply) The deployment definition contained errors.
404
(BasicFailedReply) The deployment template specified by {template_id} cannot be found.
409
(BasicFailedReply) The version supplied in the request conflicted with the version found on the server.
449
(BasicFailedReply) elevated permissions are required. (code: '"root.needs_elevated_permissions"')