Updating 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. 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. (Optional) Expand Advanced options and 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.
    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.