The Get Server Attributes call retrieves the attributes of a specific Endpoint. If the name parameter is used, then only the named attribute is returned, otherwise all the attributes for that Endpoint are returned.

API Call


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

[?name=attname]


Where:


Host

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

server_id

The identifier of the Endpoint 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"

                       }

                       ]

}