@pulumi/azure-native
Version:
[](https://slack.pulumi.com) [](https://npmjs.com/package/@pulumi/azure-native) [ • 5.41 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
* Retrieves information about a gallery image definition.
*
* Uses Azure REST API version 2024-03-03.
*
* Other available API versions: 2022-03-03, 2022-08-03, 2023-07-03. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native compute [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details.
*/
export declare function getGalleryImage(args: GetGalleryImageArgs, opts?: pulumi.InvokeOptions): Promise<GetGalleryImageResult>;
export interface GetGalleryImageArgs {
/**
* The name of the gallery image definition to be retrieved.
*/
galleryImageName: string;
/**
* The name of the Shared Image Gallery.
*/
galleryName: string;
/**
* The name of the resource group. The name is case insensitive.
*/
resourceGroupName: string;
}
/**
* Specifies information about the gallery image definition that you want to create or update.
*/
export interface GetGalleryImageResult {
/**
* Optional. Must be set to true if the gallery image features are being updated.
*/
readonly allowUpdateImage?: boolean;
/**
* The architecture of the image. Applicable to OS disks only.
*/
readonly architecture?: string;
/**
* The Azure API version of the resource.
*/
readonly azureApiVersion: string;
/**
* The description of this gallery image definition resource. This property is updatable.
*/
readonly description?: string;
/**
* Describes the disallowed disk types.
*/
readonly disallowed?: outputs.compute.DisallowedResponse;
/**
* The end of life date of the gallery image definition. This property can be used for decommissioning purposes. This property is updatable.
*/
readonly endOfLifeDate?: string;
/**
* The Eula agreement for the gallery image definition.
*/
readonly eula?: string;
/**
* A list of gallery image features.
*/
readonly features?: outputs.compute.GalleryImageFeatureResponse[];
/**
* The hypervisor generation of the Virtual Machine. Applicable to OS disks only.
*/
readonly hyperVGeneration?: string;
/**
* Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
*/
readonly id: string;
/**
* This is the gallery image definition identifier.
*/
readonly identifier: outputs.compute.GalleryImageIdentifierResponse;
/**
* The geo-location where the resource lives
*/
readonly location: string;
/**
* The name of the resource
*/
readonly name: string;
/**
* This property allows the user to specify whether the virtual machines created under this image are 'Generalized' or 'Specialized'.
*/
readonly osState: string;
/**
* This property allows you to specify the type of the OS that is included in the disk when creating a VM from a managed image. Possible values are: **Windows,** **Linux.**
*/
readonly osType: string;
/**
* The privacy statement uri.
*/
readonly privacyStatementUri?: string;
/**
* The provisioning state, which only appears in the response.
*/
readonly provisioningState: string;
/**
* Describes the gallery image definition purchase plan. This is used by marketplace images.
*/
readonly purchasePlan?: outputs.compute.ImagePurchasePlanResponse;
/**
* The properties describe the recommended machine configuration for this Image Definition. These properties are updatable.
*/
readonly recommended?: outputs.compute.RecommendedMachineConfigurationResponse;
/**
* The release note uri.
*/
readonly releaseNoteUri?: string;
/**
* Azure Resource Manager metadata containing createdBy and modifiedBy information.
*/
readonly systemData: outputs.compute.SystemDataResponse;
/**
* Resource tags.
*/
readonly tags?: {
[key: string]: string;
};
/**
* The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
*/
readonly type: string;
}
/**
* Retrieves information about a gallery image definition.
*
* Uses Azure REST API version 2024-03-03.
*
* Other available API versions: 2022-03-03, 2022-08-03, 2023-07-03. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native compute [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details.
*/
export declare function getGalleryImageOutput(args: GetGalleryImageOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetGalleryImageResult>;
export interface GetGalleryImageOutputArgs {
/**
* The name of the gallery image definition to be retrieved.
*/
galleryImageName: pulumi.Input<string>;
/**
* The name of the Shared Image Gallery.
*/
galleryName: pulumi.Input<string>;
/**
* The name of the resource group. The name is case insensitive.
*/
resourceGroupName: pulumi.Input<string>;
}