Listing Container Image Targets

List container image targets in a compartment.

    1. Open the navigation menu and select Identity & Security. Under Scanning, select Targets.
      The Targets list page opens. Select the Container image tab. All targets in the selected compartment and region are displayed in a table.
    2. To view the resources in a different compartment, use the Compartment filter to switch compartments.

      You must have permission to work in a compartment to see the resources in it. If you're not sure which compartment to use, contact an administrator. For more information, see Understanding Compartments.

    3. To filter the list by tag, select add next to Tag filters.
  • Use the oci vulnerability-scanning container scan target list command and required parameters to retrieve a list of container scan target in a compartment:

    oci vulnerability-scanning container scan target list --compartment-id <compartment_ocid>

    For example:

    oci vulnerability-scanning container scan target list --compartment-id ocid1.compartment.oc1..exampleuniqueID

    For a complete list of flags and variable options for CLI commands, see the Command Line Reference.

  • Run the ListContainerScanTargets operation to retrieve a list of container scan target in a compartment.