published on Friday, Jul 17, 2026 by OVHcloud
published on Friday, Jul 17, 2026 by OVHcloud
Creates 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 = new ovh.CloudNetworkPrivateVrack("network", {
serviceName: "<public cloud project ID>",
name: "my-private-network",
region: "GRA1",
description: "My private network",
vlanId: 100,
});
import pulumi
import pulumi_ovh as ovh
network = ovh.CloudNetworkPrivateVrack("network",
service_name="<public cloud project ID>",
name="my-private-network",
region="GRA1",
description="My private network",
vlan_id=100)
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 {
_, err := ovh.NewCloudNetworkPrivateVrack(ctx, "network", &ovh.CloudNetworkPrivateVrackArgs{
ServiceName: pulumi.String("<public cloud project ID>"),
Name: pulumi.String("my-private-network"),
Region: pulumi.String("GRA1"),
Description: pulumi.String("My private network"),
VlanId: pulumi.Float64(100),
})
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 network = new Ovh.CloudNetworkPrivateVrack("network", new()
{
ServiceName = "<public cloud project ID>",
Name = "my-private-network",
Region = "GRA1",
Description = "My private network",
VlanId = 100,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.ovhcloud.pulumi.ovh.CloudNetworkPrivateVrack;
import com.ovhcloud.pulumi.ovh.CloudNetworkPrivateVrackArgs;
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 network = new CloudNetworkPrivateVrack("network", CloudNetworkPrivateVrackArgs.builder()
.serviceName("<public cloud project ID>")
.name("my-private-network")
.region("GRA1")
.description("My private network")
.vlanId(100.0)
.build());
}
}
resources:
network:
type: ovh:CloudNetworkPrivateVrack
properties:
serviceName: <public cloud project ID>
name: my-private-network
region: GRA1
description: My private network
vlanId: 100
Example coming soon!
Create CloudNetworkPrivateVrack Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CloudNetworkPrivateVrack(name: string, args: CloudNetworkPrivateVrackArgs, opts?: CustomResourceOptions);@overload
def CloudNetworkPrivateVrack(resource_name: str,
args: CloudNetworkPrivateVrackArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CloudNetworkPrivateVrack(resource_name: str,
opts: Optional[ResourceOptions] = None,
region: Optional[str] = None,
service_name: Optional[str] = None,
description: Optional[str] = None,
name: Optional[str] = None,
vlan_id: Optional[float] = None)func NewCloudNetworkPrivateVrack(ctx *Context, name string, args CloudNetworkPrivateVrackArgs, opts ...ResourceOption) (*CloudNetworkPrivateVrack, error)public CloudNetworkPrivateVrack(string name, CloudNetworkPrivateVrackArgs args, CustomResourceOptions? opts = null)
public CloudNetworkPrivateVrack(String name, CloudNetworkPrivateVrackArgs args)
public CloudNetworkPrivateVrack(String name, CloudNetworkPrivateVrackArgs args, CustomResourceOptions options)
type: ovh:CloudNetworkPrivateVrack
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "ovh_cloud_network_private_vrack" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args CloudNetworkPrivateVrackArgs
- 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 CloudNetworkPrivateVrackArgs
- 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 CloudNetworkPrivateVrackArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CloudNetworkPrivateVrackArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CloudNetworkPrivateVrackArgs
- 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 cloudNetworkPrivateVrackResource = new Ovh.CloudNetworkPrivateVrack("cloudNetworkPrivateVrackResource", new()
{
Region = "string",
ServiceName = "string",
Description = "string",
Name = "string",
VlanId = 0,
});
example, err := ovh.NewCloudNetworkPrivateVrack(ctx, "cloudNetworkPrivateVrackResource", &ovh.CloudNetworkPrivateVrackArgs{
Region: pulumi.String("string"),
ServiceName: pulumi.String("string"),
Description: pulumi.String("string"),
Name: pulumi.String("string"),
VlanId: pulumi.Float64(0),
})
resource "ovh_cloud_network_private_vrack" "cloudNetworkPrivateVrackResource" {
lifecycle {
create_before_destroy = true
}
region = "string"
service_name = "string"
description = "string"
name = "string"
vlan_id = 0
}
var cloudNetworkPrivateVrackResource = new CloudNetworkPrivateVrack("cloudNetworkPrivateVrackResource", CloudNetworkPrivateVrackArgs.builder()
.region("string")
.serviceName("string")
.description("string")
.name("string")
.vlanId(0.0)
.build());
cloud_network_private_vrack_resource = ovh.CloudNetworkPrivateVrack("cloudNetworkPrivateVrackResource",
region="string",
service_name="string",
description="string",
name="string",
vlan_id=float(0))
const cloudNetworkPrivateVrackResource = new ovh.CloudNetworkPrivateVrack("cloudNetworkPrivateVrackResource", {
region: "string",
serviceName: "string",
description: "string",
name: "string",
vlanId: 0,
});
type: ovh:CloudNetworkPrivateVrack
properties:
description: string
name: string
region: string
serviceName: string
vlanId: 0
CloudNetworkPrivateVrack 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 CloudNetworkPrivateVrack resource accepts the following input properties:
- Region string
- Region where the network will be created. Changing this value recreates the resource.
- Service
Name string - Service name of the resource representing the id of the cloud project. Changing this value recreates the resource.
- Description string
- Network description. Changing this value recreates the resource.
- Name string
- Network name.
- Vlan
Id double - VLAN ID of the network (0-4096). Assigned by the API if not set. Changing this value recreates the resource. Not supported in localzone regions.
- Region string
- Region where the network will be created. Changing this value recreates the resource.
- Service
Name string - Service name of the resource representing the id of the cloud project. Changing this value recreates the resource.
- Description string
- Network description. Changing this value recreates the resource.
- Name string
- Network name.
- Vlan
Id float64 - VLAN ID of the network (0-4096). Assigned by the API if not set. Changing this value recreates the resource. Not supported in localzone regions.
- region string
- Region where the network will be created. Changing this value recreates the resource.
- service_
name string - Service name of the resource representing the id of the cloud project. Changing this value recreates the resource.
- description string
- Network description. Changing this value recreates the resource.
- name string
- Network name.
- vlan_
id number - VLAN ID of the network (0-4096). Assigned by the API if not set. Changing this value recreates the resource. Not supported in localzone regions.
- region String
- Region where the network will be created. Changing this value recreates the resource.
- service
Name String - Service name of the resource representing the id of the cloud project. Changing this value recreates the resource.
- description String
- Network description. Changing this value recreates the resource.
- name String
- Network name.
- vlan
Id Double - VLAN ID of the network (0-4096). Assigned by the API if not set. Changing this value recreates the resource. Not supported in localzone regions.
- region string
- Region where the network will be created. Changing this value recreates the resource.
- service
Name string - Service name of the resource representing the id of the cloud project. Changing this value recreates the resource.
- description string
- Network description. Changing this value recreates the resource.
- name string
- Network name.
- vlan
Id number - VLAN ID of the network (0-4096). Assigned by the API if not set. Changing this value recreates the resource. Not supported in localzone regions.
- region str
- Region where the network will be created. Changing this value recreates the resource.
- service_
name str - Service name of the resource representing the id of the cloud project. Changing this value recreates the resource.
- description str
- Network description. Changing this value recreates the resource.
- name str
- Network name.
- vlan_
id float - VLAN ID of the network (0-4096). Assigned by the API if not set. Changing this value recreates the resource. Not supported in localzone regions.
- region String
- Region where the network will be created. Changing this value recreates the resource.
- service
Name String - Service name of the resource representing the id of the cloud project. Changing this value recreates the resource.
- description String
- Network description. Changing this value recreates the resource.
- name String
- Network name.
- vlan
Id Number - VLAN ID of the network (0-4096). Assigned by the API if not set. Changing this value recreates the resource. Not supported in localzone regions.
Outputs
All input properties are implicitly available as output properties. Additionally, the CloudNetworkPrivateVrack resource produces the following output properties:
- Checksum string
- Computed hash representing the current target specification value.
- Created
At string - Creation date of the network.
- Current
State CloudNetwork Private Vrack Current State - Current state of the network:
- Id string
- The provider-assigned unique ID for this managed resource.
- 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.
- Checksum string
- Computed hash representing the current target specification value.
- Created
At string - Creation date of the network.
- Current
State CloudNetwork Private Vrack Current State - Current state of the network:
- Id string
- The provider-assigned unique ID for this managed resource.
- 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.
- 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:
- id string
- The provider-assigned unique ID for this managed resource.
- 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.
- checksum String
- Computed hash representing the current target specification value.
- created
At String - Creation date of the network.
- current
State CloudNetwork Private Vrack Current State - Current state of the network:
- id String
- The provider-assigned unique ID for this managed resource.
- 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.
- checksum string
- Computed hash representing the current target specification value.
- created
At string - Creation date of the network.
- current
State CloudNetwork Private Vrack Current State - Current state of the network:
- id string
- The provider-assigned unique ID for this managed resource.
- 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.
- checksum str
- Computed hash representing the current target specification value.
- created_
at str - Creation date of the network.
- current_
state CloudNetwork Private Vrack Current State - Current state of the network:
- id str
- The provider-assigned unique ID for this managed resource.
- 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.
- 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:
- id String
- The provider-assigned unique ID for this managed resource.
- 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.
Look up Existing CloudNetworkPrivateVrack Resource
Get an existing CloudNetworkPrivateVrack 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?: CloudNetworkPrivateVrackState, opts?: CustomResourceOptions): CloudNetworkPrivateVrack@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
checksum: Optional[str] = None,
created_at: Optional[str] = None,
current_state: Optional[CloudNetworkPrivateVrackCurrentStateArgs] = None,
description: Optional[str] = None,
name: Optional[str] = None,
region: Optional[str] = None,
resource_status: Optional[str] = None,
service_name: Optional[str] = None,
updated_at: Optional[str] = None,
vlan_id: Optional[float] = None) -> CloudNetworkPrivateVrackfunc GetCloudNetworkPrivateVrack(ctx *Context, name string, id IDInput, state *CloudNetworkPrivateVrackState, opts ...ResourceOption) (*CloudNetworkPrivateVrack, error)public static CloudNetworkPrivateVrack Get(string name, Input<string> id, CloudNetworkPrivateVrackState? state, CustomResourceOptions? opts = null)public static CloudNetworkPrivateVrack get(String name, Output<String> id, CloudNetworkPrivateVrackState state, CustomResourceOptions options)resources: _: type: ovh:CloudNetworkPrivateVrack get: id: ${id}import {
to = ovh_cloud_network_private_vrack.example
id = "${id}"
}
- 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.
- Checksum string
- Computed hash representing the current target specification value.
- Created
At string - Creation date of the network.
- Current
State CloudNetwork Private Vrack Current State - Current state of the network:
- Description string
- Network description. Changing this value recreates the resource.
- Name string
- Network name.
- Region string
- Region where the network will be created. Changing this value recreates the resource.
- Resource
Status string - Network readiness in the system (
CREATING,DELETING,ERROR,OUT_OF_SYNC,READY,UPDATING). - Service
Name string - Service name of the resource representing the id of the cloud project. Changing this value recreates the resource.
- Updated
At string - Last update date of the network.
- Vlan
Id double - VLAN ID of the network (0-4096). Assigned by the API if not set. Changing this value recreates the resource. Not supported in localzone regions.
- Checksum string
- Computed hash representing the current target specification value.
- Created
At string - Creation date of the network.
- Current
State CloudNetwork Private Vrack Current State Args - Current state of the network:
- Description string
- Network description. Changing this value recreates the resource.
- Name string
- Network name.
- Region string
- Region where the network will be created. Changing this value recreates the resource.
- Resource
Status string - Network readiness in the system (
CREATING,DELETING,ERROR,OUT_OF_SYNC,READY,UPDATING). - Service
Name string - Service name of the resource representing the id of the cloud project. Changing this value recreates the resource.
- Updated
At string - Last update date of the network.
- Vlan
Id float64 - VLAN ID of the network (0-4096). Assigned by the API if not set. Changing this value recreates the resource. Not supported in localzone regions.
- 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. Changing this value recreates the resource.
- name string
- Network name.
- region string
- Region where the network will be created. Changing this value recreates the resource.
- resource_
status string - Network readiness in the system (
CREATING,DELETING,ERROR,OUT_OF_SYNC,READY,UPDATING). - service_
name string - Service name of the resource representing the id of the cloud project. Changing this value recreates the resource.
- updated_
at string - Last update date of the network.
- vlan_
id number - VLAN ID of the network (0-4096). Assigned by the API if not set. Changing this value recreates the resource. Not supported in localzone regions.
- checksum String
- Computed hash representing the current target specification value.
- created
At String - Creation date of the network.
- current
State CloudNetwork Private Vrack Current State - Current state of the network:
- description String
- Network description. Changing this value recreates the resource.
- name String
- Network name.
- region String
- Region where the network will be created. Changing this value recreates the resource.
- resource
Status String - Network readiness in the system (
CREATING,DELETING,ERROR,OUT_OF_SYNC,READY,UPDATING). - service
Name String - Service name of the resource representing the id of the cloud project. Changing this value recreates the resource.
- updated
At String - Last update date of the network.
- vlan
Id Double - VLAN ID of the network (0-4096). Assigned by the API if not set. Changing this value recreates the resource. Not supported in localzone regions.
- checksum string
- Computed hash representing the current target specification value.
- created
At string - Creation date of the network.
- current
State CloudNetwork Private Vrack Current State - Current state of the network:
- description string
- Network description. Changing this value recreates the resource.
- name string
- Network name.
- region string
- Region where the network will be created. Changing this value recreates the resource.
- resource
Status string - Network readiness in the system (
CREATING,DELETING,ERROR,OUT_OF_SYNC,READY,UPDATING). - service
Name string - Service name of the resource representing the id of the cloud project. Changing this value recreates the resource.
- updated
At string - Last update date of the network.
- vlan
Id number - VLAN ID of the network (0-4096). Assigned by the API if not set. Changing this value recreates the resource. Not supported in localzone regions.
- checksum str
- Computed hash representing the current target specification value.
- created_
at str - Creation date of the network.
- current_
state CloudNetwork Private Vrack Current State Args - Current state of the network:
- description str
- Network description. Changing this value recreates the resource.
- name str
- Network name.
- region str
- Region where the network will be created. Changing this value recreates the resource.
- resource_
status str - Network readiness in the system (
CREATING,DELETING,ERROR,OUT_OF_SYNC,READY,UPDATING). - service_
name str - Service name of the resource representing the id of the cloud project. Changing this value recreates the resource.
- updated_
at str - Last update date of the network.
- vlan_
id float - VLAN ID of the network (0-4096). Assigned by the API if not set. Changing this value recreates the resource. Not supported in localzone regions.
- 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. Changing this value recreates the resource.
- name String
- Network name.
- region String
- Region where the network will be created. Changing this value recreates the resource.
- resource
Status String - Network readiness in the system (
CREATING,DELETING,ERROR,OUT_OF_SYNC,READY,UPDATING). - service
Name String - Service name of the resource representing the id of the cloud project. Changing this value recreates the resource.
- updated
At String - Last update date of the network.
- vlan
Id Number - VLAN ID of the network (0-4096). Assigned by the API if not set. Changing this value recreates the resource. Not supported in localzone regions.
Supporting Types
CloudNetworkPrivateVrackCurrentState, CloudNetworkPrivateVrackCurrentStateArgs
- Description string
- Network description. Changing this value recreates the resource.
- Location
Cloud
Network Private Vrack Current State Location - Location details:
- Name string
- Network name.
- Vlan
Id double - VLAN ID of the network (0-4096). Assigned by the API if not set. Changing this value recreates the resource. Not supported in localzone regions.
- Description string
- Network description. Changing this value recreates the resource.
- Location
Cloud
Network Private Vrack Current State Location - Location details:
- Name string
- Network name.
- Vlan
Id float64 - VLAN ID of the network (0-4096). Assigned by the API if not set. Changing this value recreates the resource. Not supported in localzone regions.
- description string
- Network description. Changing this value recreates the resource.
- location object
- Location details:
- name string
- Network name.
- vlan_
id number - VLAN ID of the network (0-4096). Assigned by the API if not set. Changing this value recreates the resource. Not supported in localzone regions.
- description String
- Network description. Changing this value recreates the resource.
- location
Cloud
Network Private Vrack Current State Location - Location details:
- name String
- Network name.
- vlan
Id Double - VLAN ID of the network (0-4096). Assigned by the API if not set. Changing this value recreates the resource. Not supported in localzone regions.
- description string
- Network description. Changing this value recreates the resource.
- location
Cloud
Network Private Vrack Current State Location - Location details:
- name string
- Network name.
- vlan
Id number - VLAN ID of the network (0-4096). Assigned by the API if not set. Changing this value recreates the resource. Not supported in localzone regions.
- description str
- Network description. Changing this value recreates the resource.
- location
Cloud
Network Private Vrack Current State Location - Location details:
- name str
- Network name.
- vlan_
id float - VLAN ID of the network (0-4096). Assigned by the API if not set. Changing this value recreates the resource. Not supported in localzone regions.
- description String
- Network description. Changing this value recreates the resource.
- location Property Map
- Location details:
- name String
- Network name.
- vlan
Id Number - VLAN ID of the network (0-4096). Assigned by the API if not set. Changing this value recreates the resource. Not supported in localzone regions.
CloudNetworkPrivateVrackCurrentStateLocation, CloudNetworkPrivateVrackCurrentStateLocationArgs
- Region string
- Region where the network will be created. Changing this value recreates the resource.
- Region string
- Region where the network will be created. Changing this value recreates the resource.
- region string
- Region where the network will be created. Changing this value recreates the resource.
- region String
- Region where the network will be created. Changing this value recreates the resource.
- region string
- Region where the network will be created. Changing this value recreates the resource.
- region str
- Region where the network will be created. Changing this value recreates the resource.
- region String
- Region where the network will be created. Changing this value recreates the resource.
Import
A cloud private network can be imported using the service_name and network_id, separated by /:
terraform
import {
to = ovh_cloud_network_private_vrack.network
id = “<service_name>/<network_id>”
}
bash
$ pulumi import ovh:index/cloudNetworkPrivateVrack:CloudNetworkPrivateVrack network service_name/network_id
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
ovhTerraform Provider.
published on Friday, Jul 17, 2026 by OVHcloud