vw_cost_allocation_rules
Creates, updates, deletes, gets or lists a vw_cost_allocation_rules
resource.
Overview
Name | vw_cost_allocation_rules |
Type | View |
Id | azure.cost_management.vw_cost_allocation_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,
JSON_EXTRACT(properties, '$.description') as "description",
JSON_EXTRACT(properties, '$.details') as "details",
JSON_EXTRACT(properties, '$.status') as "status",
JSON_EXTRACT(properties, '$.createdDate') as "created_date",
JSON_EXTRACT(properties, '$.updatedDate') as "updated_date",
billingAccountId,
ruleName
FROM azure.cost_management.cost_allocation_rules
WHERE billingAccountId = 'replace-me';
SELECT
id as id,
name as name,
type as type,
json_extract_path_text(properties, '$.description') as "description",
json_extract_path_text(properties, '$.details') as "details",
json_extract_path_text(properties, '$.status') as "status",
json_extract_path_text(properties, '$.createdDate') as "created_date",
json_extract_path_text(properties, '$.updatedDate') as "updated_date",
billingAccountId,
ruleName
FROM azure.cost_management.cost_allocation_rules
WHERE billingAccountId = 'replace-me';