import * as pulumi from "@pulumi/pulumi"; /** * Create and manage snapshots for an instance in a public cloud project. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as ovh from "@ovhcloud/pulumi-ovh"; * * const snapshot = new ovh.cloudproject.InstanceSnapshot("snapshot", { * serviceName: "", * instanceId: "", * name: "SnapshotExample", * }); * ``` * * ## Import * * A cloud project instance snapshot can be imported using the `service_name` and `snapshot_id`, separated by "/" E.g., * * bash * * ```sh * $ pulumi import ovh:CloudProject/instanceSnapshot:InstanceSnapshot my_snapshot service_name/snapshot_id * ``` */ export declare class InstanceSnapshot extends pulumi.CustomResource { /** * Get an existing InstanceSnapshot 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, state?: InstanceSnapshotState, opts?: pulumi.CustomResourceOptions): InstanceSnapshot; /** * Returns true if the given object is an instance of InstanceSnapshot. 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 InstanceSnapshot; /** * Image creation date */ readonly creationDate: pulumi.Output; /** * Image usable only for this type of flavor if not null */ readonly flavorType: pulumi.Output; /** * Instance ID */ readonly instanceId: pulumi.Output; /** * Minimum disks required to use image */ readonly minDisk: pulumi.Output; /** * Minimum RAM required to use image */ readonly minRam: pulumi.Output; /** * Snapshot name */ readonly name: pulumi.Output; /** * Order plan code */ readonly planCode: pulumi.Output; /** * Image region */ readonly region: pulumi.Output; /** * Service name. If omitted, the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used. */ readonly serviceName: pulumi.Output; /** * Image size (in GiB) */ readonly size: pulumi.Output; /** * Image status */ readonly status: pulumi.Output; /** * Tags about the image */ readonly tags: pulumi.Output; /** * Image type */ readonly type: pulumi.Output; /** * User to connect with */ readonly user: pulumi.Output; /** * Image visibility */ readonly visibility: pulumi.Output; /** * Create a InstanceSnapshot 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: InstanceSnapshotArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering InstanceSnapshot resources. */ export interface InstanceSnapshotState { /** * Image creation date */ creationDate?: pulumi.Input; /** * Image usable only for this type of flavor if not null */ flavorType?: pulumi.Input; /** * Instance ID */ instanceId?: pulumi.Input; /** * Minimum disks required to use image */ minDisk?: pulumi.Input; /** * Minimum RAM required to use image */ minRam?: pulumi.Input; /** * Snapshot name */ name?: pulumi.Input; /** * Order plan code */ planCode?: pulumi.Input; /** * Image region */ region?: pulumi.Input; /** * Service name. If omitted, the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used. */ serviceName?: pulumi.Input; /** * Image size (in GiB) */ size?: pulumi.Input; /** * Image status */ status?: pulumi.Input; /** * Tags about the image */ tags?: pulumi.Input[]>; /** * Image type */ type?: pulumi.Input; /** * User to connect with */ user?: pulumi.Input; /** * Image visibility */ visibility?: pulumi.Input; } /** * The set of arguments for constructing a InstanceSnapshot resource. */ export interface InstanceSnapshotArgs { /** * Instance ID */ instanceId: pulumi.Input; /** * Snapshot name */ name?: pulumi.Input; /** * Service name. If omitted, the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used. */ serviceName?: pulumi.Input; }