turbot/gcp_insights

Query: compute_disk_unattached

Usage

powerpipe query gcp_insights.query.compute_disk_unattached

Steampipe Tables

SQL

with disks as (
select
case
when users is null then 'available'
else 'in-use'
end as attachment_status
from
gcp_compute_disk
)
select
attachment_status,
count(*)
from
disks
group by
attachment_status;

Dashboards

The query is used in the dashboards: