vw_reservation_order_aliases
Creates, updates, deletes, gets or lists a vw_reservation_order_aliases
resource.
Overview
Name | vw_reservation_order_aliases |
Type | View |
Id | azure.billing_benefits.vw_reservation_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,
location as location,
type as type,
systemData as system_data,
sku as sku,
JSON_EXTRACT(properties, '$.displayName') as "display_name",
JSON_EXTRACT(properties, '$.reservationOrderId') as "reservation_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, '$.quantity') as "quantity",
JSON_EXTRACT(properties, '$.renew') as "renew",
JSON_EXTRACT(properties, '$.reservedResourceType') as "reserved_resource_type",
JSON_EXTRACT(properties, '$.reviewDateTime') as "review_date_time",
JSON_EXTRACT(properties, '$.reservedResourceProperties') as "reserved_resource_properties",
reservationOrderAliasName
FROM azure.billing_benefits.reservation_order_aliases
WHERE reservationOrderAliasName = 'replace-me';
SELECT
id as id,
name as name,
location as location,
type as type,
systemData as system_data,
sku as sku,
json_extract_path_text(properties, '$.displayName') as "display_name",
json_extract_path_text(properties, '$.reservationOrderId') as "reservation_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, '$.quantity') as "quantity",
json_extract_path_text(properties, '$.renew') as "renew",
json_extract_path_text(properties, '$.reservedResourceType') as "reserved_resource_type",
json_extract_path_text(properties, '$.reviewDateTime') as "review_date_time",
json_extract_path_text(properties, '$.reservedResourceProperties') as "reserved_resource_properties",
reservationOrderAliasName
FROM azure.billing_benefits.reservation_order_aliases
WHERE reservationOrderAliasName = 'replace-me';