GetSharedImageVersion
Use this data source to access information about an existing Version 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.GetSharedImageVersion.InvokeAsync(new Azure.Compute.GetSharedImageVersionArgs
{
GalleryName = "my-image-gallery",
ImageName = "my-image",
Name = "1.0.0",
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.LookupSharedImageVersion(ctx, &compute.LookupSharedImageVersionArgs{
GalleryName: "my-image-gallery",
ImageName: "my-image",
Name: "1.0.0",
ResourceGroupName: "example-resources",
}, nil)
if err != nil {
return err
}
return nil
})
}import pulumi
import pulumi_azure as azure
example = azure.compute.get_shared_image_version(gallery_name="my-image-gallery",
image_name="my-image",
name="1.0.0",
resource_group_name="example-resources")import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = pulumi.output(azure.compute.getSharedImageVersion({
galleryName: "my-image-gallery",
imageName: "my-image",
name: "1.0.0",
resourceGroupName: "example-resources",
}, { async: true }));Using GetSharedImageVersion
function getSharedImageVersion(args: GetSharedImageVersionArgs, opts?: InvokeOptions): Promise<GetSharedImageVersionResult>function get_shared_image_version(gallery_name=None, image_name=None, name=None, resource_group_name=None, opts=None)func LookupSharedImageVersion(ctx *Context, args *LookupSharedImageVersionArgs, opts ...InvokeOption) (*LookupSharedImageVersionResult, error)Note: This function is named
LookupSharedImageVersionin the Go SDK.
public static class GetSharedImageVersion {
public static Task<GetSharedImageVersionResult> InvokeAsync(GetSharedImageVersionArgs 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.
- Name string
The name of the Image Version.
- Resource
Group stringName The name of the Resource Group in which the Shared Image Gallery exists.
- 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.
- Name string
The name of the Image Version.
- Resource
Group stringName The name of the Resource Group in which the Shared Image Gallery exists.
- 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.
- name string
The name of the Image Version.
- resource
Group stringName The name of the Resource Group in which the Shared Image Gallery exists.
- 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.
- name str
The name of the Image Version.
- resource_
group_ strname The name of the Resource Group in which the Shared Image Gallery exists.
GetSharedImageVersion Result
The following output properties are available:
- Exclude
From boolLatest Is this Image Version excluded from the
latestfilter?- Gallery
Name string - Id string
The provider-assigned unique ID for this managed resource.
- Image
Name string - 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.
- Resource
Group stringName - Dictionary<string, string>
A mapping of tags assigned to the Shared Image.
- Target
Regions List<GetShared Image Version Target Region> One or more
target_regionblocks as documented below.
- Exclude
From boolLatest Is this Image Version excluded from the
latestfilter?- Gallery
Name string - Id string
The provider-assigned unique ID for this managed resource.
- Image
Name string - 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.
- Resource
Group stringName - map[string]string
A mapping of tags assigned to the Shared Image.
- Target
Regions []GetShared Image Version Target Region One or more
target_regionblocks as documented below.
- exclude
From booleanLatest Is this Image Version excluded from the
latestfilter?- gallery
Name string - id string
The provider-assigned unique ID for this managed resource.
- image
Name string - 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.
- resource
Group stringName - {[key: string]: string}
A mapping of tags assigned to the Shared Image.
- target
Regions GetShared Image Version Target Region[] One or more
target_regionblocks as documented below.
- exclude_
from_ boollatest Is this Image Version excluded from the
latestfilter?- gallery_
name str - id str
The provider-assigned unique ID for this managed resource.
- image_
name str - 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.
- resource_
group_ strname - Dict[str, str]
A mapping of tags assigned to the Shared Image.
- target_
regions List[GetShared Image Version Target Region] One or more
target_regionblocks as documented below.
Supporting Types
GetSharedImageVersionTargetRegion
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 name of the Image Version.
- 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 name of the Image Version.
- 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 name of the Image Version.
- 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 name of the Image Version.
- 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.