HTTP - Management
Removed from your favourites
Get block logsBeta
Created by zengenti, last updated 30 Sep 2021
Gets the container logs for a running block.
GET/api/management/projects/{projectId}/blocks/{blockId}/{branchId}/versions/{version}/logs?dataCenter=hq
Parameters
Name | Parameter type | Type | Format | Description | Example | Required |
---|---|---|---|---|---|---|
projectId | path | string | The project identifier found in the project overview screen of the management console | movieDb | true | |
blockId | path | string | The block identifier | movie-listing | true | |
branchId | path | string | The branch identifier | main | true | |
version | path | string | A label of either live or latest, or a valid version number. | 4 | true | |
dataCenter | query | string | The name of the data center to view block logs in | hq, manchester, london | true | |
includeTimestamps | query | boolean | Whether or not to include system timestamps in block logs | false | ||
previous | query | boolean | Whether or not to show the last terminated container's logs | false | ||
lines | query | number | integer | The number of log lines to return | false | |
sinceSeconds | query | number | integer | Return logs since the specified number of seconds | false |
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