turbot/gcp_insights

Query: compute_networks_for_compute_subnetwork

Usage

powerpipe query gcp_insights.query.compute_networks_for_compute_subnetwork

SQL

select
n.id::text || '/' || n.project as network_id
from
gcp_compute_subnetwork s,
gcp_compute_network n
where
s.network = n.self_link
and s.id = (split_part($1, '/', 1))::bigint
and s.project = split_part($1, '/', 2);