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 .

When you edit a bastion, you can also update its tags. For more information about tagging, see Resource Tags.

    1. On the Bastions list page, select the bastion that you want to work with. If you need help finding the list page or the bastion, see Listing Bastions.
    2. On the details page, select Edit.
    3. Under CIDR block allowlist, update the address ranges in CIDR notation that you want to allow to connect to sessions hosted by this bastion. A more limited range offers better security.
    4. Expand Advanced options and change the advanced settings for the bastion depending on what you see:
      • Management: (Optional) Change the maximum amount of time that any session on this bastion can remain active by entering a value for Maximum session time-to-live. Provide a value of at least 30 minutes that doesn't exceed 180 minutes (3 hours). You can delete a session before it expires.

      • Tags: (Optional) Add one or more tags to the bastion. If you have permissions to create a resource, then 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. If you're not sure whether to apply tags, skip this option or ask an administrator. You can apply tags later.

    5. Select 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.