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 statefrom oci_core_block_volume_replica;
select id, display_name, block_volume_id, time_created, lifecycle_state as statefrom 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 statefrom oci_core_block_volume_replicawhere lifecycle_state <> 'AVAILABLE';
select id, display_name, block_volume_id, time_created, lifecycle_state as statefrom oci_core_block_volume_replicawhere lifecycle_state <> 'AVAILABLE';
Schema for oci_core_block_volume_replica
Name | Type | Operators | Description |
---|---|---|---|
_ctx | jsonb | Steampipe context in JSON form. | |
availability_domain | text | = | The availability domain of the block volume replica. |
block_volume_id | text | The OCID of the source block volume. | |
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. |
freeform_tags | jsonb | Free-form tags for resource. This tags can be applied by any user with permissions on the resource. | |
id | text | = | The block volume replica's Oracle ID (OCID). |
lifecycle_state | text | = | The current state of a block volume replica. |
region | text | The OCI region in which the resource is located. | |
size_in_gbs | bigint | The size of the source block volume, in GBs. | |
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 block volume replica was created. | |
time_last_synced | timestamp with time zone | The date and time the block volume replica was last synced from the source block volume. | |
title | text | Title of the resource. | |
total_data_transferred_in_gbs | bigint | The 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