The Assign an Application to an Environment call assigns an existing Application to an Environment. This association allows the Application (or any of its Versions) to be deployed to that Environment. An Application needs to be assigned to an Environment before it can be deployed to that Environment.

API Call

http://host/dmadminweb/API/assign/Application/app_id/env_id


Where:

Host

Is the hostname and port of the DeployHub Server (e.g.: hostname:8080 or for SaaS console.deployhub.com).

app_id

Is the identifier of the Application to be assigned. Either its name, its qualified name (i.e.: with its parent Domain(s) included in dot notation) or its internal ID.

env_id

Is the identifier of the Environment to which the Application should be assigned. Either its name, its qualified name (i.e.: with its parent Domain(s) included in dot notation) or its internal ID.


Example Result:


{

       "success": true

}