---
title: "Get container"
method: GET
path: "/containers/{container_repo_id}"
---

# Get container

`GET /containers/{container_repo_id}`

Returns the requested container repository

## Path parameters

- `container_repo_id` integer, required

## Response `200`

The container repository details

- object
  - `id` integer, required — The repository's id in Aikido.
  - `name` string, 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_id` integer, nullable, required — The ID of the cloud that acts as the registry where this container is located in.
  - `registry_id` integer, nullable, required — The ID of the registry where this container is located in.
  - `registry_name` string, nullable, required — The name of the container registry.
  - `tag` string, required — The tag filter used when selecting an image. If empty the latest image will be scanned.
  - `distro` string — The distribution of the image's OS.
  - `distro_version` string — The distribution version of the image's OS.
  - `last_scanned_at` integer — Timestamp representing the last time a scan for this container ended. Value is -1 when no scan happened yet.
  - `last_scanned_tag` string — The container image tag that was used in the latest scan.
  - `linked_code_repo_id` string — The id of the code repo to which this container is linked. Value is 'null' when no code repo is linked.
  - `is_active` boolean — Whether the container is active.
  - `labels` object[] — List of labels for this code repository.
    - `id` integer — The label's id.
    - `name` string — The name of the label.
    - `is_imported` boolean — Indicates if this label was imported from the provider.

---

[API](https://skmtc.net/aikido/apis/authorization.md) · [All operations](https://skmtc.net/aikido/apis/authorization/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aikido/authorization/versions/5445e7c21137/schema)
