Container Scanning

List Scanned Containers

Changed on

Returns one entry per tracked container (registry repository / image) across AWS ECR, Azure ACR, and GCP GAR, each with its latest scan's status, severity rollup, and scan_id. Use the returned cloud and scan_id with the results endpoint to fetch the full vulnerability list.

post/api/cloud/container-scanning/containers

Request

  • Base URL
    https://api.codeant.ai
  • URL
    https://api.codeant.ai/api/cloud/container-scanning/containers
  • Auth
    HTTP bearer

Request body

platform'github' | 'gitlab' | 'bitbucket' | 'azure_devops' required

Git platform of the organization

orgstring required

Organization / workspace slug

github_base_urlstring

Self-hosted instance URL (also gitlab_base_url / bitbucket_base_url / azure_devops_base_url). Defaults to the cloud host.

Example request

{
  "github_base_url": "https://github.com"
}

Response

Containers retrieved successfully

totalinteger

Example response

{
  "containers": [
    {
      "name": "backend/api",
      "image": "123456789.dkr.ecr.us-east-1.amazonaws.com/backend/api:latest",
      "tag": "latest",
      "region": "us-east-1",
      "scan_id": "aB3xK9mP2q",
      "status": "completed",
      "severity_rollup": {
        "critical": 2,
        "high": 11,
        "medium": 30,
        "low": 7,
        "unknown": 0
      },
      "findings_total": 50
    }
  ]
}

Changes