import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * This data source provides the list of Images in Oracle Cloud Infrastructure Core service. * * Lists a subset of images available in the specified compartment, including * [platform images](https://docs.cloud.oracle.com/iaas/Content/Compute/References/images.htm) and * [custom images](https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/managingcustomimages.htm). * The list of platform images includes the three most recently published versions * of each major distribution. The list does not support filtering based on image tags. * * The list of images returned is ordered to first show the recent platform images, * then all of the custom images. * * **Caution:** Platform images are refreshed regularly. When new images are released, older versions are replaced. * The image OCIDs remain available, but when the platform image is replaced, the image OCIDs are no longer returned as part of the platform image list. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testImages = oci.core.getImages({ * compartmentId: compartmentId, * displayName: imageDisplayName, * operatingSystem: imageOperatingSystem, * operatingSystemVersion: imageOperatingSystemVersion, * shape: imageShape, * state: imageState, * sortBy: imageSortBy, * sortOrder: imageSortOrder, * }); * ``` */ export declare function getImages(args: GetImagesArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getImages. */ export interface GetImagesArgs { /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. */ compartmentId: string; /** * A filter to return only resources that match the given display name exactly. */ displayName?: string; filters?: inputs.Core.GetImagesFilter[]; /** * The image's operating system. Example: `Oracle Linux` */ operatingSystem?: string; /** * The image's operating system version. Example: `7.2` */ operatingSystemVersion?: string; /** * Shape name. */ shape?: string; /** * Sort the resources returned, by creation time or display name. Example `TIMECREATED` or `DISPLAYNAME`. */ sortBy?: string; /** * The sort order to use, either ascending (`ASC`) or descending (`DESC`). */ sortOrder?: string; /** * A filter to only return resources that match the given lifecycle state. The state value is case-insensitive. */ state?: string; } /** * A collection of values returned by getImages. */ export interface GetImagesResult { /** * The OCID of the compartment containing the instance you want to use as the basis for the image. */ readonly compartmentId: string; /** * A user-friendly name for the image. It does not have to be unique, and it's changeable. Avoid entering confidential information. */ readonly displayName?: string; readonly filters?: outputs.Core.GetImagesFilter[]; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * The list of images. */ readonly images: outputs.Core.GetImagesImage[]; /** * The image's operating system. Example: `Oracle Linux` */ readonly operatingSystem?: string; /** * The image's operating system version. Example: `7.2` */ readonly operatingSystemVersion?: string; readonly shape?: string; readonly sortBy?: string; readonly sortOrder?: string; /** * The current state of the image. */ readonly state?: string; } /** * This data source provides the list of Images in Oracle Cloud Infrastructure Core service. * * Lists a subset of images available in the specified compartment, including * [platform images](https://docs.cloud.oracle.com/iaas/Content/Compute/References/images.htm) and * [custom images](https://docs.cloud.oracle.com/iaas/Content/Compute/Tasks/managingcustomimages.htm). * The list of platform images includes the three most recently published versions * of each major distribution. The list does not support filtering based on image tags. * * The list of images returned is ordered to first show the recent platform images, * then all of the custom images. * * **Caution:** Platform images are refreshed regularly. When new images are released, older versions are replaced. * The image OCIDs remain available, but when the platform image is replaced, the image OCIDs are no longer returned as part of the platform image list. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testImages = oci.core.getImages({ * compartmentId: compartmentId, * displayName: imageDisplayName, * operatingSystem: imageOperatingSystem, * operatingSystemVersion: imageOperatingSystemVersion, * shape: imageShape, * state: imageState, * sortBy: imageSortBy, * sortOrder: imageSortOrder, * }); * ``` */ export declare function getImagesOutput(args: GetImagesOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getImages. */ export interface GetImagesOutputArgs { /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. */ compartmentId: pulumi.Input; /** * A filter to return only resources that match the given display name exactly. */ displayName?: pulumi.Input; filters?: pulumi.Input[] | undefined>; /** * The image's operating system. Example: `Oracle Linux` */ operatingSystem?: pulumi.Input; /** * The image's operating system version. Example: `7.2` */ operatingSystemVersion?: pulumi.Input; /** * Shape name. */ shape?: pulumi.Input; /** * Sort the resources returned, by creation time or display name. Example `TIMECREATED` or `DISPLAYNAME`. */ sortBy?: pulumi.Input; /** * The sort order to use, either ascending (`ASC`) or descending (`DESC`). */ sortOrder?: pulumi.Input; /** * A filter to only return resources that match the given lifecycle state. The state value is case-insensitive. */ state?: pulumi.Input; } //# sourceMappingURL=getImages.d.ts.map