turbot/oci_insights

Query: oci_vcn_subnet_by_vcn

Usage

powerpipe query oci_insights.query.oci_vcn_subnet_by_vcn

SQL

select
v.display_name as "VCN",
count(*) as "subnets"
from
oci_core_subnet s
left join oci_core_vcn v on s.vcn_id = v.id
where
s.lifecycle_state <> 'TERMINATED'
group by
v.display_name
order by
v.display_name;

Dashboards

The query is used in the dashboards: