turbot/digitalocean_insights

Query: blockstorage_volumes_for_droplet

Usage

powerpipe query digitalocean_insights.query.blockstorage_volumes_for_droplet

SQL

select
v.urn as volume_urn
from
digitalocean_droplet as d,
digitalocean_volume as v,
jsonb_array_elements(droplet_ids) as did
where
d.id::int = did::int
and d.urn = $1;