Moving a Bastion to a Different Compartment
Move a bastion to a different compartment.
- On the Bastions list page, find the bastion that you want to work with. If you need help finding the list page or the bastion, see Listing Bastions.
- From the for the bastion, select Move resource.
- Select a different compartment.
- Select 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.