Skip to main content

images

Creates, updates, deletes, gets or lists a images resource.

Overview

Nameimages
TypeResource
Idazure.sphere.images

Fields

NameDatatypeDescription
descriptiontextfield from the properties object
catalogNametextfield from the properties object
component_idtextfield from the properties object
imagetextfield from the properties object
imageNametextfield from the properties object
image_idtextfield from the properties object
image_nametextfield from the properties object
image_typetextfield from the properties object
provisioning_statetextfield from the properties object
regional_data_boundarytextfield from the properties object
resourceGroupNametextfield from the properties object
subscriptionIdtextfield from the properties object
uritextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTcatalogName, imageName, resourceGroupName, subscriptionIdGet a Image
list_by_catalogSELECTcatalogName, resourceGroupName, subscriptionIdList Image resources by Catalog
create_or_updateINSERTcatalogName, imageName, resourceGroupName, subscriptionIdCreate a Image
deleteDELETEcatalogName, imageName, resourceGroupName, subscriptionIdDelete a Image

SELECT examples

List Image resources by Catalog

SELECT
description,
catalogName,
component_id,
image,
imageName,
image_id,
image_name,
image_type,
provisioning_state,
regional_data_boundary,
resourceGroupName,
subscriptionId,
uri
FROM azure.sphere.vw_images
WHERE catalogName = '{{ catalogName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new images resource.

/*+ create */
INSERT INTO azure.sphere.images (
catalogName,
imageName,
resourceGroupName,
subscriptionId,
properties
)
SELECT
'{{ catalogName }}',
'{{ imageName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;

DELETE example

Deletes the specified images resource.

/*+ delete */
DELETE FROM azure.sphere.images
WHERE catalogName = '{{ catalogName }}'
AND imageName = '{{ imageName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';