turbot/oci_insights

Query: key_vault_input

Usage

powerpipe query oci_insights.query.key_vault_input

SQL

select
k.display_name as label,
k.id as value,
json_build_object(
'oci.name', coalesce(oci.title, 'root'),
'k.region', region,
't.name', t.name
) as tags
from
oci_kms_vault as k
left join oci_identity_compartment as oci on k.compartment_id = oci.id
left join oci_identity_tenancy as t on k.tenant_id = t.id
where
k.lifecycle_state <> 'DELETED'
order by
k.display_name;