turbot/azure_insights

Query: cosmosdb_account_cors_rules

Usage

powerpipe query azure_insights.query.cosmosdb_account_cors_rules

Steampipe Tables

SQL

select
c ->> 'allowedHeaders' as "Allowed Headers",
c ->> 'allowedMethods' as "Allowed Methods",
c ->> 'allowedOrigins' as "Allowed Origins",
c ->> 'exposedHeaders' as "Exposed Headers",
c ->> 'maxAgeInSeconds' as "Max Age - (seconds)"
from
azure_cosmosdb_account,
jsonb_array_elements(cors) as c
where
lower(id) = $1
and subscription_id = split_part($1, '/', 3);

Dashboards

The query is used in the dashboards: