Moving a Container Image Target Between Compartments
Move a scan target from one compartment to another.
Moving a target doesn’t also move the cloud resources (Compute instances, for example) in the target.
- Open the navigation menu and click Identity & Security. Under Scanning, click Targets.
- Select the Compartment that contains your target.
- Click the Container image tab for the type of target that you want to move.
- Click the name of the target.
- Click Move resource.
- Choose the destination compartment.
- Click Move resource.
After you move the target to the new compartment, inherent policies apply immediately and affect access to the target through the Console. For more information, see Managing Compartments.
Use the oci vulnerability-scanning container scan target change-compartment command and required parameters to move a container scan target into a different compartment:
oci vulnerability-scanning container scan target change-compartment [OPTIONS]
For a complete list of flags and variable options for CLI commands, see the Command Line Reference.
Run the ChangeContainerScanTargetCompartment operation to move a container scan target into a different compartment.