Skip to main content

marketplace_gallery_images

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

Overview

Namemarketplace_gallery_images
TypeResource
Idazure_stack.azure_stack_hci.marketplace_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 marketplace gallery image resource
tagsobjectResource tags.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, resourceGroupName, marketplaceGalleryImageNameGets a marketplace gallery image
listselectsubscriptionId, resourceGroupNameLists all of the marketplace gallery images in the specified resource group. Use the nextLink property in the response to get the next page of marketplace gallery images.
list_allselectsubscriptionIdLists all of the marketplace gallery images in the specified subscription. Use the nextLink property in the response to get the next page of marketplace gallery images.
create_or_updateinsertsubscriptionId, resourceGroupName, marketplaceGalleryImageNameThe operation to create or update a marketplace gallery image. Please note some properties can be set only during marketplace gallery image creation.
updateupdatesubscriptionId, resourceGroupName, marketplaceGalleryImageNameThe operation to update a marketplace gallery image.
deletedeletesubscriptionId, resourceGroupName, marketplaceGalleryImageNameThe operation to delete a marketplace 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
marketplaceGalleryImageNamestringName of the marketplace 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 marketplace gallery image

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

INSERT examples

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

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

UPDATE examples

The operation to update a marketplace gallery image.

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

DELETE examples

The operation to delete a marketplace gallery image.

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