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 .
- 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.
- On the details page, select Edit.
- 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.
-
Select 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.
-
- When you're finished, 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.