Listing the Compute Instances for a Target
View the Compute instances (hosts) associated with an existing target.
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.