turbot/oci_insights

Query: vcn_network_security_group_input

Usage

powerpipe query oci_insights.query.vcn_network_security_group_input

SQL

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