Viewing docs for OVHCloud v2.12.0
published on Thursday, Mar 12, 2026 by OVHcloud
published on Thursday, Mar 12, 2026 by OVHcloud
Viewing docs for OVHCloud v2.12.0
published on Thursday, Mar 12, 2026 by OVHcloud
published on Thursday, Mar 12, 2026 by OVHcloud
Use this data source to retrieve information about a dedicated HA-NAS partition.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@ovhcloud/pulumi-ovh";
const myNasHaPartition = ovh.Dedicated.getNasHAPartition({
serviceName: "zpool-12345",
name: "my-zpool-partition",
});
import pulumi
import pulumi_ovh as ovh
my_nas_ha_partition = ovh.Dedicated.get_nas_ha_partition(service_name="zpool-12345",
name="my-zpool-partition")
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.GetNasHAPartition(ctx, &dedicated.GetNasHAPartitionArgs{
ServiceName: "zpool-12345",
Name: "my-zpool-partition",
}, nil)
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 myNasHaPartition = Ovh.Dedicated.GetNasHAPartition.Invoke(new()
{
ServiceName = "zpool-12345",
Name = "my-zpool-partition",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ovh.Dedicated.DedicatedFunctions;
import com.pulumi.ovh.Dedicated.inputs.GetNasHAPartitionArgs;
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) {
final var myNasHaPartition = DedicatedFunctions.getNasHAPartition(GetNasHAPartitionArgs.builder()
.serviceName("zpool-12345")
.name("my-zpool-partition")
.build());
}
}
variables:
myNasHaPartition:
fn::invoke:
function: ovh:Dedicated:getNasHAPartition
arguments:
serviceName: zpool-12345
name: my-zpool-partition
Using getNasHAPartition
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getNasHAPartition(args: GetNasHAPartitionArgs, opts?: InvokeOptions): Promise<GetNasHAPartitionResult>
function getNasHAPartitionOutput(args: GetNasHAPartitionOutputArgs, opts?: InvokeOptions): Output<GetNasHAPartitionResult>def get_nas_ha_partition(name: Optional[str] = None,
service_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetNasHAPartitionResult
def get_nas_ha_partition_output(name: Optional[pulumi.Input[str]] = None,
service_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetNasHAPartitionResult]func LookupNasHAPartition(ctx *Context, args *LookupNasHAPartitionArgs, opts ...InvokeOption) (*LookupNasHAPartitionResult, error)
func LookupNasHAPartitionOutput(ctx *Context, args *LookupNasHAPartitionOutputArgs, opts ...InvokeOption) LookupNasHAPartitionResultOutput> Note: This function is named LookupNasHAPartition in the Go SDK.
public static class GetNasHAPartition
{
public static Task<GetNasHAPartitionResult> InvokeAsync(GetNasHAPartitionArgs args, InvokeOptions? opts = null)
public static Output<GetNasHAPartitionResult> Invoke(GetNasHAPartitionInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetNasHAPartitionResult> getNasHAPartition(GetNasHAPartitionArgs args, InvokeOptions options)
public static Output<GetNasHAPartitionResult> getNasHAPartition(GetNasHAPartitionArgs args, InvokeOptions options)
fn::invoke:
function: ovh:Dedicated/getNasHAPartition:getNasHAPartition
arguments:
# arguments dictionaryThe following arguments are supported:
- Name string
- The name of your dedicated HA-NAS partition.
- Service
Name string - The service_name of your dedicated HA-NAS.
- Name string
- The name of your dedicated HA-NAS partition.
- Service
Name string - The service_name of your dedicated HA-NAS.
- name String
- The name of your dedicated HA-NAS partition.
- service
Name String - The service_name of your dedicated HA-NAS.
- name string
- The name of your dedicated HA-NAS partition.
- service
Name string - The service_name of your dedicated HA-NAS.
- name str
- The name of your dedicated HA-NAS partition.
- service_
name str - The service_name of your dedicated HA-NAS.
- name String
- The name of your dedicated HA-NAS partition.
- service
Name String - The service_name of your dedicated HA-NAS.
getNasHAPartition Result
The following output properties are available:
- Capacity int
- Percentage of partition space used in %
- Description string
- A brief description of the partition
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Protocol string
- one of "NFS", "CIFS" or "NFS_CIFS"
- Service
Name string - 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
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Protocol string
- one of "NFS", "CIFS" or "NFS_CIFS"
- Service
Name string - 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
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- protocol String
- one of "NFS", "CIFS" or "NFS_CIFS"
- service
Name String - 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
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- protocol string
- one of "NFS", "CIFS" or "NFS_CIFS"
- service
Name string - 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
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- protocol str
- one of "NFS", "CIFS" or "NFS_CIFS"
- service_
name str - 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
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- protocol String
- one of "NFS", "CIFS" or "NFS_CIFS"
- service
Name String - size Number
- size of the partition in GB
- used
By NumberSnapshots - Percentage of partition space used by snapshots in %
Package Details
- Repository
- ovh ovh/pulumi-ovh
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ovhTerraform Provider.
Viewing docs for OVHCloud v2.12.0
published on Thursday, Mar 12, 2026 by OVHcloud
published on Thursday, Mar 12, 2026 by OVHcloud
