vw_offers
Creates, updates, deletes, gets or lists a vw_offers
resource.
Overview
Name | vw_offers |
Type | View |
Id | azure_stack.subscriptions_admin.vw_offers |
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,
tags as tags,
JSON_EXTRACT(properties, '$.name') as "name",
JSON_EXTRACT(properties, '$.displayName') as "display_name",
JSON_EXTRACT(properties, '$.description') as "description",
JSON_EXTRACT(properties, '$.externalReferenceId') as "external_reference_id",
JSON_EXTRACT(properties, '$.state') as "state",
JSON_EXTRACT(properties, '$.subscriptionCount') as "subscription_count",
JSON_EXTRACT(properties, '$.maxSubscriptionsPerAccount') as "max_subscriptions_per_account",
JSON_EXTRACT(properties, '$.basePlanIds') as "base_plan_ids",
JSON_EXTRACT(properties, '$.addonPlans') as "addon_plans",
subscriptionId,
resourceGroupName,
offer
FROM azure_stack.subscriptions_admin.offers
WHERE subscriptionId = 'replace-me';
SELECT
id as id,
name as name,
location as location,
type as type,
tags as tags,
json_extract_path_text(properties, '$.name') as "name",
json_extract_path_text(properties, '$.displayName') as "display_name",
json_extract_path_text(properties, '$.description') as "description",
json_extract_path_text(properties, '$.externalReferenceId') as "external_reference_id",
json_extract_path_text(properties, '$.state') as "state",
json_extract_path_text(properties, '$.subscriptionCount') as "subscription_count",
json_extract_path_text(properties, '$.maxSubscriptionsPerAccount') as "max_subscriptions_per_account",
json_extract_path_text(properties, '$.basePlanIds') as "base_plan_ids",
json_extract_path_text(properties, '$.addonPlans') as "addon_plans",
subscriptionId,
resourceGroupName,
offer
FROM azure_stack.subscriptions_admin.offers
WHERE subscriptionId = 'replace-me';