Moving a Compute Target Between Compartments
Move a compute (host) target into a different compartment.
- On the Targets list page, select the recipe that you want to work with. If you need help finding the list page or the target, see Listing the Compute Instances for a Target.
- On the details page, select Move resource.
- Choose the destination compartment.
- Select Move resource.
Use the oci vulnerability-scanning host scan target change-compartment command and required parameters to move a compute (host) target into a different compartment:
oci vulnerability-scanning host scan target change-compartment [OPTIONS]
For a complete list of flags and variable options for CLI commands, see the Command Line Reference.
Run the ChangeHostScanTargetCompartment operation to delete the compute (host) target identified by the target ID.