shared_galleries
Creates, updates, deletes, gets or lists a shared_galleries resource.
Overview
| Name | shared_galleries |
| Type | Resource |
| Id | azure.compute.shared_galleries |
Fields
The following fields are returned by SELECT queries:
- get
- list
| Name | Datatype | Description |
|---|---|---|
name | string | Resource name. |
artifactTags | object | The artifact tags of a shared gallery resource. |
identifier | object | The identifier information of shared gallery. |
location | string | Resource location. |
| Name | Datatype | Description |
|---|---|---|
name | string | Resource name. |
artifactTags | object | The artifact tags of a shared gallery resource. |
identifier | object | The identifier information of shared gallery. |
location | string | Resource location. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | location, gallery_unique_name, subscription_id | Get a shared gallery by subscription id or tenant id. | |
list | select | location, subscription_id | sharedTo | List shared galleries by subscription id or tenant id. |
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.
| Name | Datatype | Description |
|---|---|---|
gallery_unique_name | string | The unique name of the Shared Gallery. Required. |
location | string | The name of the Azure region. Required. |
subscription_id | string | |
sharedTo | string | The query parameter to decide what shared galleries to fetch when doing listing operations. "tenant" Default value is None. |
SELECT examples
- get
- list
Get a shared gallery by subscription id or tenant id.
SELECT
name,
artifactTags,
identifier,
location
FROM azure.compute.shared_galleries
WHERE location = '{{ location }}' -- required
AND gallery_unique_name = '{{ gallery_unique_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;
List shared galleries by subscription id or tenant id.
SELECT
name,
artifactTags,
identifier,
location
FROM azure.compute.shared_galleries
WHERE location = '{{ location }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
AND sharedTo = '{{ sharedTo }}'
;