The Get Deployment Log call returns a representative JSON object.


Query:


http://host/dmadminweb/API/log/log_number


Where:

Host

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

Log_number

Is the deployment ID being retrieved. Note if the deployment log relates to an Application outside of your Domain hierarchy or to an Application to which you do not have read access then you will receive an error.


Example Result:


{

       "success": true,

                       "Application": "ITGuys;2",

                       "complete": true,

                       "environment": "TestEnv1",

                       "exitcode": 0,

                       "exitstatus": "Finished",

                       "started": 1455826432,

                       "finished": 1455826436,

                       "id": 1709,

                       "loglinecount": 30,

                       "logoutput": [

                               "INFO: Starting deployment #1709",

                               Each Line of Output is another string in the array

                               "INFO: Time taken 3.744000 seconds"

                       ],

}



Success


Is true or false depending on the success or failure of the query. If success is false, then a text field named “error” is returned.

application


The name of the Application that was deployed.

complete


A Boolean indicating if the deployment is complete (true) or still in progress (false).

environment


The Environment to which the Application was deployed.

Exitcode


The exit code of the deployment.

Exitstatus


The error text if the deployment failed.

Started


The start date/time of the deployment (in Epoch time).

Finished:


The end date/time of the deployment (in Epoch time).

Id:


The deployment ID.

Loglinecoun


The number of lines in the “logoutput” array.

Logoutput


An array of strings, each representing a line of the deployment log.