Editing a Bastion

Edit the details of a bastion.

Changes to a bastion's settings don't affect existing sessions on the bastion. Changes apply only to new sessions.

You can't move a bastion to a different VCN (virtual cloud network)  or subnet .

    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 Edit.
    5. Modify the settings for the bastion as needed.

      Under CIDR block allowlist, update the address ranges in CIDR notation that you want to allow to connect to sessions hosted by this bastion. You can use CIDR notation to provide address ranges. A more limited range offers better security.

    6. Click Show advanced options and modify the advanced settings for the bastion as needed.
      • On the Management tab, change the value of the maximum amount of time that any session on this bastion can remain active. Provide a value that's at least 30 minutes, but doesn't exceed 180 minutes (3 hours).

      • On the Tagging tab, apply or edit tags as necessary. If you have permissions to create a resource, you also have permissions to apply free-form tags to that resource. To apply a defined tag, you must have permissions to use the tag namespace. For more information about tagging, see Resource Tags.

    7. When you're finished, click Save changes.
  • Use the oci bastion bastion update command and required parameters to edit a bastion:

    oci bastion bastion update --bastion-id <bastion_ocid> [OPTIONS]

    For a complete list of flags and variable options for CLI commands, see the Command Line Reference.

  • Run the UpdateBastion operation to edit a bastion.