Build request to migrate deployment to a different template

edit

Build request to migrate deployment to a different template

edit

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

Request

edit

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

Path parameters

edit
Name Type Required Description

deployment_id

string

Y

Identifier for the Deployment

Query parameters

edit
Name Type Required Description

template_id

string

Y

The ID of the deployment template to migrate to

Responses

edit
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 example

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