Creating a Container Image Scan Recipe
Create a container image scan recipe.
Important
- Before you begin, review the policies documentation for Vulnerability Scanning. See Required IAM Policies for Scanning.
- After you create an OCI agent or Qualys agent Compute scan recipe, don't change that recipe to change agents. Create another recipe.
To create a container image scan recipe, complete the following steps:
After creating a recipe, you can create scan targets and associate them with the recipe. See Creating a Container Image Target.
Use the oci vulnerability-scanning container scan recipe create command and required parameters to create a new container scan recipe:
oci vulnerability-scanning container scan recipe create --display-name <name> --compartment-id <compartment_ocid> --scan-settings '{"scanLevel": "STANDARD"}'
For example:
oci vulnerability-scanning container scan recipe create --display-name MyRecipe --compartment-id ocid1.compartment.oc1..exampleuniqueID --scan-settings '{"scanLevel": "STANDARD"}'
For a complete list of flags and variable options for CLI commands, see the Command Line Reference.
Run the CreateContainerScanRecipe operation to create a new container scan recipe.