Add a container image
Resolve the reference to a digest, track the image, and start the first scan unless scan is false. An image whose compressed size is above the scan limit (8 GiB; self-hosted installs can change it with STRIX_CONTAINER_MAX_IMAGE_BYTES) fails with status 400 before Strix tracks it. When the image is already tracked, Strix returns it with created false and a 200 status. Session callers must hold the admin or analyst role without asset scopes. Container scanning requires the Enterprise plan.
Authorizations
API token obtained from the Tokens endpoint or CLI device login. Include as Authorization: Bearer <token>. Requests made with a managed CLI session also include X-Strix-Workspace: <organization_id> to pin a process to the workspace it started in; recovery endpoints report the current workspace after a concurrent switch.
Body
Connected registry that hosts the image. Connect a registry first, with or without credentials.
Image reference in the form name:tag or name@sha256:<digest>, without the registry host.
OCI platform to add, for example linux/amd64. Null selects linux/amd64 when the image has it, else the first platform in the index. A platform that you set explicitly must exist in the image index: if it does not, the request fails with status 400 and the response lists the platforms the image has. An image with one manifest and no index is checked against the platform that its image config declares. A later scan of the image uses the stored platform if the scan request does not specify a platform.
Repository that builds this image. Strix shows the link on the image and uses it for remediation context.
Tag pattern to watch, for example 1.* or release-*. When set, Strix rescans the image when a matching tag moves to a new digest.
Start the first scan when the image is added. Default false.
Response
The image was already tracked.
A tracked container image with counts from its latest completed scan.
False when the image was already tracked.
Reason the first scan did not start. Null when scan is set or the caller disabled the scan.