ovh.Dedicated.NasHAPartition
Explore with Pulumi AI
Provides a resource for managing partitions on HA-NAS services
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@ovhcloud/pulumi-ovh";
const my_partition = new ovh.dedicated.NasHAPartition("my-partition", {
protocol: "NFS",
serviceName: "zpool-12345",
size: 20,
});
import pulumi
import pulumi_ovh as ovh
my_partition = ovh.dedicated.NasHAPartition("my-partition",
protocol="NFS",
service_name="zpool-12345",
size=20)
package main
import (
"github.com/ovh/pulumi-ovh/sdk/go/ovh/Dedicated"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := Dedicated.NewNasHAPartition(ctx, "my-partition", &Dedicated.NasHAPartitionArgs{
Protocol: pulumi.String("NFS"),
ServiceName: pulumi.String("zpool-12345"),
Size: pulumi.Int(20),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ovh = Pulumi.Ovh;
return await Deployment.RunAsync(() =>
{
var my_partition = new Ovh.Dedicated.NasHAPartition("my-partition", new()
{
Protocol = "NFS",
ServiceName = "zpool-12345",
Size = 20,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ovh.Dedicated.NasHAPartition;
import com.pulumi.ovh.Dedicated.NasHAPartitionArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var my_partition = new NasHAPartition("my-partition", NasHAPartitionArgs.builder()
.protocol("NFS")
.serviceName("zpool-12345")
.size(20)
.build());
}
}
resources:
my-partition:
type: ovh:Dedicated:NasHAPartition
properties:
protocol: NFS
serviceName: zpool-12345
size: 20
Create NasHAPartition Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new NasHAPartition(name: string, args: NasHAPartitionArgs, opts?: CustomResourceOptions);
@overload
def NasHAPartition(resource_name: str,
args: NasHAPartitionArgs,
opts: Optional[ResourceOptions] = None)
@overload
def NasHAPartition(resource_name: str,
opts: Optional[ResourceOptions] = None,
protocol: Optional[str] = None,
service_name: Optional[str] = None,
size: Optional[int] = None,
description: Optional[str] = None,
name: Optional[str] = None)
func NewNasHAPartition(ctx *Context, name string, args NasHAPartitionArgs, opts ...ResourceOption) (*NasHAPartition, error)
public NasHAPartition(string name, NasHAPartitionArgs args, CustomResourceOptions? opts = null)
public NasHAPartition(String name, NasHAPartitionArgs args)
public NasHAPartition(String name, NasHAPartitionArgs args, CustomResourceOptions options)
type: ovh:Dedicated:NasHAPartition
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args NasHAPartitionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args NasHAPartitionArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args NasHAPartitionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args NasHAPartitionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args NasHAPartitionArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var nasHAPartitionResource = new Ovh.Dedicated.NasHAPartition("nasHAPartitionResource", new()
{
Protocol = "string",
ServiceName = "string",
Size = 0,
Description = "string",
Name = "string",
});
example, err := Dedicated.NewNasHAPartition(ctx, "nasHAPartitionResource", &Dedicated.NasHAPartitionArgs{
Protocol: pulumi.String("string"),
ServiceName: pulumi.String("string"),
Size: pulumi.Int(0),
Description: pulumi.String("string"),
Name: pulumi.String("string"),
})
var nasHAPartitionResource = new NasHAPartition("nasHAPartitionResource", NasHAPartitionArgs.builder()
.protocol("string")
.serviceName("string")
.size(0)
.description("string")
.name("string")
.build());
nas_ha_partition_resource = ovh.dedicated.NasHAPartition("nasHAPartitionResource",
protocol="string",
service_name="string",
size=0,
description="string",
name="string")
const nasHAPartitionResource = new ovh.dedicated.NasHAPartition("nasHAPartitionResource", {
protocol: "string",
serviceName: "string",
size: 0,
description: "string",
name: "string",
});
type: ovh:Dedicated:NasHAPartition
properties:
description: string
name: string
protocol: string
serviceName: string
size: 0
NasHAPartition Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The NasHAPartition resource accepts the following input properties:
- Protocol string
- one of "NFS", "CIFS" or "NFS_CIFS"
- Service
Name string - The internal name of your HA-NAS (it has to be ordered via OVHcloud interface)
- Size int
- size of the partition in GB
- Description string
- A brief description of the partition
- Name string
- name of the partition
- Protocol string
- one of "NFS", "CIFS" or "NFS_CIFS"
- Service
Name string - The internal name of your HA-NAS (it has to be ordered via OVHcloud interface)
- Size int
- size of the partition in GB
- Description string
- A brief description of the partition
- Name string
- name of the partition
- protocol String
- one of "NFS", "CIFS" or "NFS_CIFS"
- service
Name String - The internal name of your HA-NAS (it has to be ordered via OVHcloud interface)
- size Integer
- size of the partition in GB
- description String
- A brief description of the partition
- name String
- name of the partition
- protocol string
- one of "NFS", "CIFS" or "NFS_CIFS"
- service
Name string - The internal name of your HA-NAS (it has to be ordered via OVHcloud interface)
- size number
- size of the partition in GB
- description string
- A brief description of the partition
- name string
- name of the partition
- protocol str
- one of "NFS", "CIFS" or "NFS_CIFS"
- service_
name str - The internal name of your HA-NAS (it has to be ordered via OVHcloud interface)
- size int
- size of the partition in GB
- description str
- A brief description of the partition
- name str
- name of the partition
- protocol String
- one of "NFS", "CIFS" or "NFS_CIFS"
- service
Name String - The internal name of your HA-NAS (it has to be ordered via OVHcloud interface)
- size Number
- size of the partition in GB
- description String
- A brief description of the partition
- name String
- name of the partition
Outputs
All input properties are implicitly available as output properties. Additionally, the NasHAPartition resource produces the following output properties:
- Capacity int
- Percentage of partition space used in %
- Id string
- The provider-assigned unique ID for this managed resource.
- Used
By intSnapshots - Percentage of partition space used by snapshots in %
- Capacity int
- Percentage of partition space used in %
- Id string
- The provider-assigned unique ID for this managed resource.
- Used
By intSnapshots - Percentage of partition space used by snapshots in %
- capacity Integer
- Percentage of partition space used in %
- id String
- The provider-assigned unique ID for this managed resource.
- used
By IntegerSnapshots - Percentage of partition space used by snapshots in %
- capacity number
- Percentage of partition space used in %
- id string
- The provider-assigned unique ID for this managed resource.
- used
By numberSnapshots - Percentage of partition space used by snapshots in %
- capacity int
- Percentage of partition space used in %
- id str
- The provider-assigned unique ID for this managed resource.
- used_
by_ intsnapshots - Percentage of partition space used by snapshots in %
- capacity Number
- Percentage of partition space used in %
- id String
- The provider-assigned unique ID for this managed resource.
- used
By NumberSnapshots - Percentage of partition space used by snapshots in %
Look up Existing NasHAPartition Resource
Get an existing NasHAPartition resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: NasHAPartitionState, opts?: CustomResourceOptions): NasHAPartition
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
capacity: Optional[int] = None,
description: Optional[str] = None,
name: Optional[str] = None,
protocol: Optional[str] = None,
service_name: Optional[str] = None,
size: Optional[int] = None,
used_by_snapshots: Optional[int] = None) -> NasHAPartition
func GetNasHAPartition(ctx *Context, name string, id IDInput, state *NasHAPartitionState, opts ...ResourceOption) (*NasHAPartition, error)
public static NasHAPartition Get(string name, Input<string> id, NasHAPartitionState? state, CustomResourceOptions? opts = null)
public static NasHAPartition get(String name, Output<String> id, NasHAPartitionState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Capacity int
- Percentage of partition space used in %
- Description string
- A brief description of the partition
- Name string
- name of the partition
- Protocol string
- one of "NFS", "CIFS" or "NFS_CIFS"
- Service
Name string - The internal name of your HA-NAS (it has to be ordered via OVHcloud interface)
- Size int
- size of the partition in GB
- Used
By intSnapshots - Percentage of partition space used by snapshots in %
- Capacity int
- Percentage of partition space used in %
- Description string
- A brief description of the partition
- Name string
- name of the partition
- Protocol string
- one of "NFS", "CIFS" or "NFS_CIFS"
- Service
Name string - The internal name of your HA-NAS (it has to be ordered via OVHcloud interface)
- Size int
- size of the partition in GB
- Used
By intSnapshots - Percentage of partition space used by snapshots in %
- capacity Integer
- Percentage of partition space used in %
- description String
- A brief description of the partition
- name String
- name of the partition
- protocol String
- one of "NFS", "CIFS" or "NFS_CIFS"
- service
Name String - The internal name of your HA-NAS (it has to be ordered via OVHcloud interface)
- size Integer
- size of the partition in GB
- used
By IntegerSnapshots - Percentage of partition space used by snapshots in %
- capacity number
- Percentage of partition space used in %
- description string
- A brief description of the partition
- name string
- name of the partition
- protocol string
- one of "NFS", "CIFS" or "NFS_CIFS"
- service
Name string - The internal name of your HA-NAS (it has to be ordered via OVHcloud interface)
- size number
- size of the partition in GB
- used
By numberSnapshots - Percentage of partition space used by snapshots in %
- capacity int
- Percentage of partition space used in %
- description str
- A brief description of the partition
- name str
- name of the partition
- protocol str
- one of "NFS", "CIFS" or "NFS_CIFS"
- service_
name str - The internal name of your HA-NAS (it has to be ordered via OVHcloud interface)
- size int
- size of the partition in GB
- used_
by_ intsnapshots - Percentage of partition space used by snapshots in %
- capacity Number
- Percentage of partition space used in %
- description String
- A brief description of the partition
- name String
- name of the partition
- protocol String
- one of "NFS", "CIFS" or "NFS_CIFS"
- service
Name String - The internal name of your HA-NAS (it has to be ordered via OVHcloud interface)
- size Number
- size of the partition in GB
- used
By NumberSnapshots - Percentage of partition space used by snapshots in %
Import
HA-NAS can be imported using the {service_name}/{name}
, e.g.
$ pulumi import ovh:Dedicated/nasHAPartition:NasHAPartition my-partition zpool-12345/my-partition`
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- ovh ovh/pulumi-ovh
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ovh
Terraform Provider.