turbot/oci_insights

Query: filestorage_filesystem_age_report

Usage

powerpipe query oci_insights.query.filestorage_filesystem_age_report

SQL

select
f.display_name as "Name",
f.id as "OCID",
now() :: date - f.time_created :: date as "Age in Days",
f.time_created as "Create Time",
f.lifecycle_state as "Lifecycle State",
t.title as "Tenancy",
coalesce(c.title, 'root') as "Compartment",
f.region as "Region"
from
oci_file_storage_file_system as f
left join oci_identity_compartment as c on f.compartment_id = c.id
left join oci_identity_tenancy as t on f.tenant_id = t.id
where
f.lifecycle_state <> 'DELETED'
order by
f.time_created,
f.display_name;

Dashboards

The query is used in the dashboards: