Table: oci_core_public_ip_pool - Query OCI Core Public IP Pools using SQL
Public IP Pools in Oracle Cloud Infrastructure's Core service are resources that represent a pool of public IP addresses. These pools are used to allocate public IPs to resources within the infrastructure. They allow for the management and allocation of public IP addresses in a controlled manner.
Table Usage Guide
The oci_core_public_ip_pool
table provides insights into Public IP Pools within Oracle Cloud Infrastructure's Core service. If you are a network administrator or a cloud engineer, you can explore pool-specific details through this table, including the pool's capacity, the number of available IP addresses, and associated metadata. Use it to manage and monitor your public IP address allocation, ensuring optimal use of resources and preventing IP address exhaustion.
Examples
Basic info
Explore the lifecycle status, creation time, and region of your Oracle Cloud Infrastructure's public IP pools. This can be useful to understand the distribution and availability of your public IP resources.
select display_name, id, lifecycle_state as state, time_created, regionfrom oci_core_public_ip_pool;
select display_name, id, lifecycle_state as state, time_created, regionfrom oci_core_public_ip_pool;
List public IP pool which are not active
Discover the segments that consist of public IP pools that are not currently active. This can be useful to identify and manage unused resources within your network infrastructure.
select display_name, id, lifecycle_state as statefrom oci_core_public_ip_poolwhere lifecycle_state <> 'ACTIVE';
select display_name, id, lifecycle_state as statefrom oci_core_public_ip_poolwhere lifecycle_state <> 'ACTIVE';
Schema for oci_core_public_ip_pool
Name | Type | Operators | Description |
---|---|---|---|
_ctx | jsonb | Steampipe context in JSON form. | |
cidr_blocks | jsonb | The CIDR blocks added to this pool. This could be all or a portion of a BYOIP CIDR block. | |
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. Does not have to be unique. |
freeform_tags | jsonb | Free-form tags for resource. This tags can be applied by any user with permissions on the resource. | |
id | text | = | The OCID of the public IP pool. |
lifecycle_state | text | The public IP pool's current state. | |
region | text | The OCI region in which the resource is located. | |
sp_connection_name | text | =, !=, ~~, ~~*, !~~, !~~* | Steampipe connection name. |
sp_ctx | jsonb | Steampipe context in JSON form. | |
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 public IP pool 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_public_ip_pool