1. Packages
  2. Packages
  3. OVH
  4. API Docs
  5. getCloudNetworkPrivateVracks
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 list the private networks (vRack) of a public cloud project.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ovh from "@ovhcloud/pulumi-ovh";
    
    const networks = ovh.getCloudNetworkPrivateVracks({
        serviceName: "<public cloud project ID>",
    });
    export const networkNames = networks.then(networks => .map(n => (n.name)));
    
    import pulumi
    import pulumi_ovh as ovh
    
    networks = ovh.get_cloud_network_private_vracks(service_name="<public cloud project ID>")
    pulumi.export("networkNames", [n.name for n in networks.networks])
    
    Example coming soon!
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ovh = Pulumi.Ovh;
    
    return await Deployment.RunAsync(() => 
    {
        var networks = Ovh.GetCloudNetworkPrivateVracks.Invoke(new()
        {
            ServiceName = "<public cloud project ID>",
        });
    
        return new Dictionary<string, object?>
        {
            ["networkNames"] = .Select(n => 
            {
                return n.Name;
            }).ToList(),
        };
    });
    
    Example coming soon!
    
    Example coming soon!
    
    Example coming soon!
    

    Using getCloudNetworkPrivateVracks

    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 getCloudNetworkPrivateVracks(args: GetCloudNetworkPrivateVracksArgs, opts?: InvokeOptions): Promise<GetCloudNetworkPrivateVracksResult>
    function getCloudNetworkPrivateVracksOutput(args: GetCloudNetworkPrivateVracksOutputArgs, opts?: InvokeOptions): Output<GetCloudNetworkPrivateVracksResult>
    def get_cloud_network_private_vracks(service_name: Optional[str] = None,
                                         opts: Optional[InvokeOptions] = None) -> GetCloudNetworkPrivateVracksResult
    def get_cloud_network_private_vracks_output(service_name: pulumi.Input[Optional[str]] = None,
                                         opts: Optional[InvokeOptions] = None) -> Output[GetCloudNetworkPrivateVracksResult]
    func GetCloudNetworkPrivateVracks(ctx *Context, args *GetCloudNetworkPrivateVracksArgs, opts ...InvokeOption) (*GetCloudNetworkPrivateVracksResult, error)
    func GetCloudNetworkPrivateVracksOutput(ctx *Context, args *GetCloudNetworkPrivateVracksOutputArgs, opts ...InvokeOption) GetCloudNetworkPrivateVracksResultOutput

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

    public static class GetCloudNetworkPrivateVracks 
    {
        public static Task<GetCloudNetworkPrivateVracksResult> InvokeAsync(GetCloudNetworkPrivateVracksArgs args, InvokeOptions? opts = null)
        public static Output<GetCloudNetworkPrivateVracksResult> Invoke(GetCloudNetworkPrivateVracksInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCloudNetworkPrivateVracksResult> getCloudNetworkPrivateVracks(GetCloudNetworkPrivateVracksArgs args, InvokeOptions options)
    public static Output<GetCloudNetworkPrivateVracksResult> getCloudNetworkPrivateVracks(GetCloudNetworkPrivateVracksArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ovh:index/getCloudNetworkPrivateVracks:getCloudNetworkPrivateVracks
      arguments:
        # arguments dictionary
    data "ovh_get_cloud_network_private_vracks" "name" {
        # arguments
    }

    The following arguments are supported:

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

    getCloudNetworkPrivateVracks Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Networks List<GetCloudNetworkPrivateVracksNetwork>
    List of private networks. Each element exports:
    ServiceName string
    Id string
    The provider-assigned unique ID for this managed resource.
    Networks []GetCloudNetworkPrivateVracksNetwork
    List of private networks. Each element exports:
    ServiceName string
    id string
    The provider-assigned unique ID for this managed resource.
    networks list(object)
    List of private networks. Each element exports:
    service_name string
    id String
    The provider-assigned unique ID for this managed resource.
    networks List<GetCloudNetworkPrivateVracksNetwork>
    List of private networks. Each element exports:
    serviceName String
    id string
    The provider-assigned unique ID for this managed resource.
    networks GetCloudNetworkPrivateVracksNetwork[]
    List of private networks. Each element exports:
    serviceName string
    id str
    The provider-assigned unique ID for this managed resource.
    networks Sequence[GetCloudNetworkPrivateVracksNetwork]
    List of private networks. Each element exports:
    service_name str
    id String
    The provider-assigned unique ID for this managed resource.
    networks List<Property Map>
    List of private networks. Each element exports:
    serviceName String

    Supporting Types

    GetCloudNetworkPrivateVracksNetwork

    Checksum string
    Computed hash representing the current target specification value.
    CreatedAt string
    Creation date of the network.
    CurrentState GetCloudNetworkPrivateVracksNetworkCurrentState
    Current state of the network:
    Description string
    Network description.
    Id string
    Network ID.
    Location GetCloudNetworkPrivateVracksNetworkLocation
    Location details:
    Name string
    Network name.
    ResourceStatus string
    Network readiness in the system (CREATING, DELETING, ERROR, OUT_OF_SYNC, READY, UPDATING).
    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 GetCloudNetworkPrivateVracksNetworkCurrentState
    Current state of the network:
    Description string
    Network description.
    Id string
    Network ID.
    Location GetCloudNetworkPrivateVracksNetworkLocation
    Location details:
    Name string
    Network name.
    ResourceStatus string
    Network readiness in the system (CREATING, DELETING, ERROR, OUT_OF_SYNC, READY, UPDATING).
    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
    Network ID.
    location object
    Location details:
    name string
    Network name.
    resource_status string
    Network readiness in the system (CREATING, DELETING, ERROR, OUT_OF_SYNC, READY, UPDATING).
    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 GetCloudNetworkPrivateVracksNetworkCurrentState
    Current state of the network:
    description String
    Network description.
    id String
    Network ID.
    location GetCloudNetworkPrivateVracksNetworkLocation
    Location details:
    name String
    Network name.
    resourceStatus String
    Network readiness in the system (CREATING, DELETING, ERROR, OUT_OF_SYNC, READY, UPDATING).
    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 GetCloudNetworkPrivateVracksNetworkCurrentState
    Current state of the network:
    description string
    Network description.
    id string
    Network ID.
    location GetCloudNetworkPrivateVracksNetworkLocation
    Location details:
    name string
    Network name.
    resourceStatus string
    Network readiness in the system (CREATING, DELETING, ERROR, OUT_OF_SYNC, READY, UPDATING).
    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 GetCloudNetworkPrivateVracksNetworkCurrentState
    Current state of the network:
    description str
    Network description.
    id str
    Network ID.
    location GetCloudNetworkPrivateVracksNetworkLocation
    Location details:
    name str
    Network name.
    resource_status str
    Network readiness in the system (CREATING, DELETING, ERROR, OUT_OF_SYNC, READY, UPDATING).
    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
    Network ID.
    location Property Map
    Location details:
    name String
    Network name.
    resourceStatus String
    Network readiness in the system (CREATING, DELETING, ERROR, OUT_OF_SYNC, READY, UPDATING).
    updatedAt String
    Last update date of the network.
    vlanId Number
    VLAN ID of the network.

    GetCloudNetworkPrivateVracksNetworkCurrentState

    Description string
    Network description.
    Location GetCloudNetworkPrivateVracksNetworkCurrentStateLocation
    Location details:
    Name string
    Network name.
    VlanId double
    VLAN ID of the network.
    Description string
    Network description.
    Location GetCloudNetworkPrivateVracksNetworkCurrentStateLocation
    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 GetCloudNetworkPrivateVracksNetworkCurrentStateLocation
    Location details:
    name String
    Network name.
    vlanId Double
    VLAN ID of the network.
    description string
    Network description.
    location GetCloudNetworkPrivateVracksNetworkCurrentStateLocation
    Location details:
    name string
    Network name.
    vlanId number
    VLAN ID of the network.
    description str
    Network description.
    location GetCloudNetworkPrivateVracksNetworkCurrentStateLocation
    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.

    GetCloudNetworkPrivateVracksNetworkCurrentStateLocation

    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.

    GetCloudNetworkPrivateVracksNetworkLocation

    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