The Set Environment Attribute call sets or creates an attribute for the specified Environment. If the attribute does not exist, it is created. If the attribute already exists, its value is changed to the specified value.

API Call


http://host/dmadminweb/API/setvar/Environment/env_id

?name=attname&value=attval


Where:


Host

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

env_id

The identifier of the Environment whose attributes are to be changed. Either its name, its qualified name (i.e.: with its parent Domain(s) included in dot notation) or its internal ID.

attname

The name of the attribute to be created or modified.

attval

The value to be set for the specified attribute.



Example Result:


{

       "success": true

}