turbot/oci_insights

Query: kms_key_versions_for_kms_key

Usage

powerpipe query oci_insights.query.kms_key_versions_for_kms_key

SQL

select
v.id as kms_key_version_id
from
oci_kms_key_version as v
left join oci_kms_key as k on k.id = v.key_id
where
v.management_endpoint = k.management_endpoint
and v.region = k.region
and k.id = $1;