Get block logs
Log in to add to favouritesGET/api/management/projects/{projectId}/blocks/{blockId}/{branchId}/versions/{version}/logs?dataCenter=hq
Parameters
Name | Parameter type | Type | Format | Description |
---|---|---|---|---|
projectId(required) | path | string | - | The project identifier found in the project overview screen of the management console. |
blockId(required) | path | string | - | The block identifier |
branchId(required) | path | string | - | The branch identifier |
version(required) | path | string | - | A label of either live or latest, or a valid version number. |
dataCenter(required) | query | string | - | The name of the data center to view block logs in |
includeTimestamps | query | boolean | - | Whether or not to include system timestamps in block logs |
previous | query | boolean | - | Whether or not to show the last terminated container's logs |
lines | query | number | integer | The number of log lines to return |
sinceSeconds | query | number | integer | Return logs since the specified number of seconds |
Responses
Examples
Get the container logs of a block
GET: /api/management/projects/movieDb/blocks/movielisting/main/versions/5/logs?dataCenter=manchester
Get logs occurred since the last 10 seconds
GET: /api/management/projects/movieDb/blocks/movielisting/main/versions/5/logs?dataCenter=manchester&since=10
Include timestamps in the logs
GET: /api/management/projects/movieDb/blocks/movielisting/main/versions/5/logs?dataCenter=manchester&includeTimestamps=true
Return the last 500 log lines
GET: /api/management/projects/movieDb/blocks/movielisting/main/versions/5/logs?dataCenter=london&lines=500