vw_updates
Creates, updates, deletes, gets or lists a vw_updates
resource.
Overview
Name | vw_updates |
Type | View |
Id | azure_stack.update_admin.vw_updates |
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, '$.displayName') as "display_name",
JSON_EXTRACT(properties, '$.description') as "description",
JSON_EXTRACT(properties, '$.version') as "version",
JSON_EXTRACT(properties, '$.oemVersion') as "oem_version",
JSON_EXTRACT(properties, '$.state') as "state",
JSON_EXTRACT(properties, '$.availabilityType') as "availability_type",
JSON_EXTRACT(properties, '$.releaseLink') as "release_link",
JSON_EXTRACT(properties, '$.packagePath') as "package_path",
JSON_EXTRACT(properties, '$.packageSizeInMb') as "package_size_in_mb",
JSON_EXTRACT(properties, '$.publisher') as "publisher",
JSON_EXTRACT(properties, '$.packageType') as "package_type",
JSON_EXTRACT(properties, '$.updatePrerequisites') as "update_prerequisites",
JSON_EXTRACT(properties, '$.updateStateProperties') as "update_state_properties",
JSON_EXTRACT(properties, '$.additionalProperties') as "additional_properties",
JSON_EXTRACT(properties, '$.kbLink') as "kb_link",
JSON_EXTRACT(properties, '$.minVersionRequired') as "min_version_required",
JSON_EXTRACT(properties, '$.minOemVersionRequired') as "min_oem_version_required",
JSON_EXTRACT(properties, '$.installedDate') as "installed_date",
subscriptionId,
resourceGroupName,
updateLocation,
updateName
FROM azure_stack.update_admin.updates
WHERE subscriptionId = 'replace-me' AND resourceGroupName = 'replace-me' AND updateLocation = 'replace-me';
SELECT
id as id,
name as name,
location as location,
type as type,
tags as tags,
json_extract_path_text(properties, '$.displayName') as "display_name",
json_extract_path_text(properties, '$.description') as "description",
json_extract_path_text(properties, '$.version') as "version",
json_extract_path_text(properties, '$.oemVersion') as "oem_version",
json_extract_path_text(properties, '$.state') as "state",
json_extract_path_text(properties, '$.availabilityType') as "availability_type",
json_extract_path_text(properties, '$.releaseLink') as "release_link",
json_extract_path_text(properties, '$.packagePath') as "package_path",
json_extract_path_text(properties, '$.packageSizeInMb') as "package_size_in_mb",
json_extract_path_text(properties, '$.publisher') as "publisher",
json_extract_path_text(properties, '$.packageType') as "package_type",
json_extract_path_text(properties, '$.updatePrerequisites') as "update_prerequisites",
json_extract_path_text(properties, '$.updateStateProperties') as "update_state_properties",
json_extract_path_text(properties, '$.additionalProperties') as "additional_properties",
json_extract_path_text(properties, '$.kbLink') as "kb_link",
json_extract_path_text(properties, '$.minVersionRequired') as "min_version_required",
json_extract_path_text(properties, '$.minOemVersionRequired') as "min_oem_version_required",
json_extract_path_text(properties, '$.installedDate') as "installed_date",
subscriptionId,
resourceGroupName,
updateLocation,
updateName
FROM azure_stack.update_admin.updates
WHERE subscriptionId = 'replace-me' AND resourceGroupName = 'replace-me' AND updateLocation = 'replace-me';