gallery_images
Creates, updates, deletes, gets or lists a gallery_images
resource.
Overview
Name | gallery_images |
Type | Resource |
Id | azure.compute.gallery_images |
Fields
- vw_gallery_images
- gallery_images
Name | Datatype | Description |
---|---|---|
id | text | Resource Id |
name | text | Resource name |
description | text | field from the properties object |
architecture | text | field from the properties object |
disallowed | text | field from the properties object |
end_of_life_date | text | field from the properties object |
eula | text | field from the properties object |
features | text | field from the properties object |
galleryImageName | text | field from the properties object |
galleryName | text | field from the properties object |
hyper_v_generation | text | field from the properties object |
identifier | text | field from the properties object |
location | text | Resource location |
os_state | text | field from the properties object |
os_type | text | field from the properties object |
privacy_statement_uri | text | field from the properties object |
provisioning_state | text | field from the properties object |
purchase_plan | text | field from the properties object |
recommended | text | field from the properties object |
release_note_uri | text | field from the properties object |
resourceGroupName | text | field from the properties object |
subscriptionId | text | field from the properties object |
tags | text | Resource tags |
type | text | Resource type |
Name | Datatype | Description |
---|---|---|
id | string | Resource Id |
name | string | Resource name |
location | string | Resource location |
properties | object | Describes the properties of a gallery image definition. |
tags | object | Resource tags |
type | string | Resource type |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | galleryImageName, galleryName, resourceGroupName, subscriptionId | Retrieves information about a gallery image definition. |
list_by_gallery | SELECT | galleryName, resourceGroupName, subscriptionId | List gallery image definitions in a gallery. |
create_or_update | INSERT | galleryImageName, galleryName, resourceGroupName, subscriptionId | Create or update a gallery image definition. |
delete | DELETE | galleryImageName, galleryName, resourceGroupName, subscriptionId | Delete a gallery image. |
update | UPDATE | galleryImageName, galleryName, resourceGroupName, subscriptionId | Update a gallery image definition. |
SELECT
examples
List gallery image definitions in a gallery.
- vw_gallery_images
- gallery_images
SELECT
id,
name,
description,
architecture,
disallowed,
end_of_life_date,
eula,
features,
galleryImageName,
galleryName,
hyper_v_generation,
identifier,
location,
os_state,
os_type,
privacy_statement_uri,
provisioning_state,
purchase_plan,
recommended,
release_note_uri,
resourceGroupName,
subscriptionId,
tags,
type
FROM azure.compute.vw_gallery_images
WHERE galleryName = '{{ galleryName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
SELECT
id,
name,
location,
properties,
tags,
type
FROM azure.compute.gallery_images
WHERE galleryName = '{{ galleryName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new gallery_images
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.compute.gallery_images (
galleryImageName,
galleryName,
resourceGroupName,
subscriptionId,
properties,
location,
tags
)
SELECT
'{{ galleryImageName }}',
'{{ galleryName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ location }}',
'{{ tags }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: description
value: string
- name: eula
value: string
- name: privacyStatementUri
value: string
- name: releaseNoteUri
value: string
- name: osType
value: string
- name: osState
value: string
- name: hyperVGeneration
value: string
- name: endOfLifeDate
value: string
- name: identifier
value:
- name: publisher
value: string
- name: offer
value: string
- name: sku
value: string
- name: recommended
value:
- name: vCPUs
value:
- name: min
value: integer
- name: max
value: integer
- name: disallowed
value:
- name: diskTypes
value:
- string
- name: purchasePlan
value:
- name: name
value: string
- name: publisher
value: string
- name: product
value: string
- name: provisioningState
value: []
- name: features
value:
- - name: name
value: string
- name: value
value: string
- name: architecture
value: []
- name: id
value: string
- name: name
value: string
- name: type
value: string
- name: location
value: string
- name: tags
value: object
UPDATE
example
Updates a gallery_images
resource.
/*+ update */
UPDATE azure.compute.gallery_images
SET
properties = '{{ properties }}',
tags = '{{ tags }}'
WHERE
galleryImageName = '{{ galleryImageName }}'
AND galleryName = '{{ galleryName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
DELETE
example
Deletes the specified gallery_images
resource.
/*+ delete */
DELETE FROM azure.compute.gallery_images
WHERE galleryImageName = '{{ galleryImageName }}'
AND galleryName = '{{ galleryName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';