steampipe plugin install oci

Table: oci_core_boot_volume_replica - Query OCI Core Boot Volume Replicas using SQL

Boot Volume Replicas in the Oracle Cloud Infrastructure Core service are a resource used to create point-in-time, crash-consistent copies of boot volumes. These copies are independent of the source boot volume, allowing you to restore a boot volume to its state at the time the replica was taken. Boot Volume Replicas can be used for disaster recovery, migrating data across regions, and improving backup compliance.

Table Usage Guide

The oci_core_boot_volume_replica table provides insights into Boot Volume Replicas within Oracle Cloud Infrastructure Core service. As a Cloud Engineer, you can use this table to explore details about each replica, including its availability domain, display name, lifecycle state, and associated metadata. This information can be useful for disaster recovery planning, compliance audits, and understanding the state of your boot volume replicas.

Examples

Basic info

Explore the basic information of your boot volume replicas to gain insights into their creation time and current state. This can help in assessing their lifecycle management and operational status.

select
id,
display_name,
boot_volume_id,
time_created,
lifecycle_state as state
from
oci_core_boot_volume_replica;
select
id,
display_name,
boot_volume_id,
time_created,
lifecycle_state as state
from
oci_core_boot_volume_replica;

List volume replicas which are not available

Discover the segments that consist of volume replicas which are not readily accessible. This can be useful in identifying potential issues or bottlenecks in your storage system.

select
id,
display_name,
boot_volume_id,
time_created,
lifecycle_state as state
from
oci_core_boot_volume_replica
where
lifecycle_state <> 'AVAILABLE';
select
id,
display_name,
boot_volume_id,
time_created,
lifecycle_state as state
from
oci_core_boot_volume_replica
where
lifecycle_state <> 'AVAILABLE';

Schema for oci_core_boot_volume_replica

NameTypeOperatorsDescription
_ctxjsonbSteampipe context in JSON form.
availability_domaintext=The availability domain of the boot volume replica.
boot_volume_idtextThe OCID of the source boot volume.
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.
freeform_tagsjsonbFree-form tags for resource. This tags can be applied by any user with permissions on the resource.
idtext=The boot volume replica's Oracle ID (OCID).
image_idtextThe image OCID used to create the boot volume the replica is replicated from.
lifecycle_statetext=The current state of a boot volume replica.
regiontextThe OCI region in which the resource is located.
size_in_gbsbigintThe size of the source boot volume, in GBs.
sp_connection_nametext=, !=, ~~, ~~*, !~~, !~~*Steampipe connection name.
sp_ctxjsonbSteampipe context in JSON form.
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 boot volume replica was created.
time_last_syncedtimestamp with time zoneThe date and time the boot volume replica was last synced from the source boot volume.
titletextTitle of the resource.
total_data_transferred_in_gbsbigintThe total size of the data transferred from the source boot volume to the boot volume replica, in GBs.

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_boot_volume_replica