v1

latestOpenAPI 3.1.02026-07-261690320.7 KB

Add GitLab Self-Managed container registry

Add a GitLab Self-Managed (self-hosted) container registry to Aikido to scan

post/containers/registries/gitlab-self

Request body

usernamestring required

The GitLab username (use the @ handle, without spaces)

accesstokenstring required

A GitLab personal or group access token with registry read permissions

registry_namestring required

The numeric GitLab group ID whose container registry should be scanned

api_urlstring uri required

The base URL of the GitLab self-managed instance (e.g. https://gitlab.example.com)

Example request

{
  "username": "richard_hendriks",
  "accesstoken": "***************",
  "registry_name": "12345678",
  "api_url": "https://gitlab.example.com"
}

Response

The GitLab self-managed container registry has been added to aikido.

registry_idinteger

The id of the newly added container registry in aikido

Example response

{
  "registry_id": 1
}