import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Manages directory-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.Directory("example", { * resourceId: "example-dir", * path: "/var/lib/vz", * nodes: ["pve"], * contents: ["images"], * shared: true, * disable: false, * backups: { * maxProtectedBackups: 5, * keepDaily: 7, * }, * }); * ``` * * ## Import * * !/usr/bin/env sh * Storage can be imported using its identifier, e.g.: * * ```sh * $ pulumi import proxmoxve:storage/directory:Directory example local-dir * ``` */ export declare class Directory extends pulumi.CustomResource { /** * Get an existing Directory 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?: DirectoryState, opts?: pulumi.CustomResourceOptions): Directory; /** * Returns true if the given object is an instance of Directory. 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 Directory; /** * Configure backup retention settings for the storage type. */ readonly backups: pulumi.Output; /** * 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; /** * Whether the storage is disabled. */ readonly disable: pulumi.Output; /** * A list of nodes where this storage is available. */ readonly nodes: pulumi.Output; /** * The path to the directory on the Proxmox node. */ readonly path: pulumi.Output; /** * The preallocation mode for raw and qcow2 images. */ readonly preallocation: pulumi.Output; /** * The unique identifier of the storage. */ readonly resourceId: pulumi.Output; /** * Whether the storage is shared across all nodes. */ readonly shared: pulumi.Output; /** * Create a Directory 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: DirectoryArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Directory resources. */ export interface DirectoryState { /** * Configure backup retention settings for the storage type. */ backups?: pulumi.Input; /** * 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[] | undefined>; /** * Whether the storage is disabled. */ disable?: pulumi.Input; /** * A list of nodes where this storage is available. */ nodes?: pulumi.Input[] | undefined>; /** * The path to the directory on the Proxmox node. */ path?: pulumi.Input; /** * The preallocation mode for raw and qcow2 images. */ preallocation?: pulumi.Input; /** * The unique identifier of the storage. */ resourceId?: pulumi.Input; /** * Whether the storage is shared across all nodes. */ shared?: pulumi.Input; } /** * The set of arguments for constructing a Directory resource. */ export interface DirectoryArgs { /** * Configure backup retention settings for the storage type. */ backups?: pulumi.Input; /** * 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[] | undefined>; /** * Whether the storage is disabled. */ disable?: pulumi.Input; /** * A list of nodes where this storage is available. */ nodes?: pulumi.Input[] | undefined>; /** * The path to the directory on the Proxmox node. */ path: pulumi.Input; /** * The preallocation mode for raw and qcow2 images. */ preallocation?: pulumi.Input; /** * The unique identifier of the storage. */ resourceId: pulumi.Input; /** * Whether the storage is shared across all nodes. */ shared?: pulumi.Input; } //# sourceMappingURL=directory.d.ts.map