steampipe plugin install oci

Table: oci_core_block_volume_replica - Query OCI Core Block Volume Replicas using SQL

Block Volume Replicas in Oracle Cloud Infrastructure (OCI) are copies of block volumes that can be used to create new block volumes or replace existing ones. These replicas provide a point-in-time copy of the data and are useful for backup, restore, and cloning operations. They are an integral part of OCI's core services, providing data durability, reliability, and flexibility.

Table Usage Guide

The oci_core_block_volume_replica table provides insights into block volume replicas within OCI's core services. As a database administrator or storage engineer, you can explore replica-specific details through this table, including its availability domain, lifecycle state, and associated metadata. Utilize it to manage your block volume replicas, such as understanding their current state, ensuring data consistency, and planning for disaster recovery scenarios.

Examples

Basic info

Explore which block volume replicas are currently active and when they were created. This can help in monitoring and managing the lifecycle of your storage resources.

select
id,
display_name,
block_volume_id,
time_created,
lifecycle_state as state
from
oci_core_block_volume_replica;
select
id,
display_name,
block_volume_id,
time_created,
lifecycle_state as state
from
oci_core_block_volume_replica;

List volume replicas which are not available

Explore the block volume replicas in your OCI Core that are not currently available. This can help in identifying potential issues or disruptions in your data storage and backup systems.

select
id,
display_name,
block_volume_id,
time_created,
lifecycle_state as state
from
oci_core_block_volume_replica
where
lifecycle_state <> 'AVAILABLE';
select
id,
display_name,
block_volume_id,
time_created,
lifecycle_state as state
from
oci_core_block_volume_replica
where
lifecycle_state <> 'AVAILABLE';

Schema for oci_core_block_volume_replica

NameTypeOperatorsDescription
_ctxjsonbSteampipe context in JSON form.
availability_domaintext=The availability domain of the block volume replica.
block_volume_idtextThe OCID of the source block 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 block volume replica's Oracle ID (OCID).
lifecycle_statetext=The current state of a block volume replica.
regiontextThe OCI region in which the resource is located.
size_in_gbsbigintThe size of the source block 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 block volume replica was created.
time_last_syncedtimestamp with time zoneThe date and time the block volume replica was last synced from the source block volume.
titletextTitle of the resource.
total_data_transferred_in_gbsbigintThe total size of the data transferred from the source block volume to the block 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_block_volume_replica