turbot/ibm_insights

Query: ibm_is_vpc_address_prefixes

Usage

powerpipe query ibm_insights.query.ibm_is_vpc_address_prefixes

Steampipe Tables

SQL

select
(trim('"' FROM (p ->> 'cidr')))::cidr as "Address Prefix",
power(2, 32 - masklen( (trim('"' FROM (p ->> 'cidr')) ):: cidr)) as "Total IPs"
from
ibm_is_vpc,
jsonb_array_elements(address_prefixes) as p
where
crn = $1;

Params

ArgsNameDefaultDescriptionVariable
$1crn

    Dashboards

    The query is used in the dashboards: