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

API Call


http://host/dmadminweb/API/setvar/Component/comp_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).

comp_id

The identifier of the Component 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 name of the attribute to be created or modified. Is the value to be set for the specified attribute.


Example Result:


{

       "success": true

}