vw_reservation_orders
Creates, updates, deletes, gets or lists a vw_reservation_orders
resource.
Overview
Name | vw_reservation_orders |
Type | View |
Id | azure.reservations.vw_reservation_orders |
Fields
See the SQL Definition (view DDL) for fields returned by this view.
SQL Definition
- Sqlite3
- Postgres
SELECT
id as id,
name as name,
etag as etag,
type as type,
systemData as system_data,
JSON_EXTRACT(properties, '$.displayName') as "display_name",
JSON_EXTRACT(properties, '$.requestDateTime') as "request_date_time",
JSON_EXTRACT(properties, '$.createdDateTime') as "created_date_time",
JSON_EXTRACT(properties, '$.expiryDate') as "expiry_date",
JSON_EXTRACT(properties, '$.expiryDateTime') as "expiry_date_time",
JSON_EXTRACT(properties, '$.benefitStartTime') as "benefit_start_time",
JSON_EXTRACT(properties, '$.originalQuantity') as "original_quantity",
JSON_EXTRACT(properties, '$.term') as "term",
JSON_EXTRACT(properties, '$.provisioningState') as "provisioning_state",
JSON_EXTRACT(properties, '$.billingPlan') as "billing_plan",
JSON_EXTRACT(properties, '$.planInformation') as "plan_information",
JSON_EXTRACT(properties, '$.reservations') as "reservations",
JSON_EXTRACT(properties, '$.reviewDateTime') as "review_date_time",
reservationOrderId
FROM azure.reservations.reservation_orders
WHERE reservationOrderId = 'replace-me';
SELECT
id as id,
name as name,
etag as etag,
type as type,
systemData as system_data,
json_extract_path_text(properties, '$.displayName') as "display_name",
json_extract_path_text(properties, '$.requestDateTime') as "request_date_time",
json_extract_path_text(properties, '$.createdDateTime') as "created_date_time",
json_extract_path_text(properties, '$.expiryDate') as "expiry_date",
json_extract_path_text(properties, '$.expiryDateTime') as "expiry_date_time",
json_extract_path_text(properties, '$.benefitStartTime') as "benefit_start_time",
json_extract_path_text(properties, '$.originalQuantity') as "original_quantity",
json_extract_path_text(properties, '$.term') as "term",
json_extract_path_text(properties, '$.provisioningState') as "provisioning_state",
json_extract_path_text(properties, '$.billingPlan') as "billing_plan",
json_extract_path_text(properties, '$.planInformation') as "plan_information",
json_extract_path_text(properties, '$.reservations') as "reservations",
json_extract_path_text(properties, '$.reviewDateTime') as "review_date_time",
reservationOrderId
FROM azure.reservations.reservation_orders
WHERE reservationOrderId = 'replace-me';