turbot/oci_insights

Query: objectstorage_bucket_by_tenancy

Usage

powerpipe query oci_insights.query.objectstorage_bucket_by_tenancy

SQL

select
t.title as "Tenancy",
count(b.*) as "Buckets"
from
oci_objectstorage_bucket as b,
oci_identity_tenancy as t
where
t.id = b.tenant_id
group by
t.title
order by
t.title;

Dashboards

The query is used in the dashboards: