Listing the Sessions in a Bastion

Describes how to list the sessions in a bastion.

    1. On the Bastions list page, select the bastion that hosts the sessions 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 Sessions.

      All bastion sessions in the selected compartment are displayed in a table.

  • Use the oci bastion session list command and required parameters to list the sessions in a bastion:

    oci bastion session list --bastion-id <bastion_ocid> [OPTIONS]

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

  • Run the ListSessions operation to list the sessions in a bastion.