The Get Application Attributes call retrieves the attributes for the specified Application. If the name parameter is specified then only the named attribute is returned, otherwise all the attributes for the specified Application are returned.


API Call


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

[?name=attname]


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 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

Is 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"

                       }

                       ]

}