This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.3.0 published on Monday, Apr 28, 2025 by Pulumi
azure-native.compute.getGallery
Explore with Pulumi AI
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.3.0 published on Monday, Apr 28, 2025 by Pulumi
Retrieves information about a Shared Image Gallery.
Uses Azure REST API version 2024-03-03.
Other available API versions: 2022-03-03, 2022-08-03, 2023-07-03. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native compute [ApiVersion]
. See the version guide for details.
Using getGallery
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getGallery(args: GetGalleryArgs, opts?: InvokeOptions): Promise<GetGalleryResult>
function getGalleryOutput(args: GetGalleryOutputArgs, opts?: InvokeOptions): Output<GetGalleryResult>
def get_gallery(expand: Optional[str] = None,
gallery_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
select: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetGalleryResult
def get_gallery_output(expand: Optional[pulumi.Input[str]] = None,
gallery_name: Optional[pulumi.Input[str]] = None,
resource_group_name: Optional[pulumi.Input[str]] = None,
select: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetGalleryResult]
func LookupGallery(ctx *Context, args *LookupGalleryArgs, opts ...InvokeOption) (*LookupGalleryResult, error)
func LookupGalleryOutput(ctx *Context, args *LookupGalleryOutputArgs, opts ...InvokeOption) LookupGalleryResultOutput
> Note: This function is named LookupGallery
in the Go SDK.
public static class GetGallery
{
public static Task<GetGalleryResult> InvokeAsync(GetGalleryArgs args, InvokeOptions? opts = null)
public static Output<GetGalleryResult> Invoke(GetGalleryInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetGalleryResult> getGallery(GetGalleryArgs args, InvokeOptions options)
public static Output<GetGalleryResult> getGallery(GetGalleryArgs args, InvokeOptions options)
fn::invoke:
function: azure-native:compute:getGallery
arguments:
# arguments dictionary
The following arguments are supported:
- Gallery
Name string - The name of the Shared Image Gallery.
- Resource
Group stringName - The name of the resource group.
- Expand string
- The expand query option to apply on the operation.
- Select string
- The select expression to apply on the operation.
- Gallery
Name string - The name of the Shared Image Gallery.
- Resource
Group stringName - The name of the resource group.
- Expand string
- The expand query option to apply on the operation.
- Select string
- The select expression to apply on the operation.
- gallery
Name String - The name of the Shared Image Gallery.
- resource
Group StringName - The name of the resource group.
- expand String
- The expand query option to apply on the operation.
- select String
- The select expression to apply on the operation.
- gallery
Name string - The name of the Shared Image Gallery.
- resource
Group stringName - The name of the resource group.
- expand string
- The expand query option to apply on the operation.
- select string
- The select expression to apply on the operation.
- gallery_
name str - The name of the Shared Image Gallery.
- resource_
group_ strname - The name of the resource group.
- expand str
- The expand query option to apply on the operation.
- select str
- The select expression to apply on the operation.
- gallery
Name String - The name of the Shared Image Gallery.
- resource
Group StringName - The name of the resource group.
- expand String
- The expand query option to apply on the operation.
- select String
- The select expression to apply on the operation.
getGallery Result
The following output properties are available:
- Azure
Api stringVersion - The Azure API version of the resource.
- Id string
- Resource Id
- Location string
- Resource location
- Name string
- Resource name
- Provisioning
State string - The provisioning state, which only appears in the response.
- Pulumi.
Azure Native. Compute. Outputs. Sharing Status Response - Sharing status of current gallery.
- Type string
- Resource type
- Description string
- The description of this Shared Image Gallery resource. This property is updatable.
- Identifier
Pulumi.
Azure Native. Compute. Outputs. Gallery Identifier Response - Describes the gallery unique name.
- Identity
Pulumi.
Azure Native. Compute. Outputs. Gallery Identity Response - The identity of the gallery, if configured.
- Pulumi.
Azure Native. Compute. Outputs. Sharing Profile Response - Profile for gallery sharing to subscription or tenant
- Soft
Delete Pulumi.Policy Azure Native. Compute. Outputs. Soft Delete Policy Response - Contains information about the soft deletion policy of the gallery.
- Dictionary<string, string>
- Resource tags
- Azure
Api stringVersion - The Azure API version of the resource.
- Id string
- Resource Id
- Location string
- Resource location
- Name string
- Resource name
- Provisioning
State string - The provisioning state, which only appears in the response.
- Sharing
Status Response - Sharing status of current gallery.
- Type string
- Resource type
- Description string
- The description of this Shared Image Gallery resource. This property is updatable.
- Identifier
Gallery
Identifier Response - Describes the gallery unique name.
- Identity
Gallery
Identity Response - The identity of the gallery, if configured.
- Sharing
Profile Response - Profile for gallery sharing to subscription or tenant
- Soft
Delete SoftPolicy Delete Policy Response - Contains information about the soft deletion policy of the gallery.
- map[string]string
- Resource tags
- azure
Api StringVersion - The Azure API version of the resource.
- id String
- Resource Id
- location String
- Resource location
- name String
- Resource name
- provisioning
State String - The provisioning state, which only appears in the response.
- Sharing
Status Response - Sharing status of current gallery.
- type String
- Resource type
- description String
- The description of this Shared Image Gallery resource. This property is updatable.
- identifier
Gallery
Identifier Response - Describes the gallery unique name.
- identity
Gallery
Identity Response - The identity of the gallery, if configured.
- Sharing
Profile Response - Profile for gallery sharing to subscription or tenant
- soft
Delete SoftPolicy Delete Policy Response - Contains information about the soft deletion policy of the gallery.
- Map<String,String>
- Resource tags
- azure
Api stringVersion - The Azure API version of the resource.
- id string
- Resource Id
- location string
- Resource location
- name string
- Resource name
- provisioning
State string - The provisioning state, which only appears in the response.
- Sharing
Status Response - Sharing status of current gallery.
- type string
- Resource type
- description string
- The description of this Shared Image Gallery resource. This property is updatable.
- identifier
Gallery
Identifier Response - Describes the gallery unique name.
- identity
Gallery
Identity Response - The identity of the gallery, if configured.
- Sharing
Profile Response - Profile for gallery sharing to subscription or tenant
- soft
Delete SoftPolicy Delete Policy Response - Contains information about the soft deletion policy of the gallery.
- {[key: string]: string}
- Resource tags
- azure_
api_ strversion - The Azure API version of the resource.
- id str
- Resource Id
- location str
- Resource location
- name str
- Resource name
- provisioning_
state str - The provisioning state, which only appears in the response.
- Sharing
Status Response - Sharing status of current gallery.
- type str
- Resource type
- description str
- The description of this Shared Image Gallery resource. This property is updatable.
- identifier
Gallery
Identifier Response - Describes the gallery unique name.
- identity
Gallery
Identity Response - The identity of the gallery, if configured.
- Sharing
Profile Response - Profile for gallery sharing to subscription or tenant
- soft_
delete_ Softpolicy Delete Policy Response - Contains information about the soft deletion policy of the gallery.
- Mapping[str, str]
- Resource tags
- azure
Api StringVersion - The Azure API version of the resource.
- id String
- Resource Id
- location String
- Resource location
- name String
- Resource name
- provisioning
State String - The provisioning state, which only appears in the response.
- Property Map
- Sharing status of current gallery.
- type String
- Resource type
- description String
- The description of this Shared Image Gallery resource. This property is updatable.
- identifier Property Map
- Describes the gallery unique name.
- identity Property Map
- The identity of the gallery, if configured.
- Property Map
- Profile for gallery sharing to subscription or tenant
- soft
Delete Property MapPolicy - Contains information about the soft deletion policy of the gallery.
- Map<String>
- Resource tags
Supporting Types
CommunityGalleryInfoResponse
- Community
Gallery boolEnabled - Contains info about whether community gallery sharing is enabled.
- Public
Names List<string> - Community gallery public name list.
- Eula string
- End-user license agreement for community gallery image.
- Public
Name stringPrefix - The prefix of the gallery name that will be displayed publicly. Visible to all users.
- Publisher
Contact string - Community gallery publisher support email. The email address of the publisher. Visible to all users.
- Publisher
Uri string - The link to the publisher website. Visible to all users.
- Community
Gallery boolEnabled - Contains info about whether community gallery sharing is enabled.
- Public
Names []string - Community gallery public name list.
- Eula string
- End-user license agreement for community gallery image.
- Public
Name stringPrefix - The prefix of the gallery name that will be displayed publicly. Visible to all users.
- Publisher
Contact string - Community gallery publisher support email. The email address of the publisher. Visible to all users.
- Publisher
Uri string - The link to the publisher website. Visible to all users.
- community
Gallery BooleanEnabled - Contains info about whether community gallery sharing is enabled.
- public
Names List<String> - Community gallery public name list.
- eula String
- End-user license agreement for community gallery image.
- public
Name StringPrefix - The prefix of the gallery name that will be displayed publicly. Visible to all users.
- publisher
Contact String - Community gallery publisher support email. The email address of the publisher. Visible to all users.
- publisher
Uri String - The link to the publisher website. Visible to all users.
- community
Gallery booleanEnabled - Contains info about whether community gallery sharing is enabled.
- public
Names string[] - Community gallery public name list.
- eula string
- End-user license agreement for community gallery image.
- public
Name stringPrefix - The prefix of the gallery name that will be displayed publicly. Visible to all users.
- publisher
Contact string - Community gallery publisher support email. The email address of the publisher. Visible to all users.
- publisher
Uri string - The link to the publisher website. Visible to all users.
- community_
gallery_ boolenabled - Contains info about whether community gallery sharing is enabled.
- public_
names Sequence[str] - Community gallery public name list.
- eula str
- End-user license agreement for community gallery image.
- public_
name_ strprefix - The prefix of the gallery name that will be displayed publicly. Visible to all users.
- publisher_
contact str - Community gallery publisher support email. The email address of the publisher. Visible to all users.
- publisher_
uri str - The link to the publisher website. Visible to all users.
- community
Gallery BooleanEnabled - Contains info about whether community gallery sharing is enabled.
- public
Names List<String> - Community gallery public name list.
- eula String
- End-user license agreement for community gallery image.
- public
Name StringPrefix - The prefix of the gallery name that will be displayed publicly. Visible to all users.
- publisher
Contact String - Community gallery publisher support email. The email address of the publisher. Visible to all users.
- publisher
Uri String - The link to the publisher website. Visible to all users.
GalleryIdentifierResponse
- Unique
Name string - The unique name of the Shared Image Gallery. This name is generated automatically by Azure.
- Unique
Name string - The unique name of the Shared Image Gallery. This name is generated automatically by Azure.
- unique
Name String - The unique name of the Shared Image Gallery. This name is generated automatically by Azure.
- unique
Name string - The unique name of the Shared Image Gallery. This name is generated automatically by Azure.
- unique_
name str - The unique name of the Shared Image Gallery. This name is generated automatically by Azure.
- unique
Name String - The unique name of the Shared Image Gallery. This name is generated automatically by Azure.
GalleryIdentityResponse
- Principal
Id string - The principal id of the gallery identity. This property will only be provided for a system assigned identity.
- Tenant
Id string - The AAD tenant id of the gallery identity. This property will only be provided for a system assigned identity.
- Type string
- The type of identity used for the gallery. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user assigned identities. The type 'None' will remove all identities from the gallery.
- User
Assigned Dictionary<string, Pulumi.Identities Azure Native. Compute. Inputs. User Assigned Identities Response User Assigned Identities> - The list of user identities associated with the gallery. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
- Principal
Id string - The principal id of the gallery identity. This property will only be provided for a system assigned identity.
- Tenant
Id string - The AAD tenant id of the gallery identity. This property will only be provided for a system assigned identity.
- Type string
- The type of identity used for the gallery. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user assigned identities. The type 'None' will remove all identities from the gallery.
- User
Assigned map[string]UserIdentities Assigned Identities Response User Assigned Identities - The list of user identities associated with the gallery. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
- principal
Id String - The principal id of the gallery identity. This property will only be provided for a system assigned identity.
- tenant
Id String - The AAD tenant id of the gallery identity. This property will only be provided for a system assigned identity.
- type String
- The type of identity used for the gallery. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user assigned identities. The type 'None' will remove all identities from the gallery.
- user
Assigned Map<String,UserIdentities Assigned Identities Response User Assigned Identities> - The list of user identities associated with the gallery. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
- principal
Id string - The principal id of the gallery identity. This property will only be provided for a system assigned identity.
- tenant
Id string - The AAD tenant id of the gallery identity. This property will only be provided for a system assigned identity.
- type string
- The type of identity used for the gallery. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user assigned identities. The type 'None' will remove all identities from the gallery.
- user
Assigned {[key: string]: UserIdentities Assigned Identities Response User Assigned Identities} - The list of user identities associated with the gallery. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
- principal_
id str - The principal id of the gallery identity. This property will only be provided for a system assigned identity.
- tenant_
id str - The AAD tenant id of the gallery identity. This property will only be provided for a system assigned identity.
- type str
- The type of identity used for the gallery. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user assigned identities. The type 'None' will remove all identities from the gallery.
- user_
assigned_ Mapping[str, Useridentities Assigned Identities Response User Assigned Identities] - The list of user identities associated with the gallery. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
- principal
Id String - The principal id of the gallery identity. This property will only be provided for a system assigned identity.
- tenant
Id String - The AAD tenant id of the gallery identity. This property will only be provided for a system assigned identity.
- type String
- The type of identity used for the gallery. The type 'SystemAssigned, UserAssigned' includes both an implicitly created identity and a set of user assigned identities. The type 'None' will remove all identities from the gallery.
- user
Assigned Map<Property Map>Identities - The list of user identities associated with the gallery. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
RegionalSharingStatusResponse
SharingProfileGroupResponse
SharingProfileResponse
- Groups
List<Pulumi.
Azure Native. Compute. Inputs. Sharing Profile Group Response> - A list of sharing profile groups.
- Community
Gallery Pulumi.Info Azure Native. Compute. Inputs. Community Gallery Info Response - Information of community gallery if current gallery is shared to community.
- Permissions string
- This property allows you to specify the permission of sharing gallery. Possible values are: Private, Groups, Community.
- Groups
[]Sharing
Profile Group Response - A list of sharing profile groups.
- Community
Gallery CommunityInfo Gallery Info Response - Information of community gallery if current gallery is shared to community.
- Permissions string
- This property allows you to specify the permission of sharing gallery. Possible values are: Private, Groups, Community.
- groups
List<Sharing
Profile Group Response> - A list of sharing profile groups.
- community
Gallery CommunityInfo Gallery Info Response - Information of community gallery if current gallery is shared to community.
- permissions String
- This property allows you to specify the permission of sharing gallery. Possible values are: Private, Groups, Community.
- groups
Sharing
Profile Group Response[] - A list of sharing profile groups.
- community
Gallery CommunityInfo Gallery Info Response - Information of community gallery if current gallery is shared to community.
- permissions string
- This property allows you to specify the permission of sharing gallery. Possible values are: Private, Groups, Community.
- groups
Sequence[Sharing
Profile Group Response] - A list of sharing profile groups.
- community_
gallery_ Communityinfo Gallery Info Response - Information of community gallery if current gallery is shared to community.
- permissions str
- This property allows you to specify the permission of sharing gallery. Possible values are: Private, Groups, Community.
- groups List<Property Map>
- A list of sharing profile groups.
- community
Gallery Property MapInfo - Information of community gallery if current gallery is shared to community.
- permissions String
- This property allows you to specify the permission of sharing gallery. Possible values are: Private, Groups, Community.
SharingStatusResponse
- Aggregated
State string - Aggregated sharing state of current gallery.
- Summary
List<Pulumi.
Azure Native. Compute. Inputs. Regional Sharing Status Response> - Summary of all regional sharing status.
- Aggregated
State string - Aggregated sharing state of current gallery.
- Summary
[]Regional
Sharing Status Response - Summary of all regional sharing status.
- aggregated
State String - Aggregated sharing state of current gallery.
- summary
List<Regional
Sharing Status Response> - Summary of all regional sharing status.
- aggregated
State string - Aggregated sharing state of current gallery.
- summary
Regional
Sharing Status Response[] - Summary of all regional sharing status.
- aggregated_
state str - Aggregated sharing state of current gallery.
- summary
Sequence[Regional
Sharing Status Response] - Summary of all regional sharing status.
- aggregated
State String - Aggregated sharing state of current gallery.
- summary List<Property Map>
- Summary of all regional sharing status.
SoftDeletePolicyResponse
- Is
Soft boolDelete Enabled - Enables soft-deletion for resources in this gallery, allowing them to be recovered within retention time.
- Is
Soft boolDelete Enabled - Enables soft-deletion for resources in this gallery, allowing them to be recovered within retention time.
- is
Soft BooleanDelete Enabled - Enables soft-deletion for resources in this gallery, allowing them to be recovered within retention time.
- is
Soft booleanDelete Enabled - Enables soft-deletion for resources in this gallery, allowing them to be recovered within retention time.
- is_
soft_ booldelete_ enabled - Enables soft-deletion for resources in this gallery, allowing them to be recovered within retention time.
- is
Soft BooleanDelete Enabled - Enables soft-deletion for resources in this gallery, allowing them to be recovered within retention time.
UserAssignedIdentitiesResponseUserAssignedIdentities
- Client
Id string - The client id of user assigned identity.
- Principal
Id string - The principal id of user assigned identity.
- Client
Id string - The client id of user assigned identity.
- Principal
Id string - The principal id of user assigned identity.
- client
Id String - The client id of user assigned identity.
- principal
Id String - The principal id of user assigned identity.
- client
Id string - The client id of user assigned identity.
- principal
Id string - The principal id of user assigned identity.
- client_
id str - The client id of user assigned identity.
- principal_
id str - The principal id of user assigned identity.
- client
Id String - The client id of user assigned identity.
- principal
Id String - The principal id of user assigned identity.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.3.0 published on Monday, Apr 28, 2025 by Pulumi