The Get Component Attributes call retrieves those specific attributes. If the name parameter is used then only that named attribute is returned, otherwise all the attributes for the specified Component are returned.


API Call


http://host/dmadminweb/API/getvar/server/comp_id

[?name=attname]


Where:

Host

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

comp_id

The identifier of the Component whose attributes are to be retrieved. 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 retrieved. If the name parameter is omitted, all attributes are returned.



Example Result:


               {

                       "success": true,

                       "attributes": [

                       {

                               "DATABASE": "postgres"

                       },

                       {

                               "DB_PASSWORD": "postgres"

                       },

                       {

                               "DB_USERNAME": "postgres"

                       },

                       {

                               "POSTGRES_HOME": "C:\Program Files\PostgreSQL\9.3"

                       }

                       ]

}