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_namefrom oci_core_load_balancer;
select display_name, id, time_created, lifecycle_state as state, shape_namefrom 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_privatefrom oci_core_load_balancerwhere not is_private;
select display_name, id, is_privatefrom oci_core_load_balancerwhere not is_private;
Query examples
Schema for oci_core_load_balancer
Name | Type | Operators | Description |
---|---|---|---|
_ctx | jsonb | Steampipe context in JSON form. | |
backend_sets | jsonb | The configuration of a load balancer backend set. | |
certificates | jsonb | The configuration details of a certificate bundle. | |
compartment_id | text | = | The OCID of the compartment in Tenant in which the resource is located. |
defined_tags | jsonb | Defined 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_name | text | = | A user-friendly name of the load balancer. |
freeform_tags | jsonb | Free-form tags for resource. This tags can be applied by any user with permissions on the resource. | |
hostnames | jsonb | A hostname resource associated with a load balancer for use by one or more listeners. | |
id | text | = | The OCID of the load balancer. |
ip_addresses | jsonb | An array of IP addresses. | |
is_private | boolean | Whether the load balancer has a VCN-local (private) IP address. | |
lifecycle_state | text | = | The load balancer's current state. |
listeners | jsonb | The listener's configuration. | |
network_security_group_ids | jsonb | An array of NSG OCIDs associated with the load balancer. | |
path_route_sets | jsonb | A named set of path route rules. | |
region | text | The OCI region in which the resource is located. | |
routing_policies | jsonb | A named ordered list of routing rules that is applied to a listener. | |
rule_sets | jsonb | A named set of rules associated with a load balancer. | |
shape_details | jsonb | The configuration details to update load balancer to a different shape. | |
shape_name | text | A template that determines the total pre-provisioned bandwidth (ingress plus egress). | |
sp_connection_name | text | =, !=, ~~, ~~*, !~~, !~~* | Steampipe connection name. |
sp_ctx | jsonb | Steampipe context in JSON form. | |
ssl_cipher_suites | jsonb | The configuration details of an SSL cipher suite. | |
subnet_ids | jsonb | An array of subnet OCIDs. | |
system_tags | jsonb | System tags for this resource. | |
tags | jsonb | A map of tags for the resource. | |
tenant_id | text | =, !=, ~~, ~~*, !~~, !~~* | The OCID of the Tenant in which the resource is located. |
tenant_name | text | The name of the Tenant in which the resource is located. | |
time_created | timestamp with time zone | The date and time the load balancer was created. | |
title | text | Title 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