steampipe plugin install oci

Table: oci_core_load_balancer - Query OCI Core Load Balancers using SQL

The Oracle Cloud Infrastructure (OCI) Core Load Balancer is a fully managed service that helps you distribute application traffic across multiple instances in your Virtual Cloud Networks (VCN). It provides automatic scaling and high availability for applications, and supports both internet-facing and private load balancers. The OCI Core Load Balancer allows you to create, manage, and scale load balancers to distribute traffic evenly across your applications.

Table Usage Guide

The oci_core_load_balancer table provides insights into the load balancers within Oracle Cloud Infrastructure (OCI) Core services. As a network engineer or system administrator, you can explore load balancer-specific details through this table, including the configuration, status, and associated instances. Use it to uncover information about load balancers, such as their current operational status, the backend sets, and the associated security groups.

Examples

Basic info

Explore which load balancers have been created in your Oracle Cloud Infrastructure, when they were established, and their current operational state. This helps in tracking the lifecycle of your resources and understanding their configurations.

select
display_name,
id,
time_created,
lifecycle_state as state,
shape_name
from
oci_core_load_balancer;
select
display_name,
id,
time_created,
lifecycle_state as state,
shape_name
from
oci_core_load_balancer;

List load balancers assigns with public IP address

Explore which load balancers are assigned with a public IP address. This is useful for assessing potential security risks and managing network access.

select
display_name,
id,
is_private
from
oci_core_load_balancer
where
not is_private;
select
display_name,
id,
is_private
from
oci_core_load_balancer
where
not is_private;

Schema for oci_core_load_balancer

NameTypeOperatorsDescription
_ctxjsonbSteampipe context in JSON form.
backend_setsjsonbThe configuration of a load balancer backend set.
certificatesjsonbThe configuration details of a certificate bundle.
compartment_idtext=The OCID of the compartment in Tenant in which the resource is located.
defined_tagsjsonbDefined tags for resource. Defined tags are set up in your tenancy by an administrator. Only users granted permission to work with the defined tags can apply them to resources.
display_nametext=A user-friendly name of the load balancer.
freeform_tagsjsonbFree-form tags for resource. This tags can be applied by any user with permissions on the resource.
hostnamesjsonbA hostname resource associated with a load balancer for use by one or more listeners.
idtext=The OCID of the load balancer.
ip_addressesjsonbAn array of IP addresses.
is_privatebooleanWhether the load balancer has a VCN-local (private) IP address.
lifecycle_statetext=The load balancer's current state.
listenersjsonbThe listener's configuration.
network_security_group_idsjsonbAn array of NSG OCIDs associated with the load balancer.
path_route_setsjsonbA named set of path route rules.
regiontextThe OCI region in which the resource is located.
routing_policiesjsonbA named ordered list of routing rules that is applied to a listener.
rule_setsjsonbA named set of rules associated with a load balancer.
shape_detailsjsonbThe configuration details to update load balancer to a different shape.
shape_nametextA template that determines the total pre-provisioned bandwidth (ingress plus egress).
sp_connection_nametext=, !=, ~~, ~~*, !~~, !~~*Steampipe connection name.
sp_ctxjsonbSteampipe context in JSON form.
ssl_cipher_suitesjsonbThe configuration details of an SSL cipher suite.
subnet_idsjsonbAn array of subnet OCIDs.
system_tagsjsonbSystem tags for this resource.
tagsjsonbA map of tags for the resource.
tenant_idtext=, !=, ~~, ~~*, !~~, !~~*The OCID of the Tenant in which the resource is located.
tenant_nametextThe name of the Tenant in which the resource is located.
time_createdtimestamp with time zoneThe date and time the load balancer was created.
titletextTitle of the resource.

Export

This table is available as a standalone Exporter CLI. Steampipe exporters are stand-alone binaries that allow you to extract data using Steampipe plugins without a database.

You can download the tarball for your platform from the Releases page, but it is simplest to install them with the steampipe_export_installer.sh script:

/bin/sh -c "$(curl -fsSL https://steampipe.io/install/export.sh)" -- oci

You can pass the configuration to the command with the --config argument:

steampipe_export_oci --config '<your_config>' oci_core_load_balancer