UNPKG

@muhlba91/pulumi-proxmoxve

Version:

A Pulumi package for creating and managing Proxmox Virtual Environment cloud resources.

159 lines 6.57 kB
import * as pulumi from "@pulumi/pulumi"; /** * > **Deprecated:** Use `proxmoxve.storage.Zfspool` instead. This resource will be removed in v1.0. * * Manages ZFS-based storage in Proxmox VE. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as proxmoxve from "@muhlba91/pulumi-proxmoxve"; * * const example = new proxmoxve.storage.ZfspoolLegacy("example", { * resourceId: "example-zfs", * nodes: ["pve"], * zfsPool: "rpool/data", * contents: ["images"], * thinProvision: true, * blocksize: "64k", * }); * ``` * * ## Import * * !/usr/bin/env sh * Storage can be imported using its identifier, e.g.: * * ```sh * $ pulumi import proxmoxve:storage/zfspoolLegacy:ZfspoolLegacy example local-zfs * ``` */ export declare class ZfspoolLegacy extends pulumi.CustomResource { /** * Get an existing ZfspoolLegacy 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?: ZfspoolLegacyState, opts?: pulumi.CustomResourceOptions): ZfspoolLegacy; /** * Returns true if the given object is an instance of ZfspoolLegacy. 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 ZfspoolLegacy; /** * Block size for newly created volumes (e.g. `4k`, `8k`, `16k`). Larger values may improve throughput for large I/O, while smaller values optimize space efficiency. */ readonly blocksize: pulumi.Output<string | undefined>; /** * The content types that can be stored on this storage. Valid values: `backup` (VM backups), `images` (VM disk images), `import` (VM disk images for import), `iso` (ISO images), `rootdir` (container root directories), `snippets` (cloud-init, hook scripts, etc.), `vztmpl` (container templates). */ readonly contents: pulumi.Output<string[]>; /** * Whether the storage is disabled. */ readonly disable: pulumi.Output<boolean>; /** * A list of nodes where this storage is available. */ readonly nodes: pulumi.Output<string[]>; /** * The unique identifier of the storage. */ readonly resourceId: pulumi.Output<string>; /** * Whether the storage is shared across all nodes. */ readonly shared: pulumi.Output<boolean>; /** * Whether to enable thin provisioning (`on` or `off`). Thin provisioning allows flexible disk allocation without pre-allocating full space. */ readonly thinProvision: pulumi.Output<boolean | undefined>; /** * The name of the ZFS storage pool to use (e.g. `tank`, `rpool/data`). */ readonly zfsPool: pulumi.Output<string>; /** * Create a ZfspoolLegacy 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: ZfspoolLegacyArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ZfspoolLegacy resources. */ export interface ZfspoolLegacyState { /** * Block size for newly created volumes (e.g. `4k`, `8k`, `16k`). Larger values may improve throughput for large I/O, while smaller values optimize space efficiency. */ blocksize?: pulumi.Input<string | undefined>; /** * The content types that can be stored on this storage. Valid values: `backup` (VM backups), `images` (VM disk images), `import` (VM disk images for import), `iso` (ISO images), `rootdir` (container root directories), `snippets` (cloud-init, hook scripts, etc.), `vztmpl` (container templates). */ contents?: pulumi.Input<pulumi.Input<string>[] | undefined>; /** * Whether the storage is disabled. */ disable?: pulumi.Input<boolean | undefined>; /** * A list of nodes where this storage is available. */ nodes?: pulumi.Input<pulumi.Input<string>[] | undefined>; /** * The unique identifier of the storage. */ resourceId?: pulumi.Input<string | undefined>; /** * Whether the storage is shared across all nodes. */ shared?: pulumi.Input<boolean | undefined>; /** * Whether to enable thin provisioning (`on` or `off`). Thin provisioning allows flexible disk allocation without pre-allocating full space. */ thinProvision?: pulumi.Input<boolean | undefined>; /** * The name of the ZFS storage pool to use (e.g. `tank`, `rpool/data`). */ zfsPool?: pulumi.Input<string | undefined>; } /** * The set of arguments for constructing a ZfspoolLegacy resource. */ export interface ZfspoolLegacyArgs { /** * Block size for newly created volumes (e.g. `4k`, `8k`, `16k`). Larger values may improve throughput for large I/O, while smaller values optimize space efficiency. */ blocksize?: pulumi.Input<string | undefined>; /** * The content types that can be stored on this storage. Valid values: `backup` (VM backups), `images` (VM disk images), `import` (VM disk images for import), `iso` (ISO images), `rootdir` (container root directories), `snippets` (cloud-init, hook scripts, etc.), `vztmpl` (container templates). */ contents?: pulumi.Input<pulumi.Input<string>[] | undefined>; /** * Whether the storage is disabled. */ disable?: pulumi.Input<boolean | undefined>; /** * A list of nodes where this storage is available. */ nodes?: pulumi.Input<pulumi.Input<string>[] | undefined>; /** * The unique identifier of the storage. */ resourceId: pulumi.Input<string>; /** * Whether to enable thin provisioning (`on` or `off`). Thin provisioning allows flexible disk allocation without pre-allocating full space. */ thinProvision?: pulumi.Input<boolean | undefined>; /** * The name of the ZFS storage pool to use (e.g. `tank`, `rpool/data`). */ zfsPool: pulumi.Input<string>; } //# sourceMappingURL=zfspoolLegacy.d.ts.map