Custom Base Images
Last updated
Was this helpful?
Last updated
Was this helpful?
In order to create a custom base image, you first need to import your base images into Snyk. You can do this through the CLI, UI, or API.
This endpoint marks an image as a custom base image. This means that the image will get added to the pool of images from which Snyk can recommend base image upgrades.
Note, after the first image in a repository gets added, a versioning schema cannot be passed in this endpoint. To update the versioning schema, the PATCH endpoint must be used.
/custom_base_images
Requested API version
2021-06-04
^(wip|work-in-progress|experimental|beta|((([0-9]{4})-([0-1][0-9]))-((3[01])|(0[1-9])|([12][0-9]))(~(wip|work-in-progress|experimental|beta))?))$
Get a list of custom base images with support for ordering and filtering. Either the org_id or group_id parameters must be set to authorize successfully. If sorting by version, the repository filter is required.
/custom_base_images
Requested API version
2021-06-04
^(wip|work-in-progress|experimental|beta|((([0-9]{4})-([0-1][0-9]))-((3[01])|(0[1-9])|([12][0-9]))(~(wip|work-in-progress|experimental|beta))?))$
Return the page of results immediately after this cursor
v1.eyJpZCI6IjEwMDAifQo=
Return the page of results immediately before this cursor
v1.eyJpZCI6IjExMDAifQo=
Number of results to return per page
10
The ID of the container project that the custom base image is based off of.
The organization ID of the custom base image
The group ID of the custom base image
The image repository
The image tag
Whether this image should be recommended as a base image upgrade
Which column to sort by. If sorting by version, the versioning schema is used.
repository
, tag
, version
Which direction to sort
ASC
, DESC
Updates a custom base image's attributes
/custom_base_images/{custombaseimage_id}
Unique identifier for custom base image
Requested API version
2021-06-04
^(wip|work-in-progress|experimental|beta|((([0-9]{4})-([0-1][0-9]))-((3[01])|(0[1-9])|([12][0-9]))(~(wip|work-in-progress|experimental|beta))?))$
Get a custom base image
/custom_base_images/{custombaseimage_id}
Unique identifier for custom base image
Requested API version
2021-06-04
^(wip|work-in-progress|experimental|beta|((([0-9]{4})-([0-1][0-9]))-((3[01])|(0[1-9])|([12][0-9]))(~(wip|work-in-progress|experimental|beta))?))$
Delete a custom base image resource. (the related container project is unaffected)
/custom_base_images/{custombaseimage_id}
Unique identifier for custom base image
Requested API version
2021-06-04
^(wip|work-in-progress|experimental|beta|((([0-9]{4})-([0-1][0-9]))-((3[01])|(0[1-9])|([12][0-9]))(~(wip|work-in-progress|experimental|beta))?))$
No body