Skip to main content

gallery_images

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

Overview

Namegallery_images
TypeResource
Idazure_stack.azure_stack_hci.gallery_images

Fields

NameDatatypeDescription
cloud_init_data_sourcetextfield from the properties object
container_idtextfield from the properties object
extended_locationtextfield from the properties object
galleryImageNametextfield from the properties object
hyper_v_generationtextfield from the properties object
identifiertextfield from the properties object
image_pathtextfield from the properties object
locationtextThe geo-location where the resource lives
os_typetextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
statustextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.
versiontextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTgalleryImageName, resourceGroupName, subscriptionIdGets a gallery image
listSELECTresourceGroupName, subscriptionIdLists all of the gallery images in the specified resource group. Use the nextLink property in the response to get the next page of gallery images.
list_allSELECTsubscriptionIdLists all of the gallery images in the specified subscription. Use the nextLink property in the response to get the next page of gallery images.
create_or_updateINSERTgalleryImageName, resourceGroupName, subscriptionIdThe operation to create or update a gallery image. Please note some properties can be set only during gallery image creation.
deleteDELETEgalleryImageName, resourceGroupName, subscriptionIdThe operation to delete a gallery image.
updateUPDATEgalleryImageName, resourceGroupName, subscriptionIdThe operation to update a gallery image.

SELECT examples

Lists all of the gallery images in the specified subscription. Use the nextLink property in the response to get the next page of gallery images.

SELECT
cloud_init_data_source,
container_id,
extended_location,
galleryImageName,
hyper_v_generation,
identifier,
image_path,
location,
os_type,
provisioning_state,
resourceGroupName,
status,
subscriptionId,
tags,
version
FROM azure_stack.azure_stack_hci.vw_gallery_images
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure_stack.azure_stack_hci.gallery_images (
galleryImageName,
resourceGroupName,
subscriptionId,
properties,
extendedLocation,
tags,
location
)
SELECT
'{{ galleryImageName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ extendedLocation }}',
'{{ tags }}',
'{{ location }}'
;

UPDATE example

Updates a gallery_images resource.

/*+ update */
UPDATE azure_stack.azure_stack_hci.gallery_images
SET
tags = '{{ tags }}'
WHERE
galleryImageName = '{{ galleryImageName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified gallery_images resource.

/*+ delete */
DELETE FROM azure_stack.azure_stack_hci.gallery_images
WHERE galleryImageName = '{{ galleryImageName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';