Moving a Compute Target Between Compartments
Move a compute (host) target into a different compartment.
- Open the navigation menu and click Identity & Security. Under Scanning, click Targets.
- Select the Compartment that contains your target.
- Click the Hosts tab.
- Click the name of the target.
- Click Move resource.
- Choose the destination compartment.
- Click 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.