vw_departments
Creates, updates, deletes, gets or lists a vw_departments
resource.
Overview
Name | vw_departments |
Type | View |
Id | azure.billing.vw_departments |
Fields
See the SQL Definition (view DDL) for fields returned by this view.
SQL Definition
- Sqlite3
- Postgres
SELECT
tags as tags,
JSON_EXTRACT(properties, '$.costCenter') as "cost_center",
JSON_EXTRACT(properties, '$.displayName') as "display_name",
JSON_EXTRACT(properties, '$.id') as "id",
JSON_EXTRACT(properties, '$.status') as "status",
billingAccountName,
departmentName
FROM azure.billing.departments
WHERE billingAccountName = 'replace-me';
SELECT
tags as tags,
json_extract_path_text(properties, '$.costCenter') as "cost_center",
json_extract_path_text(properties, '$.displayName') as "display_name",
json_extract_path_text(properties, '$.id') as "id",
json_extract_path_text(properties, '$.status') as "status",
billingAccountName,
departmentName
FROM azure.billing.departments
WHERE billingAccountName = 'replace-me';