v1

latestOpenAPI 3.1.02026-07-261690320.7 KB

Get container

Returns the requested container repository

get/containers/{container_repo_id}

Path parameters

container_repo_idinteger required

Container repo ID

Response

The container repository details

idinteger required

The repository's id in Aikido.

namestring required

The name of the code repository.

provider'aws' | 'gcp-artifact-registry' | 'gcp-container-registry' | 'aws' | 'docker-hub' | 'github' | 'quay' | 'acr' | 'gitlab' | 'gitlab-self' | 'digitalocean' | 'scaleway' | 'cloudsmith' | 'harbor' | 'artifactory' | 'custom_upload' | 'oci' | 'kubernetes' required

The provider place where the code repository is hosted

cloud_idinteger nullable required

The ID of the cloud that acts as the registry where this container is located in.

registry_idinteger nullable required

The ID of the registry where this container is located in.

registry_namestring nullable required

The name of the container registry.

tagstring required

The tag filter used when selecting an image. If empty the latest image will be scanned.

distrostring

The distribution of the image's OS.

distro_versionstring

The distribution version of the image's OS.

last_scanned_atinteger

Timestamp representing the last time a scan for this container ended. Value is -1 when no scan happened yet.

last_scanned_tagstring

The container image tag that was used in the latest scan.

linked_code_repo_idstring

The id of the code repo to which this container is linked. Value is 'null' when no code repo is linked.

is_activeboolean

Whether the container is active.

Example response

{
  "id": 1,
  "name": "pied-piper/compression",
  "provider": "aws_ecr",
  "cloud_id": null,
  "registry_id": 3,
  "registry_name": "Pied Piper Global Cloud Infrastructure",
  "tag": "prod-*",
  "distro": "debian",
  "distro_version": "12",
  "last_scanned_at": 1720083163,
  "last_scanned_tag": "prod-20250623",
  "linked_code_repo_id": 67,
  "is_active": true,
  "labels": [
    {
      "id": 1,
      "name": "production",
      "is_imported": false
    },
    {
      "id": 2,
      "name": "core",
      "is_imported": true
    }
  ]
}