Skip to main content

gallery_images

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

Overview

Namegallery_images
TypeResource
Idazure.dev_test_labs.gallery_images

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe identifier of the resource.
namestringThe name of the resource.
authorstringThe author of the gallery image.
createdDatestring (date-time)The creation date of the gallery image.
descriptionstringThe description of the gallery image.
enabledbooleanIndicates whether this gallery image is enabled.
iconstringThe icon of the gallery image.
imageReferenceobjectThe image reference of the gallery image.
isPlanAuthorizedbooleanIndicates if the plan has been authorized for programmatic deployment.
locationstringThe location of the resource.
planIdstringThe third party plan that applies to this image.
tagsobjectThe tags of the resource.
typestringThe type of the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectresource_group_name, lab_name, subscription_id$expand, $filter, $top, $orderbyList gallery images in a given lab.

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
lab_namestringThe name of the lab. Required.
resource_group_namestringThe name of the resource group. Required.
subscription_idstring
$expandstringSpecify the $expand query. Example: 'properties($select=author)'. Default value is None.
$filterstringThe filter to apply to the operation. Example: '$filter=contains(name,'myName'). Default value is None.
$orderbystringThe ordering expression for the results, using OData notation. Example: '$orderby=name desc'. Default value is None.
$topintegerThe maximum number of resources to return from the operation. Example: '$top=10'. Default value is None.

SELECT examples

List gallery images in a given lab.

SELECT
id,
name,
author,
createdDate,
description,
enabled,
icon,
imageReference,
isPlanAuthorized,
location,
planId,
tags,
type
FROM azure.dev_test_labs.gallery_images
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND lab_name = '{{ lab_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
AND $expand = '{{ $expand }}'
AND $filter = '{{ $filter }}'
AND $top = '{{ $top }}'
AND $orderby = '{{ $orderby }}'
;