Shows a list of containers in your account.
Parameter |
Mandatory/Optional |
Data Type |
Description |
---|---|---|---|
filter |
Optional |
string |
Filter the containers list by providing a query using Qualys syntax. Refer to the “How to Search” topic in the online help for assistance with creating your query. |
pageNumber |
Optional |
integer |
The page to be returned. Page numbers start with 1. |
pageSize |
Optional |
integer |
The number of records per page to be included in the response. |
sort |
Optional |
string |
Sort the results using a Qualys token. For example, created:desc. Refer to the “Sortable tokens” topic in the online help for more information. |
API request
curl -X GET
"<qualys_base_url>/csapi/v1.3/containers?pageNumber=1&pageSize=50&sort=created%3Adesc" --header "Authorization: Bearer <token>"
Response
{
"data": [
{
"uuid": "2c8d6485-0c6d-3d7b-a2bd-86616ff78205",
"sha": "27723ada671ea9f25624a9ffdadde273038e4a48373bada6133371cb3bd7a9d3",
"imageId": "27723ada671e",
"repo": [
{
"registry": "docker.io",
"repository": "qualysdemo/checkoutapp",
"tag": "demo"
}
],
"repoDigests": [
{
"registry": "docker.io",
"repository": "qualysdemo/checkoutapp",
"digest": "6d0f0a22ba1768ebed30dabba5d856fc5536609ec12fc2b23e7bec7aa79ccd9b"
}
],
"created": 1507592726000,
"updated": 1603767703217,
"associatedContainersCount": 0,
"associatedHostsCount": 1,
"lastVmScanDate": "1603767703217",
"size": 718071042,
"vulnerabilities": {
"severity5Count": 0,
"severity4Count": 0,
"severity3Count": 0,
"severity2Count": 0,
"severity1Count": 0
},
"registryUuid": null,
"source": [
"GENERAL"
],
"isDockerHubOfficial": false,
"isInstrumented": false,
"instrumentedFrom": null,
"instrumentationState": null,
"instrumentationErrors": null,
"scanType": null,
"scanErrorCode": null,
"scanStatus": null,
"lastFoundOnHost": {
"sensorUuid": "cb9fa762-b161-43bb-9268-ebae5fc606af",
"uuid": null,
"hostname": "Test HostName",
"ipAddress": "254.254.254.254",
"lastUpdated": "2020-03-19T11:01:08.907Z"
},
"exceptions": [
{
"uuid": "624efd86-6172-4851-beb1-75cb9b1634fb",
"assignmentType": "CASCADE"
},
{
"uuid": "c0b4ec8d-a186-4f2c-9a6d-3adc3dfb3cff",
"assignmentType": "CASCADE"
},
{
"uuid": "d7b11c61-dcf2-4cf5-b369-8877f1b619c6",
"assignmentType": "MANUAL"
}
],
"compliance": {
"passCount": 3,
"failCount": 1,
"errorCount": 1
},
"lastComplianceScanned": 1507592707000
}
],
"groups": {}
}
Was this topic helpful?