vw_governance_rules
Creates, updates, deletes, gets or lists a vw_governance_rules
resource.
Overview
Name | vw_governance_rules |
Type | View |
Id | azure.security.vw_governance_rules |
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, '$.tenantId') as "tenant_id",
JSON_EXTRACT(properties, '$.displayName') as "display_name",
JSON_EXTRACT(properties, '$.description') as "description",
JSON_EXTRACT(properties, '$.remediationTimeframe') as "remediation_timeframe",
JSON_EXTRACT(properties, '$.isGracePeriod') as "is_grace_period",
JSON_EXTRACT(properties, '$.rulePriority') as "rule_priority",
JSON_EXTRACT(properties, '$.isDisabled') as "is_disabled",
JSON_EXTRACT(properties, '$.ruleType') as "rule_type",
JSON_EXTRACT(properties, '$.sourceResourceType') as "source_resource_type",
JSON_EXTRACT(properties, '$.excludedScopes') as "excluded_scopes",
JSON_EXTRACT(properties, '$.conditionSets') as "condition_sets",
JSON_EXTRACT(properties, '$.includeMemberScopes') as "include_member_scopes",
JSON_EXTRACT(properties, '$.ownerSource') as "owner_source",
JSON_EXTRACT(properties, '$.governanceEmailNotification') as "governance_email_notification",
JSON_EXTRACT(properties, '$.metadata') as "metadata",
scope,
ruleId
FROM azure.security.governance_rules
WHERE scope = 'replace-me';
SELECT
id as id,
name as name,
type as type,
systemData as system_data,
json_extract_path_text(properties, '$.tenantId') as "tenant_id",
json_extract_path_text(properties, '$.displayName') as "display_name",
json_extract_path_text(properties, '$.description') as "description",
json_extract_path_text(properties, '$.remediationTimeframe') as "remediation_timeframe",
json_extract_path_text(properties, '$.isGracePeriod') as "is_grace_period",
json_extract_path_text(properties, '$.rulePriority') as "rule_priority",
json_extract_path_text(properties, '$.isDisabled') as "is_disabled",
json_extract_path_text(properties, '$.ruleType') as "rule_type",
json_extract_path_text(properties, '$.sourceResourceType') as "source_resource_type",
json_extract_path_text(properties, '$.excludedScopes') as "excluded_scopes",
json_extract_path_text(properties, '$.conditionSets') as "condition_sets",
json_extract_path_text(properties, '$.includeMemberScopes') as "include_member_scopes",
json_extract_path_text(properties, '$.ownerSource') as "owner_source",
json_extract_path_text(properties, '$.governanceEmailNotification') as "governance_email_notification",
json_extract_path_text(properties, '$.metadata') as "metadata",
scope,
ruleId
FROM azure.security.governance_rules
WHERE scope = 'replace-me';