Get logs for a container scan job
Required permission
Project > Projects > Security > View Container Scan Reports
Path parameters
projectId
string requiredID of the projectcontainerScanId
string requiredID of the container scan
Query parameters
queryType
string`range` selects a log range and returns immediately.one ofrangestartTime
stringFetch logs generated after this timestamp.endTime
stringFetch logs generated before this timestamp.duration
integerRange duration in seconds. If set, only one of `startTime` or `endTime` can be set.lineLimit
integerNumber of log lines to fetch.min0max1000direction
stringOrdering of log linesone ofbackward, forwardtextIncludes
stringFilter log lines to match this search stringmin length1max length100textNotIncludes
stringFilter log lines to not match this search stringmin length1max length100regexIncludes
stringFilter log lines to match this regular expressionmin length1max length100regexNotIncludes
stringFilter log lines to not match this regular expressionmin length1max length100
Response body
- {object}Response object.
data
[array] requiredResult data.- {object}
containerId
string requiredlog
requiredts
string required
GET /v1/projects/{projectId}/container-scans/{containerScanId}/logs
GET /v1/teams/{teamId}/projects/{projectId}/container-scans/{containerScanId}/logs
Example response
200 OK
List of logs values
JSON
{
"data": [
{
"log": "stdout F This is a log line",
"ts": "2023-03-21T15:01:17.310Z"
}
]
}