import * as pulumi from "@pulumi/pulumi"; /** * Provides a resource for managing partitions on HA-NAS services * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as ovh from "@ovhcloud/pulumi-ovh"; * * const myPartition = new ovh.dedicated.NasHAPartition("my_partition", { * serviceName: "zpool-12345", * name: "my-partition", * size: 20, * protocol: "NFS", * }); * ``` * * ## Import * * HA-NAS can be imported using the `{service_name}/{name}`, e.g. * * ```sh * $ pulumi import ovh:Dedicated/nasHAPartition:NasHAPartition my-partition zpool-12345/my-partition` * ``` */ export declare class NasHAPartition extends pulumi.CustomResource { /** * Get an existing NasHAPartition 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?: NasHAPartitionState, opts?: pulumi.CustomResourceOptions): NasHAPartition; /** * Returns true if the given object is an instance of NasHAPartition. 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 NasHAPartition; /** * Percentage of partition space used in % */ readonly capacity: pulumi.Output; /** * A brief description of the partition */ readonly description: pulumi.Output; /** * name of the partition */ readonly name: pulumi.Output; /** * one of "NFS", "CIFS" or "NFS_CIFS" */ readonly protocol: pulumi.Output; /** * The internal name of your HA-NAS (it has to be ordered via OVHcloud interface) */ readonly serviceName: pulumi.Output; /** * size of the partition in GB */ readonly size: pulumi.Output; /** * Percentage of partition space used by snapshots in % */ readonly usedBySnapshots: pulumi.Output; /** * Create a NasHAPartition 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: NasHAPartitionArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering NasHAPartition resources. */ export interface NasHAPartitionState { /** * Percentage of partition space used in % */ capacity?: pulumi.Input; /** * A brief description of the partition */ description?: pulumi.Input; /** * name of the partition */ name?: pulumi.Input; /** * one of "NFS", "CIFS" or "NFS_CIFS" */ protocol?: pulumi.Input; /** * The internal name of your HA-NAS (it has to be ordered via OVHcloud interface) */ serviceName?: pulumi.Input; /** * size of the partition in GB */ size?: pulumi.Input; /** * Percentage of partition space used by snapshots in % */ usedBySnapshots?: pulumi.Input; } /** * The set of arguments for constructing a NasHAPartition resource. */ export interface NasHAPartitionArgs { /** * A brief description of the partition */ description?: pulumi.Input; /** * name of the partition */ name?: pulumi.Input; /** * one of "NFS", "CIFS" or "NFS_CIFS" */ protocol: pulumi.Input; /** * The internal name of your HA-NAS (it has to be ordered via OVHcloud interface) */ serviceName: pulumi.Input; /** * size of the partition in GB */ size: pulumi.Input; }