Rescan And Cleanup
A 4-step recipe with Aqua Security. We can help you get access.
Recipe · 4 steps
Rescan And Cleanup
with Aqua Security
Re-register an image, poll its scan, and delete it if the scan failed.
- Authenticate the user and obtain a JWT bearer token for the scan and cleanup calls.
- Re-register the image to trigger a fresh vulnerability scan on the platform.
- Read the image detail and loop until the scan reaches a terminal completed or failed state.
- The scan failed; remove the image from the Aqua platform to clean up the inventory.
What you'll need to have ready
- id: Aqua username or user ID used to authenticate.
- password: Aqua user password used to authenticate.
- registry: Registry name holding the image (e.g. docker-hub).
- image: Full image name including tag to re-register (e.g. nginx:latest).
- image_name: Image repository name used to read and delete the image (e.g. nginx).
- image_tag: Image tag used to read and delete the image (e.g. latest).
For your developer
Arazzo workflow aqua-security:rescan-and-cleanup, 4 operations: login → registerImage → getImage → deleteImage. Specs on APIs.io.