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


API Call


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

[?name=attname]


Where:


Host

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

env_id

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

                       }

                       ]

}