turbot/digitalocean_insights

Query: snapshot_snapshots_for_droplet

Usage

powerpipe query digitalocean_insights.query.snapshot_snapshots_for_droplet

SQL

select
s.id as snapshot_urn
from
digitalocean_droplet as d,
jsonb_array_elements(snapshot_ids) as sid,
digitalocean_snapshot as s
where
s.id = sid::text
and d.urn = $1;