vw_agreements
Creates, updates, deletes, gets or lists a vw_agreements
resource.
Overview
Name | vw_agreements |
Type | View |
Id | azure.billing.vw_agreements |
Fields
See the SQL Definition (view DDL) for fields returned by this view.
SQL Definition
- Sqlite3
- Postgres
SELECT
tags as tags,
JSON_EXTRACT(properties, '$.acceptanceMode') as "acceptance_mode",
JSON_EXTRACT(properties, '$.agreementLink') as "agreement_link",
JSON_EXTRACT(properties, '$.billingProfileInfo') as "billing_profile_info",
JSON_EXTRACT(properties, '$.category') as "category",
JSON_EXTRACT(properties, '$.displayName') as "display_name",
JSON_EXTRACT(properties, '$.effectiveDate') as "effective_date",
JSON_EXTRACT(properties, '$.expirationDate') as "expiration_date",
JSON_EXTRACT(properties, '$.participants') as "participants",
JSON_EXTRACT(properties, '$.status') as "status",
JSON_EXTRACT(properties, '$.leadBillingAccountName') as "lead_billing_account_name",
billingAccountName,
agreementName
FROM azure.billing.agreements
WHERE billingAccountName = 'replace-me';
SELECT
tags as tags,
json_extract_path_text(properties, '$.acceptanceMode') as "acceptance_mode",
json_extract_path_text(properties, '$.agreementLink') as "agreement_link",
json_extract_path_text(properties, '$.billingProfileInfo') as "billing_profile_info",
json_extract_path_text(properties, '$.category') as "category",
json_extract_path_text(properties, '$.displayName') as "display_name",
json_extract_path_text(properties, '$.effectiveDate') as "effective_date",
json_extract_path_text(properties, '$.expirationDate') as "expiration_date",
json_extract_path_text(properties, '$.participants') as "participants",
json_extract_path_text(properties, '$.status') as "status",
json_extract_path_text(properties, '$.leadBillingAccountName') as "lead_billing_account_name",
billingAccountName,
agreementName
FROM azure.billing.agreements
WHERE billingAccountName = 'replace-me';