Data Source: oci_bastion_bastions
This data source provides the list of Bastions in Oracle Cloud Infrastructure Bastion service.
Retrieves a list of BastionSummary objects in a compartment. Bastions provide secured, public access to target resources in the cloud that you cannot otherwise reach from the internet.
Example Usage
data "oci_bastion_bastions" "test_bastions" {
	#Required
	compartment_id = var.compartment_id
	#Optional
	bastion_id = oci_bastion_bastion.test_bastion.id
	bastion_lifecycle_state = var.bastion_bastion_lifecycle_state
	name = var.bastion_name
}
Argument Reference
The following arguments are supported:
- bastion_id- (Optional) The unique identifier (OCID) of the bastion in which to list resources.
- bastion_lifecycle_state- (Optional) A filter to return only resources their lifecycleState matches the given lifecycleState.
- compartment_id- (Required) The unique identifier (OCID) of the compartment in which to list resources.
- name- (Optional) A filter to return only resources that match the entire name given.
Attributes Reference
The following attributes are exported:
- bastions- The list of bastions.
Bastion Reference
The following attributes are exported:
- bastion_type- The type of bastion.
- client_cidr_block_allow_list- A list of address ranges in CIDR notation that you want to allow to connect to sessions hosted by this bastion.
- compartment_id- The unique identifier (OCID) of the compartment where the bastion is located.
- defined_tags- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:- {"foo-namespace.bar-key": "value"}
- dns_proxy_status- Flag to enable FQDN and SOCKS5 Proxy Support. Example:- ENABLED,- DISABLED
- freeform_tags- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example:- {"bar-key": "value"}
- id- The unique identifier (OCID) of the bastion, which can’t be changed after creation.
- lifecycle_details- A message describing the current state in more detail.
- max_session_ttl_in_seconds- The maximum amount of time that any session on the bastion can remain active.
- max_sessions_allowed- The maximum number of active sessions allowed on the bastion.
- name- The name of the bastion, which can’t be changed after creation.
- phone_book_entry- The phonebook entry of the customer’s team, which can’t be changed after creation. Not applicable to- standardbastions.
- private_endpoint_ip_address- The private IP address of the created private endpoint.
- state- The current state of the bastion.
- static_jump_host_ip_addresses- A list of IP addresses of the hosts that the bastion has access to. Not applicable to- standardbastions.
- system_tags- Usage of system tag keys. These predefined keys are scoped to namespaces. Example:- {"orcl-cloud.free-tier-retained": "true"}
- target_subnet_id- The unique identifier (OCID) of the subnet that the bastion connects to.
- target_vcn_id- The unique identifier (OCID) of the virtual cloud network (VCN) that the bastion connects to.
- time_created- The time the bastion was created. Format is defined by RFC3339. Example:- 2020-01-25T21:10:29.600Z
- time_updated- The time the bastion was updated. Format is defined by RFC3339. Example:- 2020-01-25T21:10:29.600Z