turbot/oci_insights

Query: blockstorage_boot_volume_age_report

Usage

powerpipe query oci_insights.query.blockstorage_boot_volume_age_report

SQL

select
v.display_name as "Name",
v.id as "OCID",
now()::date - v.time_created::date as "Age in Days",
v.time_created as "Create Time",
v.lifecycle_state as "Lifecycle State",
t.title as "Tenancy",
coalesce(c.title, 'root') as "Compartment",
v.region as "Region"
from
oci_core_boot_volume as v
left join oci_identity_compartment as c on v.compartment_id = c.id
left join oci_identity_tenancy as t on v.tenant_id = t.id
where
v.lifecycle_state <> 'TERMINATED'
order by
v.time_created,
v.display_name;

Dashboards

The query is used in the dashboards: