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

The following fields are returned by SELECT queries:

NameDatatypeDescription
extendedLocationobjectThe extendedLocation of the resource.
locationstringThe geo-location where the resource lives
propertiesobjectProperties under the gallery image resource
tagsobjectResource tags.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, galleryImageNameGets a gallery image
listselectsubscriptionId, resourceGroupNameLists 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_updateinsertsubscriptionId, resourceGroupName, galleryImageNameThe operation to create or update a gallery image. Please note some properties can be set only during gallery image creation.
updateupdatesubscriptionId, resourceGroupName, galleryImageNameThe operation to update a gallery image.
deletedeletesubscriptionId, resourceGroupName, galleryImageNameThe operation to delete a gallery image.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
galleryImageNamestringName of the gallery image
resourceGroupNamestringThe name of the resource group. The name is case insensitive.
subscriptionIdstring (uuid)The ID of the target subscription. The value must be an UUID.

SELECT examples

Gets a gallery image

SELECT
extendedLocation,
location,
properties,
tags
FROM azure_stack.azure_stack_hci.gallery_images
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND resourceGroupName = '{{ resourceGroupName }}' -- required
AND galleryImageName = '{{ galleryImageName }}' -- required
;

INSERT examples

The operation to create or update a gallery image. Please note some properties can be set only during gallery image creation.

INSERT INTO azure_stack.azure_stack_hci.gallery_images (
data__properties,
data__extendedLocation,
data__tags,
data__location,
subscriptionId,
resourceGroupName,
galleryImageName
)
SELECT
'{{ properties }}',
'{{ extendedLocation }}',
'{{ tags }}',
'{{ location }}',
'{{ subscriptionId }}',
'{{ resourceGroupName }}',
'{{ galleryImageName }}'
RETURNING
extendedLocation,
location,
properties,
tags
;

UPDATE examples

The operation to update a gallery image.

UPDATE azure_stack.azure_stack_hci.gallery_images
SET
data__tags = '{{ tags }}'
WHERE
subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND galleryImageName = '{{ galleryImageName }}' --required
RETURNING
extendedLocation,
location,
properties,
tags;

DELETE examples

The operation to delete a gallery image.

DELETE FROM azure_stack.azure_stack_hci.gallery_images
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND resourceGroupName = '{{ resourceGroupName }}' --required
AND galleryImageName = '{{ galleryImageName }}' --required
;