Viewing docs for OVHCloud v2.17.0
published on Friday, Jul 17, 2026 by OVHcloud
published on Friday, Jul 17, 2026 by OVHcloud
Viewing docs for OVHCloud v2.17.0
published on Friday, Jul 17, 2026 by OVHcloud
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 dictionarydata "ovh_getcloudnetworkprivatevrack" "name" {
# arguments
}The following arguments are supported:
- Id string
- Network ID.
- Service
Name 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.
- service_
name 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.
- service
Name 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.
- service
Name 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.
- Created
At string - Creation date of the network.
- Current
State GetCloud Network Private Vrack Current State - Current state of the network:
- Description string
- Network description.
- Id string
- Location
Get
Cloud Network Private Vrack Location - 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 double - 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 GetCloud Network Private Vrack Current State - Current state of the network:
- Description string
- Network description.
- Id string
- Location
Get
Cloud Network Private Vrack Location - 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 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.
- created
At String - Creation date of the network.
- current
State GetCloud Network Private Vrack Current State - Current state of the network:
- description String
- Network description.
- id String
- location
Get
Cloud Network Private Vrack Location - 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 Double - 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 GetCloud Network Private Vrack Current State - Current state of the network:
- description string
- Network description.
- id string
- location
Get
Cloud Network Private Vrack Location - 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 str
- Computed hash representing the current target specification value.
- created_
at str - Creation date of the network.
- current_
state GetCloud Network Private Vrack Current State - Current state of the network:
- description str
- Network description.
- id str
- location
Get
Cloud Network Private Vrack Location - 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.
- created
At String - Creation date of the network.
- current
State Property Map - Current state of the network:
- description String
- Network description.
- id String
- location Property Map
- 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.
Supporting Types
GetCloudNetworkPrivateVrackCurrentState
- Description string
- Network description.
- Location
Get
Cloud Network Private Vrack Current State Location - Location details:
- Name string
- Network name.
- Vlan
Id double - VLAN ID of the network.
- Description string
- Network description.
- Location
Get
Cloud Network Private Vrack Current State Location - Location details:
- Name string
- Network name.
- Vlan
Id 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
Get
Cloud Network Private Vrack Current State Location - Location details:
- name String
- Network name.
- vlan
Id Double - VLAN ID of the network.
- description string
- Network description.
- location
Get
Cloud Network Private Vrack Current State Location - Location details:
- name string
- Network name.
- vlan
Id number - VLAN ID of the network.
- description str
- Network description.
- location
Get
Cloud Network Private Vrack Current State Location - 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.
- vlan
Id 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
ovhTerraform Provider.
Viewing docs for OVHCloud v2.17.0
published on Friday, Jul 17, 2026 by OVHcloud
published on Friday, Jul 17, 2026 by OVHcloud