Moving a Bastion to a Different Compartment

Move a bastion to a different compartment.

    1. Open the navigation menu and click Identity & Security. Click Bastion.
    2. Under List scope, select the compartment where the bastion was created.
    3. Click the name of the bastion.
    4. Click Move resource.
    5. Choose a different compartment.
    6. 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.