ovh.Dedicated.NasHAPartitionSnapshot
Explore with Pulumi AI
Provides a resource for managing snapshot 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.NasHAPartitionSnapshot("my-partition", {
partitionName: "my-partition",
serviceName: "zpool-12345",
type: "day-3",
});
import pulumi
import pulumi_ovh as ovh
my_partition = ovh.dedicated.NasHAPartitionSnapshot("my-partition",
partition_name="my-partition",
service_name="zpool-12345",
type="day-3")
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.NewNasHAPartitionSnapshot(ctx, "my-partition", &Dedicated.NasHAPartitionSnapshotArgs{
PartitionName: pulumi.String("my-partition"),
ServiceName: pulumi.String("zpool-12345"),
Type: pulumi.String("day-3"),
})
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.NasHAPartitionSnapshot("my-partition", new()
{
PartitionName = "my-partition",
ServiceName = "zpool-12345",
Type = "day-3",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ovh.Dedicated.NasHAPartitionSnapshot;
import com.pulumi.ovh.Dedicated.NasHAPartitionSnapshotArgs;
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 NasHAPartitionSnapshot("my-partition", NasHAPartitionSnapshotArgs.builder()
.partitionName("my-partition")
.serviceName("zpool-12345")
.type("day-3")
.build());
}
}
resources:
my-partition:
type: ovh:Dedicated:NasHAPartitionSnapshot
properties:
partitionName: my-partition
serviceName: zpool-12345
type: day-3
Create NasHAPartitionSnapshot Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new NasHAPartitionSnapshot(name: string, args: NasHAPartitionSnapshotArgs, opts?: CustomResourceOptions);
@overload
def NasHAPartitionSnapshot(resource_name: str,
args: NasHAPartitionSnapshotArgs,
opts: Optional[ResourceOptions] = None)
@overload
def NasHAPartitionSnapshot(resource_name: str,
opts: Optional[ResourceOptions] = None,
partition_name: Optional[str] = None,
service_name: Optional[str] = None,
type: Optional[str] = None)
func NewNasHAPartitionSnapshot(ctx *Context, name string, args NasHAPartitionSnapshotArgs, opts ...ResourceOption) (*NasHAPartitionSnapshot, error)
public NasHAPartitionSnapshot(string name, NasHAPartitionSnapshotArgs args, CustomResourceOptions? opts = null)
public NasHAPartitionSnapshot(String name, NasHAPartitionSnapshotArgs args)
public NasHAPartitionSnapshot(String name, NasHAPartitionSnapshotArgs args, CustomResourceOptions options)
type: ovh:Dedicated:NasHAPartitionSnapshot
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 NasHAPartitionSnapshotArgs
- 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 NasHAPartitionSnapshotArgs
- 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 NasHAPartitionSnapshotArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args NasHAPartitionSnapshotArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args NasHAPartitionSnapshotArgs
- 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 nasHAPartitionSnapshotResource = new Ovh.Dedicated.NasHAPartitionSnapshot("nasHAPartitionSnapshotResource", new()
{
PartitionName = "string",
ServiceName = "string",
Type = "string",
});
example, err := Dedicated.NewNasHAPartitionSnapshot(ctx, "nasHAPartitionSnapshotResource", &Dedicated.NasHAPartitionSnapshotArgs{
PartitionName: pulumi.String("string"),
ServiceName: pulumi.String("string"),
Type: pulumi.String("string"),
})
var nasHAPartitionSnapshotResource = new NasHAPartitionSnapshot("nasHAPartitionSnapshotResource", NasHAPartitionSnapshotArgs.builder()
.partitionName("string")
.serviceName("string")
.type("string")
.build());
nas_ha_partition_snapshot_resource = ovh.dedicated.NasHAPartitionSnapshot("nasHAPartitionSnapshotResource",
partition_name="string",
service_name="string",
type="string")
const nasHAPartitionSnapshotResource = new ovh.dedicated.NasHAPartitionSnapshot("nasHAPartitionSnapshotResource", {
partitionName: "string",
serviceName: "string",
type: "string",
});
type: ovh:Dedicated:NasHAPartitionSnapshot
properties:
partitionName: string
serviceName: string
type: string
NasHAPartitionSnapshot 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 NasHAPartitionSnapshot resource accepts the following input properties:
- 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
- Snapshot interval, allowed : day-1, day-2, day-3, day-7, hour-1, hour-6
- 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
- Snapshot interval, allowed : day-1, day-2, day-3, day-7, hour-1, hour-6
- 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
- Snapshot interval, allowed : day-1, day-2, day-3, day-7, hour-1, hour-6
- 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
- Snapshot interval, allowed : day-1, day-2, day-3, day-7, hour-1, hour-6
- 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
- Snapshot interval, allowed : day-1, day-2, day-3, day-7, hour-1, hour-6
- 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
- Snapshot interval, allowed : day-1, day-2, day-3, day-7, hour-1, hour-6
Outputs
All input properties are implicitly available as output properties. Additionally, the NasHAPartitionSnapshot 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 NasHAPartitionSnapshot Resource
Get an existing NasHAPartitionSnapshot 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?: NasHAPartitionSnapshotState, opts?: CustomResourceOptions): NasHAPartitionSnapshot
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
partition_name: Optional[str] = None,
service_name: Optional[str] = None,
type: Optional[str] = None) -> NasHAPartitionSnapshot
func GetNasHAPartitionSnapshot(ctx *Context, name string, id IDInput, state *NasHAPartitionSnapshotState, opts ...ResourceOption) (*NasHAPartitionSnapshot, error)
public static NasHAPartitionSnapshot Get(string name, Input<string> id, NasHAPartitionSnapshotState? state, CustomResourceOptions? opts = null)
public static NasHAPartitionSnapshot get(String name, Output<String> id, NasHAPartitionSnapshotState 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.
- 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
- Snapshot interval, allowed : day-1, day-2, day-3, day-7, hour-1, hour-6
- 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
- Snapshot interval, allowed : day-1, day-2, day-3, day-7, hour-1, hour-6
- 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
- Snapshot interval, allowed : day-1, day-2, day-3, day-7, hour-1, hour-6
- 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
- Snapshot interval, allowed : day-1, day-2, day-3, day-7, hour-1, hour-6
- 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
- Snapshot interval, allowed : day-1, day-2, day-3, day-7, hour-1, hour-6
- 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
- Snapshot interval, allowed : day-1, day-2, day-3, day-7, hour-1, hour-6
Import
HA-NAS partition snapshot can be imported using the {service_name}/{partition_name}/{type}
, e.g.
$ pulumi import ovh:Dedicated/nasHAPartitionSnapshot:NasHAPartitionSnapshot my-partition zpool-12345/my-partition/day-3`
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.