vw_savings_plan_order_aliases
Creates, updates, deletes, gets or lists a vw_savings_plan_order_aliases
resource.
Overview
Name | vw_savings_plan_order_aliases |
Type | View |
Id | azure.billing_benefits.vw_savings_plan_order_aliases |
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,
systemData as system_data,
sku as sku,
kind as kind,
JSON_EXTRACT(properties, '$.displayName') as "display_name",
JSON_EXTRACT(properties, '$.savingsPlanOrderId') as "savings_plan_order_id",
JSON_EXTRACT(properties, '$.provisioningState') as "provisioning_state",
JSON_EXTRACT(properties, '$.billingScopeId') as "billing_scope_id",
JSON_EXTRACT(properties, '$.term') as "term",
JSON_EXTRACT(properties, '$.billingPlan') as "billing_plan",
JSON_EXTRACT(properties, '$.appliedScopeType') as "applied_scope_type",
JSON_EXTRACT(properties, '$.appliedScopeProperties') as "applied_scope_properties",
JSON_EXTRACT(properties, '$.commitment') as "commitment",
JSON_EXTRACT(properties, '$.renew') as "renew",
savingsPlanOrderAliasName
FROM azure.billing_benefits.savings_plan_order_aliases
WHERE savingsPlanOrderAliasName = 'replace-me';
SELECT
id as id,
name as name,
type as type,
systemData as system_data,
sku as sku,
kind as kind,
json_extract_path_text(properties, '$.displayName') as "display_name",
json_extract_path_text(properties, '$.savingsPlanOrderId') as "savings_plan_order_id",
json_extract_path_text(properties, '$.provisioningState') as "provisioning_state",
json_extract_path_text(properties, '$.billingScopeId') as "billing_scope_id",
json_extract_path_text(properties, '$.term') as "term",
json_extract_path_text(properties, '$.billingPlan') as "billing_plan",
json_extract_path_text(properties, '$.appliedScopeType') as "applied_scope_type",
json_extract_path_text(properties, '$.appliedScopeProperties') as "applied_scope_properties",
json_extract_path_text(properties, '$.commitment') as "commitment",
json_extract_path_text(properties, '$.renew') as "renew",
savingsPlanOrderAliasName
FROM azure.billing_benefits.savings_plan_order_aliases
WHERE savingsPlanOrderAliasName = 'replace-me';