turbot/oci_insights

Query: oci_vcn_subnet_by_tenancy

Usage

powerpipe query oci_insights.query.oci_vcn_subnet_by_tenancy

SQL

select
c.title as "Tenancy",
count(s.*) as "Subnets"
from
oci_core_subnet as s,
oci_identity_tenancy as c
where
c.id = s.tenant_id
and s.lifecycle_state <> 'TERMINATED'
group by
c.title
order by
c.title;

Dashboards

The query is used in the dashboards: