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

# Get container

`GET /containers/{container_repo_id}`

## Request

- Base URL: `https://app.aikido.dev/api/public/v1`
- URL: `https://app.aikido.dev/api/public/v1/containers/{container_repo_id}`
- Auth: OAuth 2
  - Client credentials
  - Token URL: `https://app.aikido.io/api/oauth/token` scopes: `containers:read`

Returns the requested container repository

## Path parameters

- `container_repo_id` integer, required

## Query parameters

- `include_teams` boolean

## 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.
  - `last_scanned_digest` string, nullable: The sha256 digest of the container image that was used in the latest scan. Value is 'null' when no scan happened yet.
  - `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.
  - `linked_teams` object[]: List of teams linked to this container repository.
    - `id` integer: The team's id.
    - `name` string: The name of the team.

---

[API](https://skmtc.dev/aikido/apis/aikido-security-api-documentation.md) - [All operations](https://skmtc.dev/aikido/apis/aikido-security-api-documentation/llms.txt) - [OpenAPI document](https://skmtc.dev/aikido/apis/aikido-security-api-documentation/revisions/da8691338133?raw)
