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 my_partition = new ovh.dedicated.NasHAPartitionAccess("my-partition", {
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("my-partition",
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/go/ovh/Dedicated"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := Dedicated.NewNasHAPartitionAccess(ctx, "my-partition", &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 my_partition = new Ovh.Dedicated.NasHAPartitionAccess("my-partition", 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.pulumi.ovh.Dedicated.NasHAPartitionAccess;
import com.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 my_partition = new NasHAPartitionAccess("my-partition", NasHAPartitionAccessArgs.builder()
.aclDescription("Description of the ACL")
.ip("123.123.123.123/32")
.partitionName("my-partition")
.serviceName("zpool-12345")
.type("readwrite")
.build());
}
}
resources:
my-partition:
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 string
- The unique name of the resource.
- args NasHAPartitionAccessArgs
- 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 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 string
- The unique name of the resource.
- args NasHAPartitionAccessArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args NasHAPartitionAccessArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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 string
- IP block in x.x.x.x/x format
- Partition
Name string - Name of the partition
- Service
Name string - The internal name of your HA-NAS (it has to be ordered via OVHcloud interface)
- Acl
Description string - A brief description of the acl
- Type string
- One of "readwrite", "readonly"
- Ip string
- IP block in x.x.x.x/x format
- Partition
Name string - Name of the partition
- Service
Name string - The internal name of your HA-NAS (it has to be ordered via OVHcloud interface)
- Acl
Description string - A brief description of the acl
- Type string
- One of "readwrite", "readonly"
- ip String
- IP block in x.x.x.x/x format
- partition
Name String - Name of the partition
- service
Name String - The internal name of your HA-NAS (it has to be ordered via OVHcloud interface)
- acl
Description String - A brief description of the acl
- type String
- One of "readwrite", "readonly"
- ip string
- IP block in x.x.x.x/x format
- partition
Name string - Name of the partition
- service
Name string - The internal name of your HA-NAS (it has to be ordered via OVHcloud interface)
- acl
Description string - A brief description of the acl
- type string
- One of "readwrite", "readonly"
- ip str
- IP block in x.x.x.x/x format
- partition_
name str - Name of the partition
- service_
name str - The internal name of your HA-NAS (it has to be ordered via OVHcloud interface)
- acl_
description str - A brief description of the acl
- type str
- One of "readwrite", "readonly"
- ip String
- IP block in x.x.x.x/x format
- partition
Name String - Name of the partition
- service
Name String - The internal name of your HA-NAS (it has to be ordered via OVHcloud interface)
- acl
Description String - A brief description of the acl
- type String
- 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)
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.
- Acl
Description string - A brief description of the acl
- Ip string
- IP block in x.x.x.x/x format
- Partition
Name string - Name of the partition
- Service
Name string - The internal name of your HA-NAS (it has to be ordered via OVHcloud interface)
- Type string
- One of "readwrite", "readonly"
- Acl
Description string - A brief description of the acl
- Ip string
- IP block in x.x.x.x/x format
- Partition
Name string - Name of the partition
- Service
Name string - The internal name of your HA-NAS (it has to be ordered via OVHcloud interface)
- Type string
- One of "readwrite", "readonly"
- acl
Description String - A brief description of the acl
- ip String
- IP block in x.x.x.x/x format
- partition
Name String - Name of the partition
- service
Name String - The internal name of your HA-NAS (it has to be ordered via OVHcloud interface)
- type String
- One of "readwrite", "readonly"
- acl
Description string - A brief description of the acl
- ip string
- IP block in x.x.x.x/x format
- partition
Name string - Name of the partition
- service
Name string - The internal name of your HA-NAS (it has to be ordered via OVHcloud interface)
- type string
- One of "readwrite", "readonly"
- acl_
description str - A brief description of the acl
- ip str
- IP block in x.x.x.x/x format
- partition_
name str - Name of the partition
- service_
name str - The internal name of your HA-NAS (it has to be ordered via OVHcloud interface)
- type str
- One of "readwrite", "readonly"
- acl
Description String - A brief description of the acl
- ip String
- IP block in x.x.x.x/x format
- partition
Name String - Name of the partition
- service
Name String - The internal name of your HA-NAS (it has to be ordered via OVHcloud interface)
- type String
- 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.