GetSharedImageVersions

Use this data source to access information about existing Versions of a Shared Image within a Shared Image Gallery.

Example Usage

using Pulumi;
using Azure = Pulumi.Azure;

class MyStack : Stack
{
    public MyStack()
    {
        var example = Output.Create(Azure.Compute.GetSharedImageVersions.InvokeAsync(new Azure.Compute.GetSharedImageVersionsArgs
        {
            GalleryName = "my-image-gallery",
            ImageName = "my-image",
            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.GetSharedImageVersions(ctx, &compute.GetSharedImageVersionsArgs{
            GalleryName:       "my-image-gallery",
            ImageName:         "my-image",
            ResourceGroupName: "example-resources",
        }, nil)
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_azure as azure

example = azure.compute.get_shared_image_versions(gallery_name="my-image-gallery",
    image_name="my-image",
    resource_group_name="example-resources")
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";

const example = pulumi.output(azure.compute.getSharedImageVersions({
    galleryName: "my-image-gallery",
    imageName: "my-image",
    resourceGroupName: "example-resources",
}, { async: true }));

Using GetSharedImageVersions

function getSharedImageVersions(args: GetSharedImageVersionsArgs, opts?: InvokeOptions): Promise<GetSharedImageVersionsResult>
function  get_shared_image_versions(gallery_name=None, image_name=None, resource_group_name=None, tags_filter=None, opts=None)
func GetSharedImageVersions(ctx *Context, args *GetSharedImageVersionsArgs, opts ...InvokeOption) (*GetSharedImageVersionsResult, error)
public static class GetSharedImageVersions {
    public static Task<GetSharedImageVersionsResult> InvokeAsync(GetSharedImageVersionsArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

GalleryName string

The name of the Shared Image in which the Shared Image exists.

ImageName string

The name of the Shared Image in which this Version exists.

ResourceGroupName string

The name of the Resource Group in which the Shared Image Gallery exists.

TagsFilter Dictionary<string, string>

A mapping of tags to filter the list of images against.

GalleryName string

The name of the Shared Image in which the Shared Image exists.

ImageName string

The name of the Shared Image in which this Version exists.

ResourceGroupName string

The name of the Resource Group in which the Shared Image Gallery exists.

TagsFilter map[string]string

A mapping of tags to filter the list of images against.

galleryName string

The name of the Shared Image in which the Shared Image exists.

imageName string

The name of the Shared Image in which this Version exists.

resourceGroupName string

The name of the Resource Group in which the Shared Image Gallery exists.

tagsFilter {[key: string]: string}

A mapping of tags to filter the list of images against.

gallery_name str

The name of the Shared Image in which the Shared Image exists.

image_name str

The name of the Shared Image in which this Version exists.

resource_group_name str

The name of the Resource Group in which the Shared Image Gallery exists.

tags_filter Dict[str, str]

A mapping of tags to filter the list of images against.

GetSharedImageVersions Result

The following output properties are available:

GalleryName string
Id string

The provider-assigned unique ID for this managed resource.

ImageName string
Images List<GetSharedImageVersionsImage>

An images block as defined below:

ResourceGroupName string
TagsFilter Dictionary<string, string>
GalleryName string
Id string

The provider-assigned unique ID for this managed resource.

ImageName string
Images []GetSharedImageVersionsImage

An images block as defined below:

ResourceGroupName string
TagsFilter map[string]string
galleryName string
id string

The provider-assigned unique ID for this managed resource.

imageName string
images GetSharedImageVersionsImage[]

An images block as defined below:

resourceGroupName string
tagsFilter {[key: string]: string}
gallery_name str
id str

The provider-assigned unique ID for this managed resource.

image_name str
images List[GetSharedImageVersionsImage]

An images block as defined below:

resource_group_name str
tags_filter Dict[str, str]

Supporting Types

GetSharedImageVersionsImage

See the output API doc for this type.

See the output API doc for this type.

See the output API doc for this type.

ExcludeFromLatest bool

Is this Image Version excluded from the latest filter?

Location string

The supported Azure location where the Shared Image Gallery exists.

ManagedImageId string

The ID of the Managed Image which was the source of this Shared Image Version.

Name string

The Azure Region in which this Image Version exists.

Tags Dictionary<string, string>

A mapping of tags assigned to the Shared Image.

TargetRegions List<GetSharedImageVersionsImageTargetRegionArgs>

One or more target_region blocks as documented below.

ExcludeFromLatest bool

Is this Image Version excluded from the latest filter?

Location string

The supported Azure location where the Shared Image Gallery exists.

ManagedImageId string

The ID of the Managed Image which was the source of this Shared Image Version.

Name string

The Azure Region in which this Image Version exists.

Tags map[string]string

A mapping of tags assigned to the Shared Image.

TargetRegions []GetSharedImageVersionsImageTargetRegion

One or more target_region blocks as documented below.

excludeFromLatest boolean

Is this Image Version excluded from the latest filter?

location string

The supported Azure location where the Shared Image Gallery exists.

managedImageId string

The ID of the Managed Image which was the source of this Shared Image Version.

name string

The Azure Region in which this Image Version exists.

tags {[key: string]: string}

A mapping of tags assigned to the Shared Image.

targetRegions GetSharedImageVersionsImageTargetRegion[]

One or more target_region blocks as documented below.

exclude_from_latest bool

Is this Image Version excluded from the latest filter?

location str

The supported Azure location where the Shared Image Gallery exists.

managed_image_id str

The ID of the Managed Image which was the source of this Shared Image Version.

name str

The Azure Region in which this Image Version exists.

tags Dict[str, str]

A mapping of tags assigned to the Shared Image.

target_regions List[GetSharedImageVersionsImageTargetRegion]

One or more target_region blocks as documented below.

GetSharedImageVersionsImageTargetRegion

See the output API doc for this type.

See the output API doc for this type.

See the output API doc for this type.

Name string

The Azure Region in which this Image Version exists.

RegionalReplicaCount int

The number of replicas of the Image Version to be created per region.

StorageAccountType string

The storage account type for the image version.

Name string

The Azure Region in which this Image Version exists.

RegionalReplicaCount int

The number of replicas of the Image Version to be created per region.

StorageAccountType string

The storage account type for the image version.

name string

The Azure Region in which this Image Version exists.

regionalReplicaCount number

The number of replicas of the Image Version to be created per region.

storageAccountType string

The storage account type for the image version.

name str

The Azure Region in which this Image Version exists.

regionalReplicaCount float

The number of replicas of the Image Version to be created per region.

storage_account_type str

The storage account type for the image version.

Package Details

Repository
https://github.com/pulumi/pulumi-azure
License
Apache-2.0
Notes
This Pulumi package is based on the azurerm Terraform Provider.