turbot/oci_insights

Query: nosql_table_input

Usage

powerpipe query oci_insights.query.nosql_table_input

SQL

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