@pulumi/yandex
Version:
A Pulumi package for creating and managing yandex cloud resources.
100 lines (99 loc) • 2.68 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
export declare function getComputeImage(args?: GetComputeImageArgs, opts?: pulumi.InvokeOptions): Promise<GetComputeImageResult>;
/**
* A collection of arguments for invoking getComputeImage.
*/
export interface GetComputeImageArgs {
/**
* The family name of an image. Used to search the latest image in a family.
*/
family?: string;
/**
* Folder that the resource belongs to. If value is omitted, the default provider folder is used.
*/
folderId?: string;
/**
* The ID of a specific image.
*/
imageId?: string;
/**
* The name of the image.
*/
name?: string;
}
/**
* A collection of values returned by getComputeImage.
*/
export interface GetComputeImageResult {
/**
* Image creation timestamp.
*/
readonly createdAt: string;
/**
* An optional description of this image.
*/
readonly description: string;
/**
* The OS family name of the image.
*/
readonly family: string;
readonly folderId: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly imageId: string;
/**
* A map of labels applied to this image.
*/
readonly labels: {
[key: string]: string;
};
/**
* Minimum size of the disk which is created from this image.
*/
readonly minDiskSize: number;
readonly name: string;
/**
* Operating system type that the image contains.
*/
readonly osType: string;
/**
* Optimize the image to create a disk.
*/
readonly pooled: boolean;
/**
* License IDs that indicate which licenses are attached to this image.
*/
readonly productIds: string[];
/**
* The size of the image, specified in Gb.
*/
readonly size: number;
/**
* The status of the image.
*/
readonly status: string;
}
export declare function getComputeImageOutput(args?: GetComputeImageOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetComputeImageResult>;
/**
* A collection of arguments for invoking getComputeImage.
*/
export interface GetComputeImageOutputArgs {
/**
* The family name of an image. Used to search the latest image in a family.
*/
family?: pulumi.Input<string>;
/**
* Folder that the resource belongs to. If value is omitted, the default provider folder is used.
*/
folderId?: pulumi.Input<string>;
/**
* The ID of a specific image.
*/
imageId?: pulumi.Input<string>;
/**
* The name of the image.
*/
name?: pulumi.Input<string>;
}