View individual deployment logs via API
Each deployment has a number of "steps", which contain a subset of logs, such as the transferring_files
step, which will contain a list of all file operations in the deployment.
URL
/projects/<project>/deployments/<deployment-identifier>/steps/<step-identifier>/logs
Replace <project>
with the permalink of the project, <deployment-identifier>
with the identifier of the deployment, and <step-identifier>
with the identifier of the step.
The step identifier can be located within the deployment_steps hash when looking at a deployment through the /projects/<project>/deployments/<deployment-identifier>
endpoint.
HTTP Method
GET
Supported Parameters
None
Example cURL Request
curl -H "Content-type: application/json" \
-H "Accept: application/json" \
--user adam@atechmedia.com:my-api-key \
https://atech.deployhq.com/projects/react-project/deployments/b5d0d157-674c-4bdd-ac7b-89ae83a9c275/steps/53b01afd-3c36-4acc-96b9-7fa968aa1f98/logs
Example Response
[
{
"id": 260520775,
"step": "53b01afd-3c36-4acc-96b9-7fa968aa1f98",
"message": "Uploading build/service-worker.js",
"detail": "htdocs/service-worker.js"
},
{
"id": 260519065,
"step": "53b01afd-3c36-4acc-96b9-7fa968aa1f98",
"message": "Uploading build/static/media/logo.5d5d9eef.svg",
"detail": "htdocs/static/media/logo.5d5d9eef.svg"
},
{
"id": 260518921,
"step": "53b01afd-3c36-4acc-96b9-7fa968aa1f98",
"message": "Uploading build/static/css/main.cacbacc7.css",
"detail": "htdocs/static/css/main.cacbacc7.css"
},
{
"id": 260517919,
"step": "53b01afd-3c36-4acc-96b9-7fa968aa1f98",
"message": "Uploading build/static/css/main.cacbacc7.css.map",
"detail": "htdocs/static/css/main.cacbacc7.css.map"
},
{
"id": 260517367,
"step": "53b01afd-3c36-4acc-96b9-7fa968aa1f98",
"message": "Uploading build/static/js/main.19f2cfb8.js",
"detail": "htdocs/static/js/main.19f2cfb8.js"
},
{
"id": 260516890,
"step": "53b01afd-3c36-4acc-96b9-7fa968aa1f98",
"message": "Uploading build/static/js/main.19f2cfb8.js.map",
"detail": "htdocs/static/js/main.19f2cfb8.js.map"
},
{
"id": 260515477,
"step": "53b01afd-3c36-4acc-96b9-7fa968aa1f98",
"message": "Uploading build/favicon.ico",
"detail": "htdocs/favicon.ico"
},
{
"id": 260515411,
"step": "53b01afd-3c36-4acc-96b9-7fa968aa1f98",
"message": "Uploading build/asset-manifest.json",
"detail": "htdocs/asset-manifest.json"
},
{
"id": 260514952,
"step": "53b01afd-3c36-4acc-96b9-7fa968aa1f98",
"message": "Uploading build/index.html",
"detail": "htdocs/index.html"
},
{
"id": 260513107,
"step": "53b01afd-3c36-4acc-96b9-7fa968aa1f98",
"message": "Uploading build/manifest.json",
"detail": "htdocs/manifest.json"
}
]