turbot/oci_insights

Query: database_autonomous_database_input

Usage

powerpipe query oci_insights.query.database_autonomous_database_input

SQL

select
d.display_name as label,
d.id as value,
json_build_object(
'd.db_name',
right(reverse(split_part(reverse(d.id), '.', 1)), 8),
'oic.name',
coalesce(oic.title, 'root'),
'd.region',
d.region,
't.name',
t.name
) as tags
from
oci_database_autonomous_database as d
left join oci_identity_compartment as oic on d.compartment_id = oic.id
left join oci_identity_tenancy as t on d.tenant_id = t.id
where
d.lifecycle_state <> 'TERMINATED'
order by
d.display_name;

Dashboards

The query is used in the dashboards: