turbot/gcp_insights

Query: storage_bucket_versioning_status

Usage

powerpipe query gcp_insights.query.storage_bucket_versioning_status

Steampipe Tables

SQL

with buckets as (
select
case
when versioning_enabled then 'enabled'
else 'disabled'
end as versioning_enabled_status
from
gcp_storage_bucket
)
select
versioning_enabled_status,
count(*)
from
buckets
group by
versioning_enabled_status;

Dashboards

The query is used in the dashboards: