Listing the Compute Instances for a Target

View the Compute instances (hosts) associated with an existing target.

    1. Open the navigation menu and click Identity & Security. Under Scanning, click Targets.
    2. Select the Compartment that contains your target.
    3. Click the Hosts tab if not already selected.
    4. Click the name of the target.

      The Compute instances table displays.

  • 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.