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:
- Gallery
Name string The name of the Shared Image in which the Shared Image exists.
- Image
Name string The name of the Shared Image in which this Version exists.
- Resource
Group stringName The name of the Resource Group in which the Shared Image Gallery exists.
- Dictionary<string, string>
A mapping of tags to filter the list of images against.
- Gallery
Name string The name of the Shared Image in which the Shared Image exists.
- Image
Name string The name of the Shared Image in which this Version exists.
- Resource
Group stringName The name of the Resource Group in which the Shared Image Gallery exists.
- map[string]string
A mapping of tags to filter the list of images against.
- gallery
Name string The name of the Shared Image in which the Shared Image exists.
- image
Name string The name of the Shared Image in which this Version exists.
- resource
Group stringName The name of the Resource Group in which the Shared Image Gallery exists.
- {[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_ strname The name of the Resource Group in which the Shared Image Gallery exists.
- Dict[str, str]
A mapping of tags to filter the list of images against.
GetSharedImageVersions Result
The following output properties are available:
- Gallery
Name string - Id string
The provider-assigned unique ID for this managed resource.
- Image
Name string - Images
List<Get
Shared Image Versions Image> An
imagesblock as defined below:- Resource
Group stringName - Dictionary<string, string>
- Gallery
Name string - Id string
The provider-assigned unique ID for this managed resource.
- Image
Name string - Images
[]Get
Shared Image Versions Image An
imagesblock as defined below:- Resource
Group stringName - map[string]string
- gallery
Name string - id string
The provider-assigned unique ID for this managed resource.
- image
Name string - images
Get
Shared Image Versions Image[] An
imagesblock as defined below:- resource
Group stringName - {[key: string]: string}
- gallery_
name str - id str
The provider-assigned unique ID for this managed resource.
- image_
name str - images
List[Get
Shared Image Versions Image] An
imagesblock as defined below:- resource_
group_ strname - 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.
- Exclude
From boolLatest Is this Image Version excluded from the
latestfilter?- Location string
The supported Azure location where the Shared Image Gallery exists.
- Managed
Image stringId 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.
- Dictionary<string, string>
A mapping of tags assigned to the Shared Image.
- Target
Regions List<GetShared Image Versions Image Target Region Args> One or more
target_regionblocks as documented below.
- Exclude
From boolLatest Is this Image Version excluded from the
latestfilter?- Location string
The supported Azure location where the Shared Image Gallery exists.
- Managed
Image stringId 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.
- map[string]string
A mapping of tags assigned to the Shared Image.
- Target
Regions []GetShared Image Versions Image Target Region One or more
target_regionblocks as documented below.
- exclude
From booleanLatest Is this Image Version excluded from the
latestfilter?- location string
The supported Azure location where the Shared Image Gallery exists.
- managed
Image stringId 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.
- {[key: string]: string}
A mapping of tags assigned to the Shared Image.
- target
Regions GetShared Image Versions Image Target Region[] One or more
target_regionblocks as documented below.
- exclude_
from_ boollatest Is this Image Version excluded from the
latestfilter?- location str
The supported Azure location where the Shared Image Gallery exists.
- managed_
image_ strid 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.
- Dict[str, str]
A mapping of tags assigned to the Shared Image.
- target_
regions List[GetShared Image Versions Image Target Region] One or more
target_regionblocks 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.
- Regional
Replica intCount The number of replicas of the Image Version to be created per region.
- Storage
Account stringType The storage account type for the image version.
- Name string
The Azure Region in which this Image Version exists.
- Regional
Replica intCount The number of replicas of the Image Version to be created per region.
- Storage
Account stringType The storage account type for the image version.
- name string
The Azure Region in which this Image Version exists.
- regional
Replica numberCount The number of replicas of the Image Version to be created per region.
- storage
Account stringType The storage account type for the image version.
- name str
The Azure Region in which this Image Version exists.
- regional
Replica floatCount The number of replicas of the Image Version to be created per region.
- storage_
account_ strtype 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
azurermTerraform Provider.