turbot/digitalocean_insights

Query: network_floating_ips_for_blockstorage_volume

Usage

powerpipe query digitalocean_insights.query.network_floating_ips_for_blockstorage_volume

SQL

select
f.urn as floating_ip_urn
from
digitalocean_floating_ip as f,
jsonb_array_elements_text(droplet -> 'volume_ids') as vid,
digitalocean_volume as v
where
v.id = vid
and v.urn = $1;