@pulumiverse/scaleway
Version:
A Pulumi package for creating and managing Scaleway cloud resources.
122 lines (121 loc) • 3.29 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Gets information about an instance image.
*/
export declare function getImage(args?: GetImageArgs, opts?: pulumi.InvokeOptions): Promise<GetImageResult>;
/**
* A collection of arguments for invoking getImage.
*/
export interface GetImageArgs {
/**
* The architecture the image is compatible with. Possible values are: `x8664` or `arm`.
*/
architecture?: string;
/**
* The image id. Only one of `name` and `imageId` should be specified.
*/
imageId?: string;
/**
* Use the latest image ID.
*/
latest?: boolean;
/**
* The image name. Only one of `name` and `imageId` should be specified.
*/
name?: string;
/**
* The ID of the project the image is associated with.
*/
projectId?: string;
/**
* `zone`) The zone in which the image exists.
*/
zone?: string;
}
/**
* A collection of values returned by getImage.
*/
export interface GetImageResult {
/**
* IDs of the additional volumes in this image.
*/
readonly additionalVolumeIds: string[];
readonly architecture?: string;
/**
* Date of the image creation.
*/
readonly creationDate: string;
/**
* ID of the default bootscript for this image.
*/
readonly defaultBootscriptId: string;
/**
* ID of the server the image if based from.
*/
readonly fromServerId: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly imageId?: string;
readonly latest?: boolean;
/**
* Date of image latest update.
*/
readonly modificationDate: string;
readonly name?: string;
/**
* The ID of the organization the image is associated with.
*/
readonly organizationId: string;
/**
* The ID of the project the image is associated with.
*/
readonly projectId: string;
/**
* Set to `true` if the image is public.
*/
readonly public: boolean;
/**
* ID of the root volume in this image.
*/
readonly rootVolumeId: string;
/**
* State of the image. Possible values are: `available`, `creating` or `error`.
*/
readonly state: string;
readonly zone: string;
}
/**
* Gets information about an instance image.
*/
export declare function getImageOutput(args?: GetImageOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetImageResult>;
/**
* A collection of arguments for invoking getImage.
*/
export interface GetImageOutputArgs {
/**
* The architecture the image is compatible with. Possible values are: `x8664` or `arm`.
*/
architecture?: pulumi.Input<string>;
/**
* The image id. Only one of `name` and `imageId` should be specified.
*/
imageId?: pulumi.Input<string>;
/**
* Use the latest image ID.
*/
latest?: pulumi.Input<boolean>;
/**
* The image name. Only one of `name` and `imageId` should be specified.
*/
name?: pulumi.Input<string>;
/**
* The ID of the project the image is associated with.
*/
projectId?: pulumi.Input<string>;
/**
* `zone`) The zone in which the image exists.
*/
zone?: pulumi.Input<string>;
}