Moving a Bastion to a Different Compartment

Move a bastion to a different compartment.

    1. 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.
    2. From the Actions menu (Actions Menu) for the bastion, select Move resource.
    3. Select a different compartment.
    4. 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.