The Remove a Server from an Environment call disassociates an Endpoint from an Environment. Thus, any subsequent deployments to that Environment will not result in any files or operations being directed at the Endpoint.

NOTE: This call does not delete the server – it simply disassociates it from the Environment. To delete a server, use the API/del/server call.

API Call


http://host/dmadminweb/API/unassign/server/server_id/env_id


Where:

Host

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

server_id

Is the identifier of the server 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 server 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

}