azure-native.azurestackhci.getGalleryImage
Explore with Pulumi AI
Gets a gallery image
Uses Azure REST API version 2025-02-01-preview.
Other available API versions: 2022-12-15-preview, 2023-07-01-preview, 2023-09-01-preview, 2024-01-01, 2024-02-01-preview, 2024-05-01-preview, 2024-07-15-preview, 2024-08-01-preview, 2024-10-01-preview, 2025-04-01-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native azurestackhci [ApiVersion]
. See the version guide for details.
Using getGalleryImage
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 getGalleryImage(args: GetGalleryImageArgs, opts?: InvokeOptions): Promise<GetGalleryImageResult>
function getGalleryImageOutput(args: GetGalleryImageOutputArgs, opts?: InvokeOptions): Output<GetGalleryImageResult>
def get_gallery_image(gallery_image_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetGalleryImageResult
def get_gallery_image_output(gallery_image_name: Optional[pulumi.Input[str]] = None,
resource_group_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetGalleryImageResult]
func LookupGalleryImage(ctx *Context, args *LookupGalleryImageArgs, opts ...InvokeOption) (*LookupGalleryImageResult, error)
func LookupGalleryImageOutput(ctx *Context, args *LookupGalleryImageOutputArgs, opts ...InvokeOption) LookupGalleryImageResultOutput
> Note: This function is named LookupGalleryImage
in the Go SDK.
public static class GetGalleryImage
{
public static Task<GetGalleryImageResult> InvokeAsync(GetGalleryImageArgs args, InvokeOptions? opts = null)
public static Output<GetGalleryImageResult> Invoke(GetGalleryImageInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetGalleryImageResult> getGalleryImage(GetGalleryImageArgs args, InvokeOptions options)
public static Output<GetGalleryImageResult> getGalleryImage(GetGalleryImageArgs args, InvokeOptions options)
fn::invoke:
function: azure-native:azurestackhci:getGalleryImage
arguments:
# arguments dictionary
The following arguments are supported:
- Gallery
Image stringName - Name of the gallery image
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Gallery
Image stringName - Name of the gallery image
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- gallery
Image StringName - Name of the gallery image
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- gallery
Image stringName - Name of the gallery image
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- gallery_
image_ strname - Name of the gallery image
- resource_
group_ strname - The name of the resource group. The name is case insensitive.
- gallery
Image StringName - Name of the gallery image
- resource
Group StringName - The name of the resource group. The name is case insensitive.
getGalleryImage Result
The following output properties are available:
- Azure
Api stringVersion - The Azure API version of the resource.
- Id string
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- Location string
- The geo-location where the resource lives
- Name string
- The name of the resource
- Os
Type string - Operating system type that the gallery image uses [Windows, Linux]
- Provisioning
State string - Provisioning state of the gallery image.
- Status
Pulumi.
Azure Native. Azure Stack HCI. Outputs. Gallery Image Status Response - The observed state of gallery images
- System
Data Pulumi.Azure Native. Azure Stack HCI. Outputs. System Data Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Cloud
Init stringData Source - Datasource for the gallery image when provisioning with cloud-init [NoCloud, Azure]
- Container
Id string - Storage ContainerID of the storage container to be used for gallery image
- Extended
Location Pulumi.Azure Native. Azure Stack HCI. Outputs. Extended Location Response - The extendedLocation of the resource.
- Hyper
VGeneration string - The hypervisor generation of the Virtual Machine [V1, V2]
- Identifier
Pulumi.
Azure Native. Azure Stack HCI. Outputs. Gallery Image Identifier Response - This is the gallery image definition identifier.
- Image
Path string - location of the image the gallery image should be created from
- Source
Virtual stringMachine Id - Resource ID of the source virtual machine from whose OS disk the gallery image is created.
- Dictionary<string, string>
- Resource tags.
- Version
Pulumi.
Azure Native. Azure Stack HCI. Outputs. Gallery Image Version Response - Specifies information about the gallery image version that you want to create or update.
- Vm
Image Pulumi.Repository Credentials Azure Native. Azure Stack HCI. Outputs. Vm Image Repository Credentials Response - The credentials used to login to the image repository that has access to the specified image
- Azure
Api stringVersion - The Azure API version of the resource.
- Id string
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- Location string
- The geo-location where the resource lives
- Name string
- The name of the resource
- Os
Type string - Operating system type that the gallery image uses [Windows, Linux]
- Provisioning
State string - Provisioning state of the gallery image.
- Status
Gallery
Image Status Response - The observed state of gallery images
- System
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Cloud
Init stringData Source - Datasource for the gallery image when provisioning with cloud-init [NoCloud, Azure]
- Container
Id string - Storage ContainerID of the storage container to be used for gallery image
- Extended
Location ExtendedLocation Response - The extendedLocation of the resource.
- Hyper
VGeneration string - The hypervisor generation of the Virtual Machine [V1, V2]
- Identifier
Gallery
Image Identifier Response - This is the gallery image definition identifier.
- Image
Path string - location of the image the gallery image should be created from
- Source
Virtual stringMachine Id - Resource ID of the source virtual machine from whose OS disk the gallery image is created.
- map[string]string
- Resource tags.
- Version
Gallery
Image Version Response - Specifies information about the gallery image version that you want to create or update.
- Vm
Image VmRepository Credentials Image Repository Credentials Response - The credentials used to login to the image repository that has access to the specified image
- azure
Api StringVersion - The Azure API version of the resource.
- id String
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- location String
- The geo-location where the resource lives
- name String
- The name of the resource
- os
Type String - Operating system type that the gallery image uses [Windows, Linux]
- provisioning
State String - Provisioning state of the gallery image.
- status
Gallery
Image Status Response - The observed state of gallery images
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- cloud
Init StringData Source - Datasource for the gallery image when provisioning with cloud-init [NoCloud, Azure]
- container
Id String - Storage ContainerID of the storage container to be used for gallery image
- extended
Location ExtendedLocation Response - The extendedLocation of the resource.
- hyper
VGeneration String - The hypervisor generation of the Virtual Machine [V1, V2]
- identifier
Gallery
Image Identifier Response - This is the gallery image definition identifier.
- image
Path String - location of the image the gallery image should be created from
- source
Virtual StringMachine Id - Resource ID of the source virtual machine from whose OS disk the gallery image is created.
- Map<String,String>
- Resource tags.
- version
Gallery
Image Version Response - Specifies information about the gallery image version that you want to create or update.
- vm
Image VmRepository Credentials Image Repository Credentials Response - The credentials used to login to the image repository that has access to the specified image
- azure
Api stringVersion - The Azure API version of the resource.
- id string
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- location string
- The geo-location where the resource lives
- name string
- The name of the resource
- os
Type string - Operating system type that the gallery image uses [Windows, Linux]
- provisioning
State string - Provisioning state of the gallery image.
- status
Gallery
Image Status Response - The observed state of gallery images
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- cloud
Init stringData Source - Datasource for the gallery image when provisioning with cloud-init [NoCloud, Azure]
- container
Id string - Storage ContainerID of the storage container to be used for gallery image
- extended
Location ExtendedLocation Response - The extendedLocation of the resource.
- hyper
VGeneration string - The hypervisor generation of the Virtual Machine [V1, V2]
- identifier
Gallery
Image Identifier Response - This is the gallery image definition identifier.
- image
Path string - location of the image the gallery image should be created from
- source
Virtual stringMachine Id - Resource ID of the source virtual machine from whose OS disk the gallery image is created.
- {[key: string]: string}
- Resource tags.
- version
Gallery
Image Version Response - Specifies information about the gallery image version that you want to create or update.
- vm
Image VmRepository Credentials Image Repository Credentials Response - The credentials used to login to the image repository that has access to the specified image
- azure_
api_ strversion - The Azure API version of the resource.
- id str
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- location str
- The geo-location where the resource lives
- name str
- The name of the resource
- os_
type str - Operating system type that the gallery image uses [Windows, Linux]
- provisioning_
state str - Provisioning state of the gallery image.
- status
Gallery
Image Status Response - The observed state of gallery images
- system_
data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type str
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- cloud_
init_ strdata_ source - Datasource for the gallery image when provisioning with cloud-init [NoCloud, Azure]
- container_
id str - Storage ContainerID of the storage container to be used for gallery image
- extended_
location ExtendedLocation Response - The extendedLocation of the resource.
- hyper_
v_ strgeneration - The hypervisor generation of the Virtual Machine [V1, V2]
- identifier
Gallery
Image Identifier Response - This is the gallery image definition identifier.
- image_
path str - location of the image the gallery image should be created from
- source_
virtual_ strmachine_ id - Resource ID of the source virtual machine from whose OS disk the gallery image is created.
- Mapping[str, str]
- Resource tags.
- version
Gallery
Image Version Response - Specifies information about the gallery image version that you want to create or update.
- vm_
image_ Vmrepository_ credentials Image Repository Credentials Response - The credentials used to login to the image repository that has access to the specified image
- azure
Api StringVersion - The Azure API version of the resource.
- id String
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- location String
- The geo-location where the resource lives
- name String
- The name of the resource
- os
Type String - Operating system type that the gallery image uses [Windows, Linux]
- provisioning
State String - Provisioning state of the gallery image.
- status Property Map
- The observed state of gallery images
- system
Data Property Map - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- cloud
Init StringData Source - Datasource for the gallery image when provisioning with cloud-init [NoCloud, Azure]
- container
Id String - Storage ContainerID of the storage container to be used for gallery image
- extended
Location Property Map - The extendedLocation of the resource.
- hyper
VGeneration String - The hypervisor generation of the Virtual Machine [V1, V2]
- identifier Property Map
- This is the gallery image definition identifier.
- image
Path String - location of the image the gallery image should be created from
- source
Virtual StringMachine Id - Resource ID of the source virtual machine from whose OS disk the gallery image is created.
- Map<String>
- Resource tags.
- version Property Map
- Specifies information about the gallery image version that you want to create or update.
- vm
Image Property MapRepository Credentials - The credentials used to login to the image repository that has access to the specified image
Supporting Types
ExtendedLocationResponse
GalleryImageIdentifierResponse
GalleryImageStatusDownloadStatusResponse
- Download
Size doubleIn MB - The downloaded sized of the image in MB
- Download
Size float64In MB - The downloaded sized of the image in MB
- download
Size DoubleIn MB - The downloaded sized of the image in MB
- download
Size numberIn MB - The downloaded sized of the image in MB
- download_
size_ floatin_ mb - The downloaded sized of the image in MB
- download
Size NumberIn MB - The downloaded sized of the image in MB
GalleryImageStatusProvisioningStatusResponse
- Status string
- The status of the operation performed on the gallery image [Succeeded, Failed, InProgress]
- Operation
Id string - The ID of the operation performed on the gallery image
- Status string
- The status of the operation performed on the gallery image [Succeeded, Failed, InProgress]
- Operation
Id string - The ID of the operation performed on the gallery image
- status String
- The status of the operation performed on the gallery image [Succeeded, Failed, InProgress]
- operation
Id String - The ID of the operation performed on the gallery image
- status string
- The status of the operation performed on the gallery image [Succeeded, Failed, InProgress]
- operation
Id string - The ID of the operation performed on the gallery image
- status str
- The status of the operation performed on the gallery image [Succeeded, Failed, InProgress]
- operation_
id str - The ID of the operation performed on the gallery image
- status String
- The status of the operation performed on the gallery image [Succeeded, Failed, InProgress]
- operation
Id String - The ID of the operation performed on the gallery image
GalleryImageStatusResponse
- Download
Status Pulumi.Azure Native. Azure Stack HCI. Inputs. Gallery Image Status Download Status Response - The download status of the gallery image
- Error
Code string - GalleryImage provisioning error code
- Error
Message string - Descriptive error message
- Progress
Percentage double - The progress of the operation in percentage
- Provisioning
Status Pulumi.Azure Native. Azure Stack HCI. Inputs. Gallery Image Status Provisioning Status Response - provisioning status of the gallery image
- Download
Status GalleryImage Status Download Status Response - The download status of the gallery image
- Error
Code string - GalleryImage provisioning error code
- Error
Message string - Descriptive error message
- Progress
Percentage float64 - The progress of the operation in percentage
- Provisioning
Status GalleryImage Status Provisioning Status Response - provisioning status of the gallery image
- download
Status GalleryImage Status Download Status Response - The download status of the gallery image
- error
Code String - GalleryImage provisioning error code
- error
Message String - Descriptive error message
- progress
Percentage Double - The progress of the operation in percentage
- provisioning
Status GalleryImage Status Provisioning Status Response - provisioning status of the gallery image
- download
Status GalleryImage Status Download Status Response - The download status of the gallery image
- error
Code string - GalleryImage provisioning error code
- error
Message string - Descriptive error message
- progress
Percentage number - The progress of the operation in percentage
- provisioning
Status GalleryImage Status Provisioning Status Response - provisioning status of the gallery image
- download_
status GalleryImage Status Download Status Response - The download status of the gallery image
- error_
code str - GalleryImage provisioning error code
- error_
message str - Descriptive error message
- progress_
percentage float - The progress of the operation in percentage
- provisioning_
status GalleryImage Status Provisioning Status Response - provisioning status of the gallery image
- download
Status Property Map - The download status of the gallery image
- error
Code String - GalleryImage provisioning error code
- error
Message String - Descriptive error message
- progress
Percentage Number - The progress of the operation in percentage
- provisioning
Status Property Map - provisioning status of the gallery image
GalleryImageVersionResponse
- Storage
Profile Pulumi.Azure Native. Azure Stack HCI. Inputs. Gallery Image Version Storage Profile Response - This is the storage profile of a Gallery Image Version.
- Name string
- This is the version of the gallery image.
- Storage
Profile GalleryImage Version Storage Profile Response - This is the storage profile of a Gallery Image Version.
- Name string
- This is the version of the gallery image.
- storage
Profile GalleryImage Version Storage Profile Response - This is the storage profile of a Gallery Image Version.
- name String
- This is the version of the gallery image.
- storage
Profile GalleryImage Version Storage Profile Response - This is the storage profile of a Gallery Image Version.
- name string
- This is the version of the gallery image.
- storage_
profile GalleryImage Version Storage Profile Response - This is the storage profile of a Gallery Image Version.
- name str
- This is the version of the gallery image.
- storage
Profile Property Map - This is the storage profile of a Gallery Image Version.
- name String
- This is the version of the gallery image.
GalleryImageVersionStorageProfileResponse
- Os
Disk Pulumi.Image Azure Native. Azure Stack HCI. Inputs. Gallery OSDisk Image Response - This is the OS disk image.
- Os
Disk GalleryImage OSDisk Image Response - This is the OS disk image.
- os
Disk GalleryImage OSDisk Image Response - This is the OS disk image.
- os
Disk GalleryImage OSDisk Image Response - This is the OS disk image.
- os_
disk_ Galleryimage OSDisk Image Response - This is the OS disk image.
- os
Disk Property MapImage - This is the OS disk image.
GalleryOSDiskImageResponse
- Size
In doubleMB - This property indicates the size of the VHD to be created.
- Size
In float64MB - This property indicates the size of the VHD to be created.
- size
In DoubleMB - This property indicates the size of the VHD to be created.
- size
In numberMB - This property indicates the size of the VHD to be created.
- size_
in_ floatmb - This property indicates the size of the VHD to be created.
- size
In NumberMB - This property indicates the size of the VHD to be created.
SystemDataResponse
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified stringBy Type - The type of identity that last modified the resource.
- created_
at str - The timestamp of resource creation (UTC).
- created_
by str - The identity that created the resource.
- created_
by_ strtype - The type of identity that created the resource.
- last_
modified_ strat - The timestamp of resource last modification (UTC)
- last_
modified_ strby - The identity that last modified the resource.
- last_
modified_ strby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
VmImageRepositoryCredentialsResponse
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0