1. Packages
  2. Packages
  3. OVH
  4. API Docs
  5. getCloudNetworkPrivateVrack
Viewing docs for OVHCloud v2.17.0
published on Friday, Jul 17, 2026 by OVHcloud
ovh logo
Viewing docs for OVHCloud v2.17.0
published on Friday, Jul 17, 2026 by OVHcloud

    Use this data source to retrieve information about a private network (vRack) in a public cloud project.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ovh from "@ovhcloud/pulumi-ovh";
    
    const network = ovh.getCloudNetworkPrivateVrack({
        serviceName: "<public cloud project ID>",
        id: "<network ID>",
    });
    export const networkName = network.then(network => network.name);
    
    import pulumi
    import pulumi_ovh as ovh
    
    network = ovh.get_cloud_network_private_vrack(service_name="<public cloud project ID>",
        id="<network ID>")
    pulumi.export("networkName", network.name)
    
    package main
    
    import (
    	"github.com/ovh/pulumi-ovh/sdk/v2/go/ovh"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		network, err := ovh.LookupCloudNetworkPrivateVrack(ctx, &ovh.LookupCloudNetworkPrivateVrackArgs{
    			ServiceName: "<public cloud project ID>",
    			Id:          "<network ID>",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("networkName", network.Name)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ovh = Pulumi.Ovh;
    
    return await Deployment.RunAsync(() => 
    {
        var network = Ovh.GetCloudNetworkPrivateVrack.Invoke(new()
        {
            ServiceName = "<public cloud project ID>",
            Id = "<network ID>",
        });
    
        return new Dictionary<string, object?>
        {
            ["networkName"] = network.Apply(getCloudNetworkPrivateVrackResult => getCloudNetworkPrivateVrackResult.Name),
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ovh.OvhFunctions;
    import com.pulumi.ovh.inputs.GetCloudNetworkPrivateVrackArgs;
    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 network = OvhFunctions.getCloudNetworkPrivateVrack(GetCloudNetworkPrivateVrackArgs.builder()
                .serviceName("<public cloud project ID>")
                .id("<network ID>")
                .build());
    
            ctx.export("networkName", network.name());
        }
    }
    
    variables:
      network:
        fn::invoke:
          function: ovh:getCloudNetworkPrivateVrack
          arguments:
            serviceName: <public cloud project ID>
            id: <network ID>
    outputs:
      networkName: ${network.name}
    
    Example coming soon!
    

    Using getCloudNetworkPrivateVrack

    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 getCloudNetworkPrivateVrack(args: GetCloudNetworkPrivateVrackArgs, opts?: InvokeOptions): Promise<GetCloudNetworkPrivateVrackResult>
    function getCloudNetworkPrivateVrackOutput(args: GetCloudNetworkPrivateVrackOutputArgs, opts?: InvokeOptions): Output<GetCloudNetworkPrivateVrackResult>
    def get_cloud_network_private_vrack(id: Optional[str] = None,
                                        service_name: Optional[str] = None,
                                        opts: Optional[InvokeOptions] = None) -> GetCloudNetworkPrivateVrackResult
    def get_cloud_network_private_vrack_output(id: pulumi.Input[Optional[str]] = None,
                                        service_name: pulumi.Input[Optional[str]] = None,
                                        opts: Optional[InvokeOptions] = None) -> Output[GetCloudNetworkPrivateVrackResult]
    func LookupCloudNetworkPrivateVrack(ctx *Context, args *LookupCloudNetworkPrivateVrackArgs, opts ...InvokeOption) (*LookupCloudNetworkPrivateVrackResult, error)
    func LookupCloudNetworkPrivateVrackOutput(ctx *Context, args *LookupCloudNetworkPrivateVrackOutputArgs, opts ...InvokeOption) LookupCloudNetworkPrivateVrackResultOutput

    > Note: This function is named LookupCloudNetworkPrivateVrack in the Go SDK.

    public static class GetCloudNetworkPrivateVrack 
    {
        public static Task<GetCloudNetworkPrivateVrackResult> InvokeAsync(GetCloudNetworkPrivateVrackArgs args, InvokeOptions? opts = null)
        public static Output<GetCloudNetworkPrivateVrackResult> Invoke(GetCloudNetworkPrivateVrackInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCloudNetworkPrivateVrackResult> getCloudNetworkPrivateVrack(GetCloudNetworkPrivateVrackArgs args, InvokeOptions options)
    public static Output<GetCloudNetworkPrivateVrackResult> getCloudNetworkPrivateVrack(GetCloudNetworkPrivateVrackArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ovh:index/getCloudNetworkPrivateVrack:getCloudNetworkPrivateVrack
      arguments:
        # arguments dictionary
    data "ovh_getcloudnetworkprivatevrack" "name" {
        # arguments
    }

    The following arguments are supported:

    Id string
    Network ID.
    ServiceName string
    Service name of the resource representing the id of the cloud project.
    Id string
    Network ID.
    ServiceName string
    Service name of the resource representing the id of the cloud project.
    id string
    Network ID.
    service_name string
    Service name of the resource representing the id of the cloud project.
    id String
    Network ID.
    serviceName String
    Service name of the resource representing the id of the cloud project.
    id string
    Network ID.
    serviceName string
    Service name of the resource representing the id of the cloud project.
    id str
    Network ID.
    service_name str
    Service name of the resource representing the id of the cloud project.
    id String
    Network ID.
    serviceName String
    Service name of the resource representing the id of the cloud project.

    getCloudNetworkPrivateVrack Result

    The following output properties are available:

    Checksum string
    Computed hash representing the current target specification value.
    CreatedAt string
    Creation date of the network.
    CurrentState GetCloudNetworkPrivateVrackCurrentState
    Current state of the network:
    Description string
    Network description.
    Id string
    Location GetCloudNetworkPrivateVrackLocation
    Location details:
    Name string
    Network name.
    ResourceStatus string
    Network readiness in the system (CREATING, DELETING, ERROR, OUT_OF_SYNC, READY, UPDATING).
    ServiceName string
    UpdatedAt string
    Last update date of the network.
    VlanId double
    VLAN ID of the network.
    Checksum string
    Computed hash representing the current target specification value.
    CreatedAt string
    Creation date of the network.
    CurrentState GetCloudNetworkPrivateVrackCurrentState
    Current state of the network:
    Description string
    Network description.
    Id string
    Location GetCloudNetworkPrivateVrackLocation
    Location details:
    Name string
    Network name.
    ResourceStatus string
    Network readiness in the system (CREATING, DELETING, ERROR, OUT_OF_SYNC, READY, UPDATING).
    ServiceName string
    UpdatedAt string
    Last update date of the network.
    VlanId float64
    VLAN ID of the network.
    checksum string
    Computed hash representing the current target specification value.
    created_at string
    Creation date of the network.
    current_state object
    Current state of the network:
    description string
    Network description.
    id string
    location object
    Location details:
    name string
    Network name.
    resource_status string
    Network readiness in the system (CREATING, DELETING, ERROR, OUT_OF_SYNC, READY, UPDATING).
    service_name string
    updated_at string
    Last update date of the network.
    vlan_id number
    VLAN ID of the network.
    checksum String
    Computed hash representing the current target specification value.
    createdAt String
    Creation date of the network.
    currentState GetCloudNetworkPrivateVrackCurrentState
    Current state of the network:
    description String
    Network description.
    id String
    location GetCloudNetworkPrivateVrackLocation
    Location details:
    name String
    Network name.
    resourceStatus String
    Network readiness in the system (CREATING, DELETING, ERROR, OUT_OF_SYNC, READY, UPDATING).
    serviceName String
    updatedAt String
    Last update date of the network.
    vlanId Double
    VLAN ID of the network.
    checksum string
    Computed hash representing the current target specification value.
    createdAt string
    Creation date of the network.
    currentState GetCloudNetworkPrivateVrackCurrentState
    Current state of the network:
    description string
    Network description.
    id string
    location GetCloudNetworkPrivateVrackLocation
    Location details:
    name string
    Network name.
    resourceStatus string
    Network readiness in the system (CREATING, DELETING, ERROR, OUT_OF_SYNC, READY, UPDATING).
    serviceName string
    updatedAt string
    Last update date of the network.
    vlanId number
    VLAN ID of the network.
    checksum str
    Computed hash representing the current target specification value.
    created_at str
    Creation date of the network.
    current_state GetCloudNetworkPrivateVrackCurrentState
    Current state of the network:
    description str
    Network description.
    id str
    location GetCloudNetworkPrivateVrackLocation
    Location details:
    name str
    Network name.
    resource_status str
    Network readiness in the system (CREATING, DELETING, ERROR, OUT_OF_SYNC, READY, UPDATING).
    service_name str
    updated_at str
    Last update date of the network.
    vlan_id float
    VLAN ID of the network.
    checksum String
    Computed hash representing the current target specification value.
    createdAt String
    Creation date of the network.
    currentState Property Map
    Current state of the network:
    description String
    Network description.
    id String
    location Property Map
    Location details:
    name String
    Network name.
    resourceStatus String
    Network readiness in the system (CREATING, DELETING, ERROR, OUT_OF_SYNC, READY, UPDATING).
    serviceName String
    updatedAt String
    Last update date of the network.
    vlanId Number
    VLAN ID of the network.

    Supporting Types

    GetCloudNetworkPrivateVrackCurrentState

    Description string
    Network description.
    Location GetCloudNetworkPrivateVrackCurrentStateLocation
    Location details:
    Name string
    Network name.
    VlanId double
    VLAN ID of the network.
    Description string
    Network description.
    Location GetCloudNetworkPrivateVrackCurrentStateLocation
    Location details:
    Name string
    Network name.
    VlanId float64
    VLAN ID of the network.
    description string
    Network description.
    location object
    Location details:
    name string
    Network name.
    vlan_id number
    VLAN ID of the network.
    description String
    Network description.
    location GetCloudNetworkPrivateVrackCurrentStateLocation
    Location details:
    name String
    Network name.
    vlanId Double
    VLAN ID of the network.
    description string
    Network description.
    location GetCloudNetworkPrivateVrackCurrentStateLocation
    Location details:
    name string
    Network name.
    vlanId number
    VLAN ID of the network.
    description str
    Network description.
    location GetCloudNetworkPrivateVrackCurrentStateLocation
    Location details:
    name str
    Network name.
    vlan_id float
    VLAN ID of the network.
    description String
    Network description.
    location Property Map
    Location details:
    name String
    Network name.
    vlanId Number
    VLAN ID of the network.

    GetCloudNetworkPrivateVrackCurrentStateLocation

    Region string
    Region code.
    Region string
    Region code.
    region string
    Region code.
    region String
    Region code.
    region string
    Region code.
    region str
    Region code.
    region String
    Region code.

    GetCloudNetworkPrivateVrackLocation

    Region string
    Region code.
    Region string
    Region code.
    region string
    Region code.
    region String
    Region code.
    region string
    Region code.
    region str
    Region code.
    region String
    Region code.

    Package Details

    Repository
    ovh ovh/pulumi-ovh
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the ovh Terraform Provider.
    ovh logo
    Viewing docs for OVHCloud v2.17.0
    published on Friday, Jul 17, 2026 by OVHcloud

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial