galleries
Creates, updates, deletes, gets or lists a galleries
resource.
Overview
Name | galleries |
Type | Resource |
Id | azure.compute.galleries |
Fields
- vw_galleries
- galleries
Name | Datatype | Description |
---|---|---|
id | text | Resource Id |
name | text | Resource name |
description | text | field from the properties object |
galleryName | text | field from the properties object |
identifier | text | field from the properties object |
location | text | Resource location |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
sharing_profile | text | field from the properties object |
sharing_status | text | field from the properties object |
soft_delete_policy | 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 Shared Image Gallery. |
tags | object | Resource tags |
type | string | Resource type |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | galleryName, resourceGroupName, subscriptionId | Retrieves information about a Shared Image Gallery. |
list | SELECT | subscriptionId | List galleries under a subscription. |
list_by_resource_group | SELECT | resourceGroupName, subscriptionId | List galleries under a resource group. |
create_or_update | INSERT | galleryName, resourceGroupName, subscriptionId | Create or update a Shared Image Gallery. |
delete | DELETE | galleryName, resourceGroupName, subscriptionId | Delete a Shared Image Gallery. |
update | UPDATE | galleryName, resourceGroupName, subscriptionId | Update a Shared Image Gallery. |
SELECT
examples
List galleries under a subscription.
- vw_galleries
- galleries
SELECT
id,
name,
description,
galleryName,
identifier,
location,
provisioning_state,
resourceGroupName,
sharing_profile,
sharing_status,
soft_delete_policy,
subscriptionId,
tags,
type
FROM azure.compute.vw_galleries
WHERE subscriptionId = '{{ subscriptionId }}';
SELECT
id,
name,
location,
properties,
tags,
type
FROM azure.compute.galleries
WHERE subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new galleries
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.compute.galleries (
galleryName,
resourceGroupName,
subscriptionId,
properties,
location,
tags
)
SELECT
'{{ galleryName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ location }}',
'{{ tags }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: description
value: string
- name: identifier
value:
- name: uniqueName
value: string
- name: provisioningState
value: []
- name: sharingProfile
value:
- name: permissions
value: string
- name: groups
value:
- - name: type
value: string
- name: ids
value:
- string
- name: communityGalleryInfo
value:
- name: publisherUri
value: string
- name: publisherContact
value: string
- name: eula
value: string
- name: publicNamePrefix
value: string
- name: communityGalleryEnabled
value: boolean
- name: publicNames
value:
- string
- name: softDeletePolicy
value:
- name: isSoftDeleteEnabled
value: boolean
- name: sharingStatus
value:
- name: aggregatedState
value: []
- name: summary
value:
- - name: region
value: string
- name: details
value: string
- name: id
value: string
- name: name
value: string
- name: type
value: string
- name: location
value: string
- name: tags
value: object
UPDATE
example
Updates a galleries
resource.
/*+ update */
UPDATE azure.compute.galleries
SET
properties = '{{ properties }}',
tags = '{{ tags }}'
WHERE
galleryName = '{{ galleryName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
DELETE
example
Deletes the specified galleries
resource.
/*+ delete */
DELETE FROM azure.compute.galleries
WHERE galleryName = '{{ galleryName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';