Moving a Bastion to a Different Compartment
Move a bastion to a different compartment.
- Open the navigation menu and click Identity & Security. Click Bastion.
- Under List scope, select the compartment where the bastion was created.
- Click the name of the bastion.
- Click Move resource.
- Choose a different compartment.
- Click Move resource.
Use the oci bastion bastion change-compartment command and required parameters move a bastion to a different compartment:
oci bastion bastion change-compartment --bastion-id <bastion_ocid> --compartment-id <compartment_ocid> [OPTIONS]
For a complete list of flags and variable options for CLI commands, see the Command Line Reference.
Run the ChangeBastionCompartment operation to move the bastion to a different compartment.