Build request to migrate deployment to a different template
editBuild request to migrate deployment to a different template
editReturns a deployment update request that would migrate this deployment to a different template.
Request
editGET /api/v1/deployments/{deployment_id}/migrate_template
Path parameters
editName | Type | Required | Description |
---|---|---|---|
|
|
Y |
Identifier for the Deployment |
Query parameters
editName | Type | Required | Description |
---|---|---|---|
|
|
Y |
The ID of the deployment template to migrate to |
Responses
edit-
200
-
The request was valid and the deployment can be migrated to the template with the provided ID.
-
400
-
The deployment cannot be successfully migrated to the template with the provided ID.
-
401
-
You are not authorized to perform this action.
-
404
-
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
editcurl -XGET https://{{hostname}}/api/v1/deployments/{deployment_id}/migrate_template \ -H "Authorization: ApiKey $ECE_API_KEY"