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

NameDatatypeDescription
cloud_init_data_sourcetextfield from the properties object
container_idtextfield from the properties object
extended_locationtextfield from the properties object
hyper_v_generationtextfield from the properties object
identifiertextfield from the properties object
locationtextThe geo-location where the resource lives
marketplaceGalleryImageNametextfield from the properties object
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
getSELECTmarketplaceGalleryImageName, resourceGroupName, subscriptionIdGets a marketplace gallery image
listSELECTresourceGroupName, subscriptionIdLists 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_updateINSERTmarketplaceGalleryImageName, resourceGroupName, subscriptionIdThe operation to create or update a marketplace gallery image. Please note some properties can be set only during marketplace gallery image creation.
deleteDELETEmarketplaceGalleryImageName, resourceGroupName, subscriptionIdThe operation to delete a marketplace gallery image.
updateUPDATEmarketplaceGalleryImageName, resourceGroupName, subscriptionIdThe operation to update a marketplace gallery image.

SELECT examples

Lists 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.

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

INSERT example

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

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

UPDATE example

Updates a marketplace_gallery_images resource.

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

DELETE example

Deletes the specified marketplace_gallery_images resource.

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