UNPKG

@huaweicloudos/pulumi

Version:

A Pulumi package for creating and managing Huaweicloud cloud resources.

245 lines (244 loc) 9.14 kB
import * as pulumi from "@pulumi/pulumi"; /** * Manages an IMS data image resource created from EVS volume within HuaweiCloud. * * > The volume must be bound to the ECS instance. * * ## Example Usage * ### Creating an IMS data image from EVS volume * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as pulumi from "@huaweicloudos/pulumi"; * * const config = new pulumi.Config(); * const name = config.requireObject("name"); * const volumeId = config.requireObject("volumeId"); * const test = new huaweicloud.ims.EvsDataImage("test", {volumeId: volumeId}); * ``` * * ## Import * * The IMS EVS data image resource can be imported using the `id`, e.g. bash * * ```sh * $ pulumi import huaweicloud:Ims/evsDataImage:EvsDataImage test <id> * ``` */ export declare class EvsDataImage extends pulumi.CustomResource { /** * Get an existing EvsDataImage resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: EvsDataImageState, opts?: pulumi.CustomResourceOptions): EvsDataImage; /** * Returns true if the given object is an instance of EvsDataImage. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is EvsDataImage; /** * The time when the image status changes to active, in RFC3339 format. */ readonly activeAt: pulumi.Output<string>; /** * The creation time of the image, in RFC3339 format. */ readonly createdAt: pulumi.Output<string>; /** * The image source. The format is **volume,volume_id**. */ readonly dataOrigin: pulumi.Output<string>; /** * Specifies the description of the image. */ readonly description: pulumi.Output<string | undefined>; /** * The image format. The value can be **zvhd2**, **vhd**, **zvhd**, **raw**, or **qcow2**. */ readonly diskFormat: pulumi.Output<string>; /** * Specifies the enterprise project ID to which the IMS image belongs. * For enterprise users, if omitted, default enterprise project will be used. */ readonly enterpriseProjectId: pulumi.Output<string>; /** * The size of the image file, in bytes unit. */ readonly imageSize: pulumi.Output<string>; /** * The minimum disk space required to run an image, in GB unit. * + When the operating system is Linux, the value ranges from `10` to `1,024`. * + When the operating system is Windows, the value ranges from `20` to `1,024`. */ readonly minDisk: pulumi.Output<number>; /** * Specifies the name of the image. * The valid length is limited from `1` to `128` characters. * The first and last letters of the name cannot be spaces. * The name can contain uppercase letters, lowercase letters, numbers, spaces, chinese, and special characters (-._). */ readonly name: pulumi.Output<string>; /** * The operating system type. The value can be **Linux**, **Windows**, or **Other**. */ readonly osType: pulumi.Output<string>; /** * Specifies the region in which to create the resource. * If omitted, the provider-level region will be used. Changing this parameter will create a new resource. */ readonly region: pulumi.Output<string>; /** * The status of the image. The value can be **active**, **queued**, **saving**, **deleted**, or **killed*, * only image with a status of **active** can be used. */ readonly status: pulumi.Output<string>; /** * Specifies the key/value pairs to associate with the image. */ readonly tags: pulumi.Output<{ [key: string]: string; } | undefined>; /** * The last update time of the image, in RFC3339 format. */ readonly updatedAt: pulumi.Output<string>; /** * Whether the image is visible to other tenants. */ readonly visibility: pulumi.Output<string>; /** * Specifies the EVS volume ID used to create the image. * Changing this parameter will create a new resource. */ readonly volumeId: pulumi.Output<string>; /** * Create a EvsDataImage resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: EvsDataImageArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering EvsDataImage resources. */ export interface EvsDataImageState { /** * The time when the image status changes to active, in RFC3339 format. */ activeAt?: pulumi.Input<string>; /** * The creation time of the image, in RFC3339 format. */ createdAt?: pulumi.Input<string>; /** * The image source. The format is **volume,volume_id**. */ dataOrigin?: pulumi.Input<string>; /** * Specifies the description of the image. */ description?: pulumi.Input<string>; /** * The image format. The value can be **zvhd2**, **vhd**, **zvhd**, **raw**, or **qcow2**. */ diskFormat?: pulumi.Input<string>; /** * Specifies the enterprise project ID to which the IMS image belongs. * For enterprise users, if omitted, default enterprise project will be used. */ enterpriseProjectId?: pulumi.Input<string>; /** * The size of the image file, in bytes unit. */ imageSize?: pulumi.Input<string>; /** * The minimum disk space required to run an image, in GB unit. * + When the operating system is Linux, the value ranges from `10` to `1,024`. * + When the operating system is Windows, the value ranges from `20` to `1,024`. */ minDisk?: pulumi.Input<number>; /** * Specifies the name of the image. * The valid length is limited from `1` to `128` characters. * The first and last letters of the name cannot be spaces. * The name can contain uppercase letters, lowercase letters, numbers, spaces, chinese, and special characters (-._). */ name?: pulumi.Input<string>; /** * The operating system type. The value can be **Linux**, **Windows**, or **Other**. */ osType?: pulumi.Input<string>; /** * Specifies the region in which to create the resource. * If omitted, the provider-level region will be used. Changing this parameter will create a new resource. */ region?: pulumi.Input<string>; /** * The status of the image. The value can be **active**, **queued**, **saving**, **deleted**, or **killed*, * only image with a status of **active** can be used. */ status?: pulumi.Input<string>; /** * Specifies the key/value pairs to associate with the image. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input<string>; }>; /** * The last update time of the image, in RFC3339 format. */ updatedAt?: pulumi.Input<string>; /** * Whether the image is visible to other tenants. */ visibility?: pulumi.Input<string>; /** * Specifies the EVS volume ID used to create the image. * Changing this parameter will create a new resource. */ volumeId?: pulumi.Input<string>; } /** * The set of arguments for constructing a EvsDataImage resource. */ export interface EvsDataImageArgs { /** * Specifies the description of the image. */ description?: pulumi.Input<string>; /** * Specifies the enterprise project ID to which the IMS image belongs. * For enterprise users, if omitted, default enterprise project will be used. */ enterpriseProjectId?: pulumi.Input<string>; /** * Specifies the name of the image. * The valid length is limited from `1` to `128` characters. * The first and last letters of the name cannot be spaces. * The name can contain uppercase letters, lowercase letters, numbers, spaces, chinese, and special characters (-._). */ name?: pulumi.Input<string>; /** * Specifies the region in which to create the resource. * If omitted, the provider-level region will be used. Changing this parameter will create a new resource. */ region?: pulumi.Input<string>; /** * Specifies the key/value pairs to associate with the image. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input<string>; }>; /** * Specifies the EVS volume ID used to create the image. * Changing this parameter will create a new resource. */ volumeId: pulumi.Input<string>; }