galleries
Creates, updates, deletes, gets or lists a galleries
resource.
Overview
Name | galleries |
Type | Resource |
Id | azure.dev_center.galleries |
Fields
- vw_galleries
- galleries
Name | Datatype | Description |
---|---|---|
id | text | Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" |
name | text | The name of the resource |
devCenterName | text | field from the properties object |
galleryName | text | field from the properties object |
gallery_resource_id | text | field from the properties object |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
subscriptionId | text | field from the properties object |
system_data | text | field from the properties object |
type | text | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" |
Name | Datatype | Description |
---|---|---|
id | string | Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" |
name | string | The name of the resource |
properties | object | Properties of a gallery. |
systemData | object | Metadata pertaining to creation and last modification of the resource. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | devCenterName, galleryName, resourceGroupName, subscriptionId | Gets a gallery |
list_by_dev_center | SELECT | devCenterName, resourceGroupName, subscriptionId | Lists galleries for a devcenter. |
create_or_update | INSERT | devCenterName, galleryName, resourceGroupName, subscriptionId | Creates or updates a gallery. |
delete | DELETE | devCenterName, galleryName, resourceGroupName, subscriptionId | Deletes a gallery resource. |
SELECT
examples
Lists galleries for a devcenter.
- vw_galleries
- galleries
SELECT
id,
name,
devCenterName,
galleryName,
gallery_resource_id,
provisioning_state,
resourceGroupName,
subscriptionId,
system_data,
type
FROM azure.dev_center.vw_galleries
WHERE devCenterName = '{{ devCenterName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
SELECT
id,
name,
properties,
systemData,
type
FROM azure.dev_center.galleries
WHERE devCenterName = '{{ devCenterName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND 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.dev_center.galleries (
devCenterName,
galleryName,
resourceGroupName,
subscriptionId,
properties
)
SELECT
'{{ devCenterName }}',
'{{ galleryName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: id
value: string
- name: name
value: string
- name: type
value: string
- name: systemData
value:
- name: createdBy
value: string
- name: createdByType
value: string
- name: createdAt
value: string
- name: lastModifiedBy
value: string
- name: lastModifiedByType
value: string
- name: lastModifiedAt
value: string
- name: properties
value:
- name: provisioningState
value: []
- name: galleryResourceId
value: string
DELETE
example
Deletes the specified galleries
resource.
/*+ delete */
DELETE FROM azure.dev_center.galleries
WHERE devCenterName = '{{ devCenterName }}'
AND galleryName = '{{ galleryName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';