Deployments

Get Deployment Container Logs

Retrieve the logs of your container. Logs are not available when your deployment is terminated. You can set up an endpoint storage to save your logs. <a target='_blank' href='https://docs.edgegap.com/docs/deployment/endpoint-storage'>Endpoint Storage Documentation</a>

get/v1/deployment/{request_id}/container-logs

Request

  • Base URL: https://api.edgegap.com
  • URL: https://api.edgegap.com/v1/deployment/{request_id}/container-logs
  • Auth: API key in header authorization

Query parameters

formatstring

Log output format. text (default) returns plain-text lines; ndjson returns NDJSON records carrying the stream and timestamp of each line.

Response

Success

logsstring

Auto Generated Field for logs

encodingstring

Auto Generated Field for encoding

crash_logsstring

Auto Generated Field for crash_logs

logs_linkstring

Auto Generated Field for logs_link

Example response

{
  "logs": "Logs of the container",
  "encoding": "utf-8",
  "crash_logs": "Logs of the container when it crashed",
  "crash_data": {
    "exit_code": 1,
    "message": "Container crashed",
    "restart_count": 1
  },
  "logs_link": "Link to the logs"
}

Changes

No recorded changes to this operation across all 1 revision of this API.