turbot/gcp_insights

Query: target_compute_disks_for_compute_disk

Usage

powerpipe query gcp_insights.query.target_compute_disks_for_compute_disk

Steampipe Tables

SQL

select
cd.id::text || '/' || cd.project as disk_id
from
gcp_compute_disk d,
gcp_compute_disk cd
where
d.id = (split_part($1, '/', 1))::bigint
and d.project = split_part($1, '/', 2)
and d.id::text = cd.source_disk_id;