ovh.Dedicated.NasHAPartitionAccess
Explore with Pulumi AI
Provides a resource for managing access rights to partitions on HA-NAS services
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@ovhcloud/pulumi-ovh";
const myPartition = new ovh.dedicated.NasHAPartitionAccess("myPartition", {
aclDescription: "Description of the ACL",
ip: "123.123.123.123/32",
partitionName: "my-partition",
serviceName: "zpool-12345",
type: "readwrite",
});
import pulumi
import pulumi_ovh as ovh
my_partition = ovh.dedicated.NasHAPartitionAccess("myPartition",
acl_description="Description of the ACL",
ip="123.123.123.123/32",
partition_name="my-partition",
service_name="zpool-12345",
type="readwrite")
package main
import (
"github.com/ovh/pulumi-ovh/sdk/v2/go/ovh/dedicated"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := dedicated.NewNasHAPartitionAccess(ctx, "myPartition", &dedicated.NasHAPartitionAccessArgs{
AclDescription: pulumi.String("Description of the ACL"),
Ip: pulumi.String("123.123.123.123/32"),
PartitionName: pulumi.String("my-partition"),
ServiceName: pulumi.String("zpool-12345"),
Type: pulumi.String("readwrite"),
})
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 myPartition = new Ovh.Dedicated.NasHAPartitionAccess("myPartition", new()
{
AclDescription = "Description of the ACL",
Ip = "123.123.123.123/32",
PartitionName = "my-partition",
ServiceName = "zpool-12345",
Type = "readwrite",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.ovhcloud.pulumi.ovh.Dedicated.NasHAPartitionAccess;
import com.ovhcloud.pulumi.ovh.Dedicated.NasHAPartitionAccessArgs;
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 myPartition = new NasHAPartitionAccess("myPartition", NasHAPartitionAccessArgs.builder()
.aclDescription("Description of the ACL")
.ip("123.123.123.123/32")
.partitionName("my-partition")
.serviceName("zpool-12345")
.type("readwrite")
.build());
}
}
resources:
myPartition:
type: ovh:Dedicated:NasHAPartitionAccess
properties:
aclDescription: Description of the ACL
ip: 123.123.123.123/32
partitionName: my-partition
serviceName: zpool-12345
type: readwrite
Create NasHAPartitionAccess Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new NasHAPartitionAccess(name: string, args: NasHAPartitionAccessArgs, opts?: CustomResourceOptions);
@overload
def NasHAPartitionAccess(resource_name: str,
args: NasHAPartitionAccessArgs,
opts: Optional[ResourceOptions] = None)
@overload
def NasHAPartitionAccess(resource_name: str,
opts: Optional[ResourceOptions] = None,
ip: Optional[str] = None,
partition_name: Optional[str] = None,
service_name: Optional[str] = None,
acl_description: Optional[str] = None,
type: Optional[str] = None)
func NewNasHAPartitionAccess(ctx *Context, name string, args NasHAPartitionAccessArgs, opts ...ResourceOption) (*NasHAPartitionAccess, error)
public NasHAPartitionAccess(string name, NasHAPartitionAccessArgs args, CustomResourceOptions? opts = null)
public NasHAPartitionAccess(String name, NasHAPartitionAccessArgs args)
public NasHAPartitionAccess(String name, NasHAPartitionAccessArgs args, CustomResourceOptions options)
type: ovh:Dedicated:NasHAPartitionAccess
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name
This property is required. string - The unique name of the resource.
- args
This property is required. NasHAPartitionAccessArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name
This property is required. str - The unique name of the resource.
- args
This property is required. NasHAPartitionAccessArgs - The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. NasHAPartitionAccessArgs - The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. NasHAPartitionAccessArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name
This property is required. String - The unique name of the resource.
- args
This property is required. NasHAPartitionAccessArgs - 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 nasHAPartitionAccessResource = new Ovh.Dedicated.NasHAPartitionAccess("nasHAPartitionAccessResource", new()
{
Ip = "string",
PartitionName = "string",
ServiceName = "string",
AclDescription = "string",
Type = "string",
});
example, err := dedicated.NewNasHAPartitionAccess(ctx, "nasHAPartitionAccessResource", &dedicated.NasHAPartitionAccessArgs{
Ip: pulumi.String("string"),
PartitionName: pulumi.String("string"),
ServiceName: pulumi.String("string"),
AclDescription: pulumi.String("string"),
Type: pulumi.String("string"),
})
var nasHAPartitionAccessResource = new NasHAPartitionAccess("nasHAPartitionAccessResource", NasHAPartitionAccessArgs.builder()
.ip("string")
.partitionName("string")
.serviceName("string")
.aclDescription("string")
.type("string")
.build());
nas_ha_partition_access_resource = ovh.dedicated.NasHAPartitionAccess("nasHAPartitionAccessResource",
ip="string",
partition_name="string",
service_name="string",
acl_description="string",
type="string")
const nasHAPartitionAccessResource = new ovh.dedicated.NasHAPartitionAccess("nasHAPartitionAccessResource", {
ip: "string",
partitionName: "string",
serviceName: "string",
aclDescription: "string",
type: "string",
});
type: ovh:Dedicated:NasHAPartitionAccess
properties:
aclDescription: string
ip: string
partitionName: string
serviceName: string
type: string
NasHAPartitionAccess 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 NasHAPartitionAccess resource accepts the following input properties:
- Ip
This property is required. Changes to this property will trigger replacement.
- IP block in x.x.x.x/x format
- Partition
Name This property is required. Changes to this property will trigger replacement.
- Name of the partition
- Service
Name This property is required. Changes to this property will trigger replacement.
- The internal name of your HA-NAS (it has to be ordered via OVHcloud interface)
- Acl
Description Changes to this property will trigger replacement.
- A brief description of the acl
- Type
Changes to this property will trigger replacement.
- One of "readwrite", "readonly"
- Ip
This property is required. Changes to this property will trigger replacement.
- IP block in x.x.x.x/x format
- Partition
Name This property is required. Changes to this property will trigger replacement.
- Name of the partition
- Service
Name This property is required. Changes to this property will trigger replacement.
- The internal name of your HA-NAS (it has to be ordered via OVHcloud interface)
- Acl
Description Changes to this property will trigger replacement.
- A brief description of the acl
- Type
Changes to this property will trigger replacement.
- One of "readwrite", "readonly"
- ip
This property is required. Changes to this property will trigger replacement.
- IP block in x.x.x.x/x format
- partition
Name This property is required. Changes to this property will trigger replacement.
- Name of the partition
- service
Name This property is required. Changes to this property will trigger replacement.
- The internal name of your HA-NAS (it has to be ordered via OVHcloud interface)
- acl
Description Changes to this property will trigger replacement.
- A brief description of the acl
- type
Changes to this property will trigger replacement.
- One of "readwrite", "readonly"
- ip
This property is required. Changes to this property will trigger replacement.
- IP block in x.x.x.x/x format
- partition
Name This property is required. Changes to this property will trigger replacement.
- Name of the partition
- service
Name This property is required. Changes to this property will trigger replacement.
- The internal name of your HA-NAS (it has to be ordered via OVHcloud interface)
- acl
Description Changes to this property will trigger replacement.
- A brief description of the acl
- type
Changes to this property will trigger replacement.
- One of "readwrite", "readonly"
- ip
This property is required. Changes to this property will trigger replacement.
- IP block in x.x.x.x/x format
- partition_
name This property is required. Changes to this property will trigger replacement.
- Name of the partition
- service_
name This property is required. Changes to this property will trigger replacement.
- The internal name of your HA-NAS (it has to be ordered via OVHcloud interface)
- acl_
description Changes to this property will trigger replacement.
- A brief description of the acl
- type
Changes to this property will trigger replacement.
- One of "readwrite", "readonly"
- ip
This property is required. Changes to this property will trigger replacement.
- IP block in x.x.x.x/x format
- partition
Name This property is required. Changes to this property will trigger replacement.
- Name of the partition
- service
Name This property is required. Changes to this property will trigger replacement.
- The internal name of your HA-NAS (it has to be ordered via OVHcloud interface)
- acl
Description Changes to this property will trigger replacement.
- A brief description of the acl
- type
Changes to this property will trigger replacement.
- One of "readwrite", "readonly"
Outputs
All input properties are implicitly available as output properties. Additionally, the NasHAPartitionAccess resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing NasHAPartitionAccess Resource
Get an existing NasHAPartitionAccess 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?: NasHAPartitionAccessState, opts?: CustomResourceOptions): NasHAPartitionAccess
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
acl_description: Optional[str] = None,
ip: Optional[str] = None,
partition_name: Optional[str] = None,
service_name: Optional[str] = None,
type: Optional[str] = None) -> NasHAPartitionAccess
func GetNasHAPartitionAccess(ctx *Context, name string, id IDInput, state *NasHAPartitionAccessState, opts ...ResourceOption) (*NasHAPartitionAccess, error)
public static NasHAPartitionAccess Get(string name, Input<string> id, NasHAPartitionAccessState? state, CustomResourceOptions? opts = null)
public static NasHAPartitionAccess get(String name, Output<String> id, NasHAPartitionAccessState state, CustomResourceOptions options)
resources: _: type: ovh:Dedicated:NasHAPartitionAccess get: id: ${id}
- name
This property is required. - The unique name of the resulting resource.
- id
This property is required. - 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
This property is required. - The unique name of the resulting resource.
- id
This property is required. - The unique provider ID of the resource to lookup.
- name
This property is required. - The unique name of the resulting resource.
- id
This property is required. - 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
This property is required. - The unique name of the resulting resource.
- id
This property is required. - 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
This property is required. - The unique name of the resulting resource.
- id
This property is required. - 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.
- Acl
Description Changes to this property will trigger replacement.
- A brief description of the acl
- Ip
Changes to this property will trigger replacement.
- IP block in x.x.x.x/x format
- Partition
Name Changes to this property will trigger replacement.
- Name of the partition
- Service
Name Changes to this property will trigger replacement.
- The internal name of your HA-NAS (it has to be ordered via OVHcloud interface)
- Type
Changes to this property will trigger replacement.
- One of "readwrite", "readonly"
- Acl
Description Changes to this property will trigger replacement.
- A brief description of the acl
- Ip
Changes to this property will trigger replacement.
- IP block in x.x.x.x/x format
- Partition
Name Changes to this property will trigger replacement.
- Name of the partition
- Service
Name Changes to this property will trigger replacement.
- The internal name of your HA-NAS (it has to be ordered via OVHcloud interface)
- Type
Changes to this property will trigger replacement.
- One of "readwrite", "readonly"
- acl
Description Changes to this property will trigger replacement.
- A brief description of the acl
- ip
Changes to this property will trigger replacement.
- IP block in x.x.x.x/x format
- partition
Name Changes to this property will trigger replacement.
- Name of the partition
- service
Name Changes to this property will trigger replacement.
- The internal name of your HA-NAS (it has to be ordered via OVHcloud interface)
- type
Changes to this property will trigger replacement.
- One of "readwrite", "readonly"
- acl
Description Changes to this property will trigger replacement.
- A brief description of the acl
- ip
Changes to this property will trigger replacement.
- IP block in x.x.x.x/x format
- partition
Name Changes to this property will trigger replacement.
- Name of the partition
- service
Name Changes to this property will trigger replacement.
- The internal name of your HA-NAS (it has to be ordered via OVHcloud interface)
- type
Changes to this property will trigger replacement.
- One of "readwrite", "readonly"
- acl_
description Changes to this property will trigger replacement.
- A brief description of the acl
- ip
Changes to this property will trigger replacement.
- IP block in x.x.x.x/x format
- partition_
name Changes to this property will trigger replacement.
- Name of the partition
- service_
name Changes to this property will trigger replacement.
- The internal name of your HA-NAS (it has to be ordered via OVHcloud interface)
- type
Changes to this property will trigger replacement.
- One of "readwrite", "readonly"
- acl
Description Changes to this property will trigger replacement.
- A brief description of the acl
- ip
Changes to this property will trigger replacement.
- IP block in x.x.x.x/x format
- partition
Name Changes to this property will trigger replacement.
- Name of the partition
- service
Name Changes to this property will trigger replacement.
- The internal name of your HA-NAS (it has to be ordered via OVHcloud interface)
- type
Changes to this property will trigger replacement.
- One of "readwrite", "readonly"
Import
HA-NAS partition access can be imported using the {service_name}/{partition_name}/{ip}
, e.g.
$ pulumi import ovh:Dedicated/nasHAPartitionAccess:NasHAPartitionAccess my-partition zpool-12345/my-partition/123.123.123.123%2F32`
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.