steampipe plugin install oci

Table: oci_core_image - Query OCI Core Images using SQL

Oracle Cloud Infrastructure (OCI) Core Images are pre-configured operating system images that you can use to create instances in the Compute service. These images include Oracle Linux, CentOS, Ubuntu, and Windows Server, among others. They are designed to provide a secure, stable, and high performance execution environment for applications running on OCI.

Table Usage Guide

The oci_core_image table provides insights into Core Images within Oracle Cloud Infrastructure (OCI). As a system administrator, you can explore image-specific details through this table, including operating system details, launch mode, and associated metadata. Utilize it to uncover information about images, such as their lifecycle state, whether they are bootable, and the time they were created.

Examples

Basic info

Explore which images in your Oracle Cloud Infrastructure are currently in use and the operating systems they are running. This information can help you manage your resources more effectively and identify areas for potential optimization or consolidation.

select
display_name,
id,
size_in_mbs,
tags,
lifecycle_state,
operating_system
from
oci_core_image;
select
display_name,
id,
size_in_mbs,
tags,
lifecycle_state,
operating_system
from
oci_core_image;

List images with encryption in transit disabled

Discover the segments that have encryption in transit disabled. This is useful to identify potential security risks and ensure data protection standards are met.

select
display_name,
id,
launch_options ->> 'isPvEncryptionInTransitEnabled' as is_encryption_in_transit_enabled
from
oci_core_image
where
launch_options ->> 'isPvEncryptionInTransitEnabled' = 'false';
select
display_name,
id,
json_extract(
launch_options,
'$.isPvEncryptionInTransitEnabled'
) as is_encryption_in_transit_enabled
from
oci_core_image
where
json_extract(
launch_options,
'$.isPvEncryptionInTransitEnabled'
) = 'false';

Schema for oci_core_image

NameTypeOperatorsDescription
_ctxjsonbSteampipe context in JSON form, e.g. connection_name.
agent_featuresjsonbOracle Cloud Agent features supported on the image.
base_image_idtextThe OCID of the image originally used to launch the instance.
compartment_idtext=The OCID of the compartment in Tenant in which the resource is located.
create_image_allowedbooleanIndicates whether instances launched with this image can be used to create new images.
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 for the image. It does not have to be unique, and it's changeable.
freeform_tagsjsonbFree-form tags for resource. This tags can be applied by any user with permissions on the resource.
idtext=The OCID of the image.
launch_modetextSpecifies the configuration mode for launching virtual machine (VM) instances.
launch_optionsjsonbLaunchOptions Options for tuning the compatibility and performance of VM shapes.
lifecycle_statetext=The image's current state.
operating_systemtext=The image's operating system.
operating_system_versiontext=The image's operating system version.
regiontextThe OCI region in which the resource is located.
size_in_mbsbigintThe boot volume size for an instance launched from this image.
tagsjsonbA map of tags for the resource.
tenant_idtextThe 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 image 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_image