Build request to migrate deployment to a different templateedit

Returns a deployment update request that would migrate this deployment to a different template.

Requestedit

GET /api/v1/deployments/{deployment_id}/migrate_template

Path parametersedit

Name Type Required Description

deployment_id

string

Y

Identifier for the Deployment

Query parametersedit

Name Type Required Description

template_id

string

Y

The ID of the deployment template to migrate to

Responsesedit

200

(DeploymentUpdateRequest)

The request was valid and the deployment can be migrated to the template with the provided ID.

400

(BasicFailedReply)

The deployment cannot be successfully migrated to the template with the provided ID.

401

(BasicFailedReply)

You are not authorized to perform this action.

404

(BasicFailedReply)

The Deployment specified by {deployment_id} cannot be found. (code: deployments.deployment_not_found)

Headers

x-cloud-error-codes (string; allowed values: [deployments.deployment_not_found])
The error codes associated with the response

Request exampleedit

curl -XGET https://{{hostname}}/api/v1/deployments/{deployment_id}/migrate_template \
-H "Authorization: ApiKey $ECE_API_KEY"