vw_policies
Creates, updates, deletes, gets or lists a vw_policies
resource.
Overview
Name | vw_policies |
Type | View |
Id | azure.dev_test_labs.vw_policies |
Fields
See the SQL Definition (view DDL) for fields returned by this view.
SQL Definition
- Sqlite3
- Postgres
SELECT
id as id,
name as name,
location as location,
type as type,
tags as tags,
JSON_EXTRACT(properties, '$.description') as "description",
JSON_EXTRACT(properties, '$.status') as "status",
JSON_EXTRACT(properties, '$.factName') as "fact_name",
JSON_EXTRACT(properties, '$.factData') as "fact_data",
JSON_EXTRACT(properties, '$.threshold') as "threshold",
JSON_EXTRACT(properties, '$.evaluatorType') as "evaluator_type",
JSON_EXTRACT(properties, '$.createdDate') as "created_date",
JSON_EXTRACT(properties, '$.provisioningState') as "provisioning_state",
JSON_EXTRACT(properties, '$.uniqueIdentifier') as "unique_identifier",
subscriptionId,
resourceGroupName,
labName,
policySetName,
name
FROM azure.dev_test_labs.policies
WHERE subscriptionId = 'replace-me' AND resourceGroupName = 'replace-me' AND labName = 'replace-me' AND policySetName = 'replace-me';
SELECT
id as id,
name as name,
location as location,
type as type,
tags as tags,
json_extract_path_text(properties, '$.description') as "description",
json_extract_path_text(properties, '$.status') as "status",
json_extract_path_text(properties, '$.factName') as "fact_name",
json_extract_path_text(properties, '$.factData') as "fact_data",
json_extract_path_text(properties, '$.threshold') as "threshold",
json_extract_path_text(properties, '$.evaluatorType') as "evaluator_type",
json_extract_path_text(properties, '$.createdDate') as "created_date",
json_extract_path_text(properties, '$.provisioningState') as "provisioning_state",
json_extract_path_text(properties, '$.uniqueIdentifier') as "unique_identifier",
subscriptionId,
resourceGroupName,
labName,
policySetName,
name
FROM azure.dev_test_labs.policies
WHERE subscriptionId = 'replace-me' AND resourceGroupName = 'replace-me' AND labName = 'replace-me' AND policySetName = 'replace-me';