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_systemfrom oci_core_image;
select display_name, id, size_in_mbs, tags, lifecycle_state, operating_systemfrom 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_enabledfrom oci_core_imagewhere launch_options ->> 'isPvEncryptionInTransitEnabled' = 'false';
select display_name, id, json_extract( launch_options, '$.isPvEncryptionInTransitEnabled' ) as is_encryption_in_transit_enabledfrom oci_core_imagewhere json_extract( launch_options, '$.isPvEncryptionInTransitEnabled' ) = 'false';
Schema for oci_core_image
Name | Type | Operators | Description |
---|---|---|---|
_ctx | jsonb | Steampipe context in JSON form. | |
agent_features | jsonb | Oracle Cloud Agent features supported on the image. | |
base_image_id | text | The OCID of the image originally used to launch the instance. | |
compartment_id | text | = | The OCID of the compartment in Tenant in which the resource is located. |
create_image_allowed | boolean | Indicates whether instances launched with this image can be used to create new images. | |
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 for the image. It does not have to be unique, and it's changeable. |
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 image. |
launch_mode | text | Specifies the configuration mode for launching virtual machine (VM) instances. | |
launch_options | jsonb | LaunchOptions Options for tuning the compatibility and performance of VM shapes. | |
lifecycle_state | text | = | The image's current state. |
operating_system | text | = | The image's operating system. |
operating_system_version | text | = | The image's operating system version. |
region | text | The OCI region in which the resource is located. | |
size_in_mbs | bigint | The boot volume size for an instance launched from this image. | |
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 image 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_image