A newer version is available. For the latest information, see the
current release documentation.
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 |
---|---|---|---|
|
|
Y |
Identifier for the Deployment |
Query parametersedit
Name | Type | Required | Description |
---|---|---|---|
|
|
Y |
The ID of the deployment template to migrate to |
Responsesedit
-
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 exampleedit
curl -XGET https://{{hostname}}/api/v1/deployments/{deployment_id}/migrate_template \ -H "Authorization: ApiKey $ECE_API_KEY"