vw_policy_policy_for_tenants
Creates, updates, deletes, gets or lists a vw_policy_policy_for_tenants
resource.
Overview
Name | vw_policy_policy_for_tenants |
Type | View |
Id | azure.subscription.vw_policy_policy_for_tenants |
Fields
See the SQL Definition (view DDL) for fields returned by this view.
SQL Definition
- Sqlite3
- Postgres
SELECT
id as id,
name as name,
type as type,
systemData as system_data,
JSON_EXTRACT(properties, '$.policyId') as "policy_id",
JSON_EXTRACT(properties, '$.blockSubscriptionsLeavingTenant') as "block_subscriptions_leaving_tenant",
JSON_EXTRACT(properties, '$.blockSubscriptionsIntoTenant') as "block_subscriptions_into_tenant",
JSON_EXTRACT(properties, '$.exemptedPrincipals') as "exempted_principals"
FROM azure.subscription.policy_policy_for_tenants
;
SELECT
id as id,
name as name,
type as type,
systemData as system_data,
json_extract_path_text(properties, '$.policyId') as "policy_id",
json_extract_path_text(properties, '$.blockSubscriptionsLeavingTenant') as "block_subscriptions_leaving_tenant",
json_extract_path_text(properties, '$.blockSubscriptionsIntoTenant') as "block_subscriptions_into_tenant",
json_extract_path_text(properties, '$.exemptedPrincipals') as "exempted_principals"
FROM azure.subscription.policy_policy_for_tenants
;