Moving a Compute Target Between Compartments

Move a compute (host) target into a different compartment.

    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.
    4. Click the name of the target.
    5. Click Move resource.
    6. Choose the destination compartment.
    7. 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.