import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Manages a Proxmox Backup Server (PBS) 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.Pbs("example", { * resourceId: "example-pbs", * nodes: ["pve"], * server: "pbs.example.local", * datastore: "backup", * username: "pbs-user", * password: "pbs-password", * fingerprint: "AA:BB:CC:DD:EE:FF", * contents: ["backup"], * generateEncryptionKey: true, * }); * ``` * * ## Import * * !/usr/bin/env sh * Storage can be imported using its identifier, e.g.: * * ```sh * $ pulumi import proxmoxve:storage/pbs:Pbs example pbs-backup * ``` */ export declare class Pbs extends pulumi.CustomResource { /** * Get an existing Pbs 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?: PbsState, opts?: pulumi.CustomResourceOptions): Pbs; /** * Returns true if the given object is an instance of Pbs. 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 Pbs; /** * 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; /** * The name of the datastore on the Proxmox Backup Server. */ readonly datastore: pulumi.Output; /** * Whether the storage is disabled. */ readonly disable: pulumi.Output; /** * An existing encryption key for the datastore. This is a sensitive value. Conflicts with `generateEncryptionKey`. */ readonly encryptionKey: pulumi.Output; /** * The SHA256 fingerprint of the encryption key currently in use. */ readonly encryptionKeyFingerprint: pulumi.Output; /** * The SHA256 fingerprint of the Proxmox Backup Server's certificate. */ readonly fingerprint: pulumi.Output; /** * If set to true, Proxmox will generate a new encryption key. The key will be stored in the `generatedEncryptionKey` attribute. Conflicts with `encryptionKey`. */ readonly generateEncryptionKey: pulumi.Output; /** * The encryption key returned by Proxmox when `generateEncryptionKey` is true. */ readonly generatedEncryptionKey: pulumi.Output; /** * The namespace to use on the Proxmox Backup Server. */ readonly namespace: pulumi.Output; /** * A list of nodes where this storage is available. */ readonly nodes: pulumi.Output; /** * The password for authenticating with the Proxmox Backup Server. */ readonly password: pulumi.Output; /** * The unique identifier of the storage. */ readonly resourceId: pulumi.Output; /** * The IP address or DNS name of the Proxmox Backup Server. */ readonly server: pulumi.Output; /** * Whether the storage is shared across all nodes. */ readonly shared: pulumi.Output; /** * The username for authenticating with the Proxmox Backup Server. */ readonly username: pulumi.Output; /** * Create a Pbs 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: PbsArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Pbs resources. */ export interface PbsState { /** * 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>; /** * The name of the datastore on the Proxmox Backup Server. */ datastore?: pulumi.Input; /** * Whether the storage is disabled. */ disable?: pulumi.Input; /** * An existing encryption key for the datastore. This is a sensitive value. Conflicts with `generateEncryptionKey`. */ encryptionKey?: pulumi.Input; /** * The SHA256 fingerprint of the encryption key currently in use. */ encryptionKeyFingerprint?: pulumi.Input; /** * The SHA256 fingerprint of the Proxmox Backup Server's certificate. */ fingerprint?: pulumi.Input; /** * If set to true, Proxmox will generate a new encryption key. The key will be stored in the `generatedEncryptionKey` attribute. Conflicts with `encryptionKey`. */ generateEncryptionKey?: pulumi.Input; /** * The encryption key returned by Proxmox when `generateEncryptionKey` is true. */ generatedEncryptionKey?: pulumi.Input; /** * The namespace to use on the Proxmox Backup Server. */ namespace?: pulumi.Input; /** * A list of nodes where this storage is available. */ nodes?: pulumi.Input[] | undefined>; /** * The password for authenticating with the Proxmox Backup Server. */ password?: pulumi.Input; /** * The unique identifier of the storage. */ resourceId?: pulumi.Input; /** * The IP address or DNS name of the Proxmox Backup Server. */ server?: pulumi.Input; /** * Whether the storage is shared across all nodes. */ shared?: pulumi.Input; /** * The username for authenticating with the Proxmox Backup Server. */ username?: pulumi.Input; } /** * The set of arguments for constructing a Pbs resource. */ export interface PbsArgs { /** * 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>; /** * The name of the datastore on the Proxmox Backup Server. */ datastore: pulumi.Input; /** * Whether the storage is disabled. */ disable?: pulumi.Input; /** * An existing encryption key for the datastore. This is a sensitive value. Conflicts with `generateEncryptionKey`. */ encryptionKey?: pulumi.Input; /** * The SHA256 fingerprint of the Proxmox Backup Server's certificate. */ fingerprint?: pulumi.Input; /** * If set to true, Proxmox will generate a new encryption key. The key will be stored in the `generatedEncryptionKey` attribute. Conflicts with `encryptionKey`. */ generateEncryptionKey?: pulumi.Input; /** * The namespace to use on the Proxmox Backup Server. */ namespace?: pulumi.Input; /** * A list of nodes where this storage is available. */ nodes?: pulumi.Input[] | undefined>; /** * The password for authenticating with the Proxmox Backup Server. */ password: pulumi.Input; /** * The unique identifier of the storage. */ resourceId: pulumi.Input; /** * The IP address or DNS name of the Proxmox Backup Server. */ server: pulumi.Input; /** * The username for authenticating with the Proxmox Backup Server. */ username: pulumi.Input; } //# sourceMappingURL=pbs.d.ts.map