Listing Bastions

List the bastions in a compartment.

    1. Open the navigation menu , select Identity & Security, and then select Bastion.

      The Bastions list page opens. All bastions in the selected compartment are displayed in a table.

    2. To view the resources in a different compartment, use the Compartment filter to switch compartments.
      You must have permission to work in a compartment to see the resources in it. If you're not sure which compartment to use, contact an administrator. For more information, see Understanding Compartments.
  • Use the oci bastion bastion list command and required parameters to list all bastions in a compartment:

    oci bastion bastion list --compartment-id <compartment_ocid> [OPTIONS]

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

  • Run the ListBastions operation to list all bastions in a compartment.