Listing the Compute Instances for a Target

List Compute instances (hosts) associated with an existing target.

    1. Open the navigation menu and select Identity & Security. Under Scanning, select Targets.
      The Targets list page opens. Select the Hosts 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 find a target by name, enter the name in the search box above the table.
    4. To filter the list by tag, select add next to Tag filters.
  • Use the oci vulnerability-scanning host scan target list command and required parameters to retrieve a list of HostScanTargetSummary objects in a compartment:

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

    For example:

    oci vulnerability-scanning host 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 ListHostScanTargets operation to retrieve a list of HostScanTargetSummary objects in a compartment.