vw_enrollment_accounts
Creates, updates, deletes, gets or lists a vw_enrollment_accounts
resource.
Overview
Name | vw_enrollment_accounts |
Type | View |
Id | azure.billing.vw_enrollment_accounts |
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, '$.departmentDisplayName') as "department_display_name",
JSON_EXTRACT(properties, '$.departmentId') as "department_id",
JSON_EXTRACT(properties, '$.isDevTestEnabled') as "is_dev_test_enabled",
JSON_EXTRACT(properties, '$.accountOwner') as "account_owner",
JSON_EXTRACT(properties, '$.authType') as "auth_type",
JSON_EXTRACT(properties, '$.status') as "status",
JSON_EXTRACT(properties, '$.startDate') as "start_date",
JSON_EXTRACT(properties, '$.endDate') as "end_date",
billingAccountName,
departmentName,
enrollmentAccountName
FROM azure.billing.enrollment_accounts
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, '$.departmentDisplayName') as "department_display_name",
json_extract_path_text(properties, '$.departmentId') as "department_id",
json_extract_path_text(properties, '$.isDevTestEnabled') as "is_dev_test_enabled",
json_extract_path_text(properties, '$.accountOwner') as "account_owner",
json_extract_path_text(properties, '$.authType') as "auth_type",
json_extract_path_text(properties, '$.status') as "status",
json_extract_path_text(properties, '$.startDate') as "start_date",
json_extract_path_text(properties, '$.endDate') as "end_date",
billingAccountName,
departmentName,
enrollmentAccountName
FROM azure.billing.enrollment_accounts
WHERE billingAccountName = 'replace-me';