GetSharedImageGallery
Use this data source to access information about an existing Shared Image Gallery.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var example = Output.Create(Azure.Compute.GetSharedImageGallery.InvokeAsync(new Azure.Compute.GetSharedImageGalleryArgs
{
Name = "my-image-gallery",
ResourceGroupName = "example-resources",
}));
}
}
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/compute"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := compute.LookupSharedImageGallery(ctx, &compute.LookupSharedImageGalleryArgs{
Name: "my-image-gallery",
ResourceGroupName: "example-resources",
}, nil)
if err != nil {
return err
}
return nil
})
}import pulumi
import pulumi_azure as azure
example = azure.compute.get_shared_image_gallery(name="my-image-gallery",
resource_group_name="example-resources")import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = pulumi.output(azure.compute.getSharedImageGallery({
name: "my-image-gallery",
resourceGroupName: "example-resources",
}, { async: true }));Using GetSharedImageGallery
function getSharedImageGallery(args: GetSharedImageGalleryArgs, opts?: InvokeOptions): Promise<GetSharedImageGalleryResult>function get_shared_image_gallery(name=None, resource_group_name=None, opts=None)func LookupSharedImageGallery(ctx *Context, args *LookupSharedImageGalleryArgs, opts ...InvokeOption) (*LookupSharedImageGalleryResult, error)Note: This function is named
LookupSharedImageGalleryin the Go SDK.
public static class GetSharedImageGallery {
public static Task<GetSharedImageGalleryResult> InvokeAsync(GetSharedImageGalleryArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- Name string
The name of the Shared Image Gallery.
- Resource
Group stringName The name of the Resource Group in which the Shared Image Gallery exists.
- Name string
The name of the Shared Image Gallery.
- Resource
Group stringName The name of the Resource Group in which the Shared Image Gallery exists.
- name string
The name of the Shared Image Gallery.
- resource
Group stringName The name of the Resource Group in which the Shared Image Gallery exists.
- name str
The name of the Shared Image Gallery.
- resource_
group_ strname The name of the Resource Group in which the Shared Image Gallery exists.
GetSharedImageGallery Result
The following output properties are available:
- Description string
A description for the Shared Image Gallery.
- Id string
The provider-assigned unique ID for this managed resource.
- Location string
- Name string
- Resource
Group stringName - Dictionary<string, string>
A mapping of tags which are assigned to the Shared Image Gallery.
- Unique
Name string The unique name assigned to the Shared Image Gallery.
- Description string
A description for the Shared Image Gallery.
- Id string
The provider-assigned unique ID for this managed resource.
- Location string
- Name string
- Resource
Group stringName - map[string]string
A mapping of tags which are assigned to the Shared Image Gallery.
- Unique
Name string The unique name assigned to the Shared Image Gallery.
- description string
A description for the Shared Image Gallery.
- id string
The provider-assigned unique ID for this managed resource.
- location string
- name string
- resource
Group stringName - {[key: string]: string}
A mapping of tags which are assigned to the Shared Image Gallery.
- unique
Name string The unique name assigned to the Shared Image Gallery.
- description str
A description for the Shared Image Gallery.
- id str
The provider-assigned unique ID for this managed resource.
- location str
- name str
- resource_
group_ strname - Dict[str, str]
A mapping of tags which are assigned to the Shared Image Gallery.
- unique_
name str The unique name assigned to the Shared Image Gallery.
Package Details
- Repository
- https://github.com/pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.