turbot/oci_insights

Query: blockstorage_boot_volume_encryption_report

Usage

powerpipe query oci_insights.query.blockstorage_boot_volume_encryption_report

SQL

select
v.display_name as "Name",
case when v.kms_key_id is not null then 'Customer-Managed' else 'Oracle-Managed' end as "Encryption Status",
v.kms_key_id as "KMS Key ID",
t.title as "Tenancy",
coalesce(c.title, 'root') as "Compartment",
v.region as "Region",
v.id as "OCID"
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.display_name;

Dashboards

The query is used in the dashboards: