Container Scanning

Link a container image to a repository

(Re)link a tracked container image to a different repository so it is tracked under a real repository instead of the ephemeral standalone one. The caller must have scan-start access to both the image's current repository and the target repository, and both must be in the same organization. The image and its scan history are moved together so issue/repository resolution stays consistent. Fails with a conflict if the target repository already tracks an image with the same reference.

post/api/v2/containerImages/linkRepository

Request

  • Base URL
    https://zeropath.com
  • Auth
    API key in header X-ZeroPath-API-Token-Id and API key in header X-ZeroPath-API-Token-Secret

Request body

organizationIdstring

Organization ID (optional).

containerImageIdstring required

ID of the container image to relink.

repositoryIdstring required

ID of the repository to link the image to.

Response

Image relinked

containerImageIdstring required
repositoryIdstring required

The repository the image is now linked to.

Changes

No recorded changes to this operation across all 1 revision of this API.