Listing Bastions in a Compartment
List the bastions in a compartment.
- Open the navigation menu and click Identity & Security. Click Bastion.
- Under List scope, select a compartment from the Compartment list.
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.