vw_aliases
Creates, updates, deletes, gets or lists a vw_aliases
resource.
Overview
Name | vw_aliases |
Type | View |
Id | azure.subscription.vw_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,
JSON_EXTRACT(properties, '$.subscriptionId') as "subscription_id",
JSON_EXTRACT(properties, '$.displayName') as "display_name",
JSON_EXTRACT(properties, '$.provisioningState') as "provisioning_state",
JSON_EXTRACT(properties, '$.acceptOwnershipUrl') as "accept_ownership_url",
JSON_EXTRACT(properties, '$.acceptOwnershipState') as "accept_ownership_state",
JSON_EXTRACT(properties, '$.billingScope') as "billing_scope",
JSON_EXTRACT(properties, '$.workload') as "workload",
JSON_EXTRACT(properties, '$.resellerId') as "reseller_id",
JSON_EXTRACT(properties, '$.subscriptionOwnerId') as "subscription_owner_id",
JSON_EXTRACT(properties, '$.managementGroupId') as "management_group_id",
JSON_EXTRACT(properties, '$.createdTime') as "created_time",
JSON_EXTRACT(properties, '$.tags') as "tags",
aliasName
FROM azure.subscription.aliases
WHERE aliasName = 'replace-me';
SELECT
id as id,
name as name,
type as type,
systemData as system_data,
json_extract_path_text(properties, '$.subscriptionId') as "subscription_id",
json_extract_path_text(properties, '$.displayName') as "display_name",
json_extract_path_text(properties, '$.provisioningState') as "provisioning_state",
json_extract_path_text(properties, '$.acceptOwnershipUrl') as "accept_ownership_url",
json_extract_path_text(properties, '$.acceptOwnershipState') as "accept_ownership_state",
json_extract_path_text(properties, '$.billingScope') as "billing_scope",
json_extract_path_text(properties, '$.workload') as "workload",
json_extract_path_text(properties, '$.resellerId') as "reseller_id",
json_extract_path_text(properties, '$.subscriptionOwnerId') as "subscription_owner_id",
json_extract_path_text(properties, '$.managementGroupId') as "management_group_id",
json_extract_path_text(properties, '$.createdTime') as "created_time",
json_extract_path_text(properties, '$.tags') as "tags",
aliasName
FROM azure.subscription.aliases
WHERE aliasName = 'replace-me';