published on Monday, Jun 29, 2026 by OVHcloud
published on Monday, Jun 29, 2026 by OVHcloud
Creates a subnet in 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",
});
const subnet = new ovh.CloudNetworkPrivateVrackSubnet("subnet", {
serviceName: network.serviceName,
networkId: network.id,
name: "my-subnet",
cidr: "10.0.0.0/24",
dhcpEnabled: true,
gatewayIp: "10.0.0.1",
region: "GRA1",
dnsNameservers: ["213.186.33.99"],
allocationPools: [{
start: "10.0.0.2",
end: "10.0.0.254",
}],
});
import pulumi
import pulumi_ovh as ovh
network = ovh.CloudNetworkPrivateVrack("network",
service_name="<public cloud project ID>",
name="my-private-network",
region="GRA1")
subnet = ovh.CloudNetworkPrivateVrackSubnet("subnet",
service_name=network.service_name,
network_id=network.id,
name="my-subnet",
cidr="10.0.0.0/24",
dhcp_enabled=True,
gateway_ip="10.0.0.1",
region="GRA1",
dns_nameservers=["213.186.33.99"],
allocation_pools=[{
"start": "10.0.0.2",
"end": "10.0.0.254",
}])
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.NewCloudNetworkPrivateVrack(ctx, "network", &ovh.CloudNetworkPrivateVrackArgs{
ServiceName: pulumi.String("<public cloud project ID>"),
Name: pulumi.String("my-private-network"),
Region: pulumi.String("GRA1"),
})
if err != nil {
return err
}
_, err = ovh.NewCloudNetworkPrivateVrackSubnet(ctx, "subnet", &ovh.CloudNetworkPrivateVrackSubnetArgs{
ServiceName: network.ServiceName,
NetworkId: network.ID(),
Name: pulumi.String("my-subnet"),
Cidr: pulumi.String("10.0.0.0/24"),
DhcpEnabled: pulumi.Bool(true),
GatewayIp: pulumi.String("10.0.0.1"),
Region: pulumi.String("GRA1"),
DnsNameservers: pulumi.StringArray{
pulumi.String("213.186.33.99"),
},
AllocationPools: ovh.CloudNetworkPrivateVrackSubnetAllocationPoolArray{
&ovh.CloudNetworkPrivateVrackSubnetAllocationPoolArgs{
Start: pulumi.String("10.0.0.2"),
End: pulumi.String("10.0.0.254"),
},
},
})
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",
});
var subnet = new Ovh.CloudNetworkPrivateVrackSubnet("subnet", new()
{
ServiceName = network.ServiceName,
NetworkId = network.Id,
Name = "my-subnet",
Cidr = "10.0.0.0/24",
DhcpEnabled = true,
GatewayIp = "10.0.0.1",
Region = "GRA1",
DnsNameservers = new[]
{
"213.186.33.99",
},
AllocationPools = new[]
{
new Ovh.Inputs.CloudNetworkPrivateVrackSubnetAllocationPoolArgs
{
Start = "10.0.0.2",
End = "10.0.0.254",
},
},
});
});
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 com.ovhcloud.pulumi.ovh.CloudNetworkPrivateVrackSubnet;
import com.ovhcloud.pulumi.ovh.CloudNetworkPrivateVrackSubnetArgs;
import com.pulumi.ovh.inputs.CloudNetworkPrivateVrackSubnetAllocationPoolArgs;
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")
.build());
var subnet = new CloudNetworkPrivateVrackSubnet("subnet", CloudNetworkPrivateVrackSubnetArgs.builder()
.serviceName(network.serviceName())
.networkId(network.id())
.name("my-subnet")
.cidr("10.0.0.0/24")
.dhcpEnabled(true)
.gatewayIp("10.0.0.1")
.region("GRA1")
.dnsNameservers("213.186.33.99")
.allocationPools(CloudNetworkPrivateVrackSubnetAllocationPoolArgs.builder()
.start("10.0.0.2")
.end("10.0.0.254")
.build())
.build());
}
}
resources:
network:
type: ovh:CloudNetworkPrivateVrack
properties:
serviceName: <public cloud project ID>
name: my-private-network
region: GRA1
subnet:
type: ovh:CloudNetworkPrivateVrackSubnet
properties:
serviceName: ${network.serviceName}
networkId: ${network.id}
name: my-subnet
cidr: 10.0.0.0/24
dhcpEnabled: true
gatewayIp: 10.0.0.1
region: GRA1
dnsNameservers:
- 213.186.33.99
allocationPools:
- start: 10.0.0.2
end: 10.0.0.254
Example coming soon!
Create CloudNetworkPrivateVrackSubnet Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CloudNetworkPrivateVrackSubnet(name: string, args: CloudNetworkPrivateVrackSubnetArgs, opts?: CustomResourceOptions);@overload
def CloudNetworkPrivateVrackSubnet(resource_name: str,
args: CloudNetworkPrivateVrackSubnetArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CloudNetworkPrivateVrackSubnet(resource_name: str,
opts: Optional[ResourceOptions] = None,
cidr: Optional[str] = None,
network_id: Optional[str] = None,
region: Optional[str] = None,
service_name: Optional[str] = None,
allocation_pools: Optional[Sequence[CloudNetworkPrivateVrackSubnetAllocationPoolArgs]] = None,
availability_zone: Optional[str] = None,
description: Optional[str] = None,
dhcp_enabled: Optional[bool] = None,
dns_nameservers: Optional[Sequence[str]] = None,
gateway_ip: Optional[str] = None,
name: Optional[str] = None)func NewCloudNetworkPrivateVrackSubnet(ctx *Context, name string, args CloudNetworkPrivateVrackSubnetArgs, opts ...ResourceOption) (*CloudNetworkPrivateVrackSubnet, error)public CloudNetworkPrivateVrackSubnet(string name, CloudNetworkPrivateVrackSubnetArgs args, CustomResourceOptions? opts = null)
public CloudNetworkPrivateVrackSubnet(String name, CloudNetworkPrivateVrackSubnetArgs args)
public CloudNetworkPrivateVrackSubnet(String name, CloudNetworkPrivateVrackSubnetArgs args, CustomResourceOptions options)
type: ovh:CloudNetworkPrivateVrackSubnet
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "ovh_cloudnetworkprivatevracksubnet" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args CloudNetworkPrivateVrackSubnetArgs
- 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 CloudNetworkPrivateVrackSubnetArgs
- 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 CloudNetworkPrivateVrackSubnetArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CloudNetworkPrivateVrackSubnetArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CloudNetworkPrivateVrackSubnetArgs
- 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 cloudNetworkPrivateVrackSubnetResource = new Ovh.CloudNetworkPrivateVrackSubnet("cloudNetworkPrivateVrackSubnetResource", new()
{
Cidr = "string",
NetworkId = "string",
Region = "string",
ServiceName = "string",
AllocationPools = new[]
{
new Ovh.Inputs.CloudNetworkPrivateVrackSubnetAllocationPoolArgs
{
End = "string",
Start = "string",
},
},
AvailabilityZone = "string",
Description = "string",
DhcpEnabled = false,
DnsNameservers = new[]
{
"string",
},
GatewayIp = "string",
Name = "string",
});
example, err := ovh.NewCloudNetworkPrivateVrackSubnet(ctx, "cloudNetworkPrivateVrackSubnetResource", &ovh.CloudNetworkPrivateVrackSubnetArgs{
Cidr: pulumi.String("string"),
NetworkId: pulumi.String("string"),
Region: pulumi.String("string"),
ServiceName: pulumi.String("string"),
AllocationPools: ovh.CloudNetworkPrivateVrackSubnetAllocationPoolArray{
&ovh.CloudNetworkPrivateVrackSubnetAllocationPoolArgs{
End: pulumi.String("string"),
Start: pulumi.String("string"),
},
},
AvailabilityZone: pulumi.String("string"),
Description: pulumi.String("string"),
DhcpEnabled: pulumi.Bool(false),
DnsNameservers: pulumi.StringArray{
pulumi.String("string"),
},
GatewayIp: pulumi.String("string"),
Name: pulumi.String("string"),
})
resource "ovh_cloudnetworkprivatevracksubnet" "cloudNetworkPrivateVrackSubnetResource" {
cidr = "string"
network_id = "string"
region = "string"
service_name = "string"
allocation_pools {
end = "string"
start = "string"
}
availability_zone = "string"
description = "string"
dhcp_enabled = false
dns_nameservers = ["string"]
gateway_ip = "string"
name = "string"
}
var cloudNetworkPrivateVrackSubnetResource = new CloudNetworkPrivateVrackSubnet("cloudNetworkPrivateVrackSubnetResource", CloudNetworkPrivateVrackSubnetArgs.builder()
.cidr("string")
.networkId("string")
.region("string")
.serviceName("string")
.allocationPools(CloudNetworkPrivateVrackSubnetAllocationPoolArgs.builder()
.end("string")
.start("string")
.build())
.availabilityZone("string")
.description("string")
.dhcpEnabled(false)
.dnsNameservers("string")
.gatewayIp("string")
.name("string")
.build());
cloud_network_private_vrack_subnet_resource = ovh.CloudNetworkPrivateVrackSubnet("cloudNetworkPrivateVrackSubnetResource",
cidr="string",
network_id="string",
region="string",
service_name="string",
allocation_pools=[{
"end": "string",
"start": "string",
}],
availability_zone="string",
description="string",
dhcp_enabled=False,
dns_nameservers=["string"],
gateway_ip="string",
name="string")
const cloudNetworkPrivateVrackSubnetResource = new ovh.CloudNetworkPrivateVrackSubnet("cloudNetworkPrivateVrackSubnetResource", {
cidr: "string",
networkId: "string",
region: "string",
serviceName: "string",
allocationPools: [{
end: "string",
start: "string",
}],
availabilityZone: "string",
description: "string",
dhcpEnabled: false,
dnsNameservers: ["string"],
gatewayIp: "string",
name: "string",
});
type: ovh:CloudNetworkPrivateVrackSubnet
properties:
allocationPools:
- end: string
start: string
availabilityZone: string
cidr: string
description: string
dhcpEnabled: false
dnsNameservers:
- string
gatewayIp: string
name: string
networkId: string
region: string
serviceName: string
CloudNetworkPrivateVrackSubnet 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 CloudNetworkPrivateVrackSubnet resource accepts the following input properties:
- Cidr string
- CIDR address range for the subnet (e.g.
10.0.0.0/24). Changing this value recreates the resource. - Network
Id string - Network ID of the parent private network. Changing this value recreates the resource.
- Region string
- Region where the subnet will be created. Changing this value recreates the resource.
- Service
Name string - Service name (ID of the cloud project). Changing this value recreates the resource.
- Allocation
Pools List<CloudNetwork Private Vrack Subnet Allocation Pool> - IP address allocation pools:
- Availability
Zone string - Availability zone within the region.
- Description string
- Subnet description.
- Dhcp
Enabled bool - Whether DHCP is enabled on the subnet.
- Dns
Nameservers List<string> - List of DNS nameserver addresses.
- Gateway
Ip string - Default gateway IP address.
- Name string
- Subnet name.
- Cidr string
- CIDR address range for the subnet (e.g.
10.0.0.0/24). Changing this value recreates the resource. - Network
Id string - Network ID of the parent private network. Changing this value recreates the resource.
- Region string
- Region where the subnet will be created. Changing this value recreates the resource.
- Service
Name string - Service name (ID of the cloud project). Changing this value recreates the resource.
- Allocation
Pools []CloudNetwork Private Vrack Subnet Allocation Pool Args - IP address allocation pools:
- Availability
Zone string - Availability zone within the region.
- Description string
- Subnet description.
- Dhcp
Enabled bool - Whether DHCP is enabled on the subnet.
- Dns
Nameservers []string - List of DNS nameserver addresses.
- Gateway
Ip string - Default gateway IP address.
- Name string
- Subnet name.
- cidr string
- CIDR address range for the subnet (e.g.
10.0.0.0/24). Changing this value recreates the resource. - network_
id string - Network ID of the parent private network. Changing this value recreates the resource.
- region string
- Region where the subnet will be created. Changing this value recreates the resource.
- service_
name string - Service name (ID of the cloud project). Changing this value recreates the resource.
- allocation_
pools list(object) - IP address allocation pools:
- availability_
zone string - Availability zone within the region.
- description string
- Subnet description.
- dhcp_
enabled bool - Whether DHCP is enabled on the subnet.
- dns_
nameservers list(string) - List of DNS nameserver addresses.
- gateway_
ip string - Default gateway IP address.
- name string
- Subnet name.
- cidr String
- CIDR address range for the subnet (e.g.
10.0.0.0/24). Changing this value recreates the resource. - network
Id String - Network ID of the parent private network. Changing this value recreates the resource.
- region String
- Region where the subnet will be created. Changing this value recreates the resource.
- service
Name String - Service name (ID of the cloud project). Changing this value recreates the resource.
- allocation
Pools List<CloudNetwork Private Vrack Subnet Allocation Pool> - IP address allocation pools:
- availability
Zone String - Availability zone within the region.
- description String
- Subnet description.
- dhcp
Enabled Boolean - Whether DHCP is enabled on the subnet.
- dns
Nameservers List<String> - List of DNS nameserver addresses.
- gateway
Ip String - Default gateway IP address.
- name String
- Subnet name.
- cidr string
- CIDR address range for the subnet (e.g.
10.0.0.0/24). Changing this value recreates the resource. - network
Id string - Network ID of the parent private network. Changing this value recreates the resource.
- region string
- Region where the subnet will be created. Changing this value recreates the resource.
- service
Name string - Service name (ID of the cloud project). Changing this value recreates the resource.
- allocation
Pools CloudNetwork Private Vrack Subnet Allocation Pool[] - IP address allocation pools:
- availability
Zone string - Availability zone within the region.
- description string
- Subnet description.
- dhcp
Enabled boolean - Whether DHCP is enabled on the subnet.
- dns
Nameservers string[] - List of DNS nameserver addresses.
- gateway
Ip string - Default gateway IP address.
- name string
- Subnet name.
- cidr str
- CIDR address range for the subnet (e.g.
10.0.0.0/24). Changing this value recreates the resource. - network_
id str - Network ID of the parent private network. Changing this value recreates the resource.
- region str
- Region where the subnet will be created. Changing this value recreates the resource.
- service_
name str - Service name (ID of the cloud project). Changing this value recreates the resource.
- allocation_
pools Sequence[CloudNetwork Private Vrack Subnet Allocation Pool Args] - IP address allocation pools:
- availability_
zone str - Availability zone within the region.
- description str
- Subnet description.
- dhcp_
enabled bool - Whether DHCP is enabled on the subnet.
- dns_
nameservers Sequence[str] - List of DNS nameserver addresses.
- gateway_
ip str - Default gateway IP address.
- name str
- Subnet name.
- cidr String
- CIDR address range for the subnet (e.g.
10.0.0.0/24). Changing this value recreates the resource. - network
Id String - Network ID of the parent private network. Changing this value recreates the resource.
- region String
- Region where the subnet will be created. Changing this value recreates the resource.
- service
Name String - Service name (ID of the cloud project). Changing this value recreates the resource.
- allocation
Pools List<Property Map> - IP address allocation pools:
- availability
Zone String - Availability zone within the region.
- description String
- Subnet description.
- dhcp
Enabled Boolean - Whether DHCP is enabled on the subnet.
- dns
Nameservers List<String> - List of DNS nameserver addresses.
- gateway
Ip String - Default gateway IP address.
- name String
- Subnet name.
Outputs
All input properties are implicitly available as output properties. Additionally, the CloudNetworkPrivateVrackSubnet resource produces the following output properties:
- Checksum string
- Computed hash representing the current target specification value.
- Created
At string - Creation date of the subnet.
- Current
State CloudNetwork Private Vrack Subnet Current State - Current state of the subnet:
- Current
Tasks List<CloudNetwork Private Vrack Subnet Current Task> - Ongoing asynchronous tasks related to the subnet
- Id string
- The provider-assigned unique ID for this managed resource.
- Resource
Status string - Subnet readiness in the system (
CREATING,DELETING,ERROR,OUT_OF_SYNC,READY,UPDATING). - Updated
At string - Last update date of the subnet.
- Checksum string
- Computed hash representing the current target specification value.
- Created
At string - Creation date of the subnet.
- Current
State CloudNetwork Private Vrack Subnet Current State - Current state of the subnet:
- Current
Tasks []CloudNetwork Private Vrack Subnet Current Task - Ongoing asynchronous tasks related to the subnet
- Id string
- The provider-assigned unique ID for this managed resource.
- Resource
Status string - Subnet readiness in the system (
CREATING,DELETING,ERROR,OUT_OF_SYNC,READY,UPDATING). - Updated
At string - Last update date of the subnet.
- checksum string
- Computed hash representing the current target specification value.
- created_
at string - Creation date of the subnet.
- current_
state object - Current state of the subnet:
- current_
tasks list(object) - Ongoing asynchronous tasks related to the subnet
- id string
- The provider-assigned unique ID for this managed resource.
- resource_
status string - Subnet readiness in the system (
CREATING,DELETING,ERROR,OUT_OF_SYNC,READY,UPDATING). - updated_
at string - Last update date of the subnet.
- checksum String
- Computed hash representing the current target specification value.
- created
At String - Creation date of the subnet.
- current
State CloudNetwork Private Vrack Subnet Current State - Current state of the subnet:
- current
Tasks List<CloudNetwork Private Vrack Subnet Current Task> - Ongoing asynchronous tasks related to the subnet
- id String
- The provider-assigned unique ID for this managed resource.
- resource
Status String - Subnet readiness in the system (
CREATING,DELETING,ERROR,OUT_OF_SYNC,READY,UPDATING). - updated
At String - Last update date of the subnet.
- checksum string
- Computed hash representing the current target specification value.
- created
At string - Creation date of the subnet.
- current
State CloudNetwork Private Vrack Subnet Current State - Current state of the subnet:
- current
Tasks CloudNetwork Private Vrack Subnet Current Task[] - Ongoing asynchronous tasks related to the subnet
- id string
- The provider-assigned unique ID for this managed resource.
- resource
Status string - Subnet readiness in the system (
CREATING,DELETING,ERROR,OUT_OF_SYNC,READY,UPDATING). - updated
At string - Last update date of the subnet.
- checksum str
- Computed hash representing the current target specification value.
- created_
at str - Creation date of the subnet.
- current_
state CloudNetwork Private Vrack Subnet Current State - Current state of the subnet:
- current_
tasks Sequence[CloudNetwork Private Vrack Subnet Current Task] - Ongoing asynchronous tasks related to the subnet
- id str
- The provider-assigned unique ID for this managed resource.
- resource_
status str - Subnet readiness in the system (
CREATING,DELETING,ERROR,OUT_OF_SYNC,READY,UPDATING). - updated_
at str - Last update date of the subnet.
- checksum String
- Computed hash representing the current target specification value.
- created
At String - Creation date of the subnet.
- current
State Property Map - Current state of the subnet:
- current
Tasks List<Property Map> - Ongoing asynchronous tasks related to the subnet
- id String
- The provider-assigned unique ID for this managed resource.
- resource
Status String - Subnet readiness in the system (
CREATING,DELETING,ERROR,OUT_OF_SYNC,READY,UPDATING). - updated
At String - Last update date of the subnet.
Look up Existing CloudNetworkPrivateVrackSubnet Resource
Get an existing CloudNetworkPrivateVrackSubnet 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?: CloudNetworkPrivateVrackSubnetState, opts?: CustomResourceOptions): CloudNetworkPrivateVrackSubnet@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
allocation_pools: Optional[Sequence[CloudNetworkPrivateVrackSubnetAllocationPoolArgs]] = None,
availability_zone: Optional[str] = None,
checksum: Optional[str] = None,
cidr: Optional[str] = None,
created_at: Optional[str] = None,
current_state: Optional[CloudNetworkPrivateVrackSubnetCurrentStateArgs] = None,
current_tasks: Optional[Sequence[CloudNetworkPrivateVrackSubnetCurrentTaskArgs]] = None,
description: Optional[str] = None,
dhcp_enabled: Optional[bool] = None,
dns_nameservers: Optional[Sequence[str]] = None,
gateway_ip: Optional[str] = None,
name: Optional[str] = None,
network_id: Optional[str] = None,
region: Optional[str] = None,
resource_status: Optional[str] = None,
service_name: Optional[str] = None,
updated_at: Optional[str] = None) -> CloudNetworkPrivateVrackSubnetfunc GetCloudNetworkPrivateVrackSubnet(ctx *Context, name string, id IDInput, state *CloudNetworkPrivateVrackSubnetState, opts ...ResourceOption) (*CloudNetworkPrivateVrackSubnet, error)public static CloudNetworkPrivateVrackSubnet Get(string name, Input<string> id, CloudNetworkPrivateVrackSubnetState? state, CustomResourceOptions? opts = null)public static CloudNetworkPrivateVrackSubnet get(String name, Output<String> id, CloudNetworkPrivateVrackSubnetState state, CustomResourceOptions options)resources: _: type: ovh:CloudNetworkPrivateVrackSubnet get: id: ${id}import {
to = ovh_cloudnetworkprivatevracksubnet.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.
- Allocation
Pools List<CloudNetwork Private Vrack Subnet Allocation Pool> - IP address allocation pools:
- Availability
Zone string - Availability zone within the region.
- Checksum string
- Computed hash representing the current target specification value.
- Cidr string
- CIDR address range for the subnet (e.g.
10.0.0.0/24). Changing this value recreates the resource. - Created
At string - Creation date of the subnet.
- Current
State CloudNetwork Private Vrack Subnet Current State - Current state of the subnet:
- Current
Tasks List<CloudNetwork Private Vrack Subnet Current Task> - Ongoing asynchronous tasks related to the subnet
- Description string
- Subnet description.
- Dhcp
Enabled bool - Whether DHCP is enabled on the subnet.
- Dns
Nameservers List<string> - List of DNS nameserver addresses.
- Gateway
Ip string - Default gateway IP address.
- Name string
- Subnet name.
- Network
Id string - Network ID of the parent private network. Changing this value recreates the resource.
- Region string
- Region where the subnet will be created. Changing this value recreates the resource.
- Resource
Status string - Subnet readiness in the system (
CREATING,DELETING,ERROR,OUT_OF_SYNC,READY,UPDATING). - Service
Name string - Service name (ID of the cloud project). Changing this value recreates the resource.
- Updated
At string - Last update date of the subnet.
- Allocation
Pools []CloudNetwork Private Vrack Subnet Allocation Pool Args - IP address allocation pools:
- Availability
Zone string - Availability zone within the region.
- Checksum string
- Computed hash representing the current target specification value.
- Cidr string
- CIDR address range for the subnet (e.g.
10.0.0.0/24). Changing this value recreates the resource. - Created
At string - Creation date of the subnet.
- Current
State CloudNetwork Private Vrack Subnet Current State Args - Current state of the subnet:
- Current
Tasks []CloudNetwork Private Vrack Subnet Current Task Args - Ongoing asynchronous tasks related to the subnet
- Description string
- Subnet description.
- Dhcp
Enabled bool - Whether DHCP is enabled on the subnet.
- Dns
Nameservers []string - List of DNS nameserver addresses.
- Gateway
Ip string - Default gateway IP address.
- Name string
- Subnet name.
- Network
Id string - Network ID of the parent private network. Changing this value recreates the resource.
- Region string
- Region where the subnet will be created. Changing this value recreates the resource.
- Resource
Status string - Subnet readiness in the system (
CREATING,DELETING,ERROR,OUT_OF_SYNC,READY,UPDATING). - Service
Name string - Service name (ID of the cloud project). Changing this value recreates the resource.
- Updated
At string - Last update date of the subnet.
- allocation_
pools list(object) - IP address allocation pools:
- availability_
zone string - Availability zone within the region.
- checksum string
- Computed hash representing the current target specification value.
- cidr string
- CIDR address range for the subnet (e.g.
10.0.0.0/24). Changing this value recreates the resource. - created_
at string - Creation date of the subnet.
- current_
state object - Current state of the subnet:
- current_
tasks list(object) - Ongoing asynchronous tasks related to the subnet
- description string
- Subnet description.
- dhcp_
enabled bool - Whether DHCP is enabled on the subnet.
- dns_
nameservers list(string) - List of DNS nameserver addresses.
- gateway_
ip string - Default gateway IP address.
- name string
- Subnet name.
- network_
id string - Network ID of the parent private network. Changing this value recreates the resource.
- region string
- Region where the subnet will be created. Changing this value recreates the resource.
- resource_
status string - Subnet readiness in the system (
CREATING,DELETING,ERROR,OUT_OF_SYNC,READY,UPDATING). - service_
name string - Service name (ID of the cloud project). Changing this value recreates the resource.
- updated_
at string - Last update date of the subnet.
- allocation
Pools List<CloudNetwork Private Vrack Subnet Allocation Pool> - IP address allocation pools:
- availability
Zone String - Availability zone within the region.
- checksum String
- Computed hash representing the current target specification value.
- cidr String
- CIDR address range for the subnet (e.g.
10.0.0.0/24). Changing this value recreates the resource. - created
At String - Creation date of the subnet.
- current
State CloudNetwork Private Vrack Subnet Current State - Current state of the subnet:
- current
Tasks List<CloudNetwork Private Vrack Subnet Current Task> - Ongoing asynchronous tasks related to the subnet
- description String
- Subnet description.
- dhcp
Enabled Boolean - Whether DHCP is enabled on the subnet.
- dns
Nameservers List<String> - List of DNS nameserver addresses.
- gateway
Ip String - Default gateway IP address.
- name String
- Subnet name.
- network
Id String - Network ID of the parent private network. Changing this value recreates the resource.
- region String
- Region where the subnet will be created. Changing this value recreates the resource.
- resource
Status String - Subnet readiness in the system (
CREATING,DELETING,ERROR,OUT_OF_SYNC,READY,UPDATING). - service
Name String - Service name (ID of the cloud project). Changing this value recreates the resource.
- updated
At String - Last update date of the subnet.
- allocation
Pools CloudNetwork Private Vrack Subnet Allocation Pool[] - IP address allocation pools:
- availability
Zone string - Availability zone within the region.
- checksum string
- Computed hash representing the current target specification value.
- cidr string
- CIDR address range for the subnet (e.g.
10.0.0.0/24). Changing this value recreates the resource. - created
At string - Creation date of the subnet.
- current
State CloudNetwork Private Vrack Subnet Current State - Current state of the subnet:
- current
Tasks CloudNetwork Private Vrack Subnet Current Task[] - Ongoing asynchronous tasks related to the subnet
- description string
- Subnet description.
- dhcp
Enabled boolean - Whether DHCP is enabled on the subnet.
- dns
Nameservers string[] - List of DNS nameserver addresses.
- gateway
Ip string - Default gateway IP address.
- name string
- Subnet name.
- network
Id string - Network ID of the parent private network. Changing this value recreates the resource.
- region string
- Region where the subnet will be created. Changing this value recreates the resource.
- resource
Status string - Subnet readiness in the system (
CREATING,DELETING,ERROR,OUT_OF_SYNC,READY,UPDATING). - service
Name string - Service name (ID of the cloud project). Changing this value recreates the resource.
- updated
At string - Last update date of the subnet.
- allocation_
pools Sequence[CloudNetwork Private Vrack Subnet Allocation Pool Args] - IP address allocation pools:
- availability_
zone str - Availability zone within the region.
- checksum str
- Computed hash representing the current target specification value.
- cidr str
- CIDR address range for the subnet (e.g.
10.0.0.0/24). Changing this value recreates the resource. - created_
at str - Creation date of the subnet.
- current_
state CloudNetwork Private Vrack Subnet Current State Args - Current state of the subnet:
- current_
tasks Sequence[CloudNetwork Private Vrack Subnet Current Task Args] - Ongoing asynchronous tasks related to the subnet
- description str
- Subnet description.
- dhcp_
enabled bool - Whether DHCP is enabled on the subnet.
- dns_
nameservers Sequence[str] - List of DNS nameserver addresses.
- gateway_
ip str - Default gateway IP address.
- name str
- Subnet name.
- network_
id str - Network ID of the parent private network. Changing this value recreates the resource.
- region str
- Region where the subnet will be created. Changing this value recreates the resource.
- resource_
status str - Subnet readiness in the system (
CREATING,DELETING,ERROR,OUT_OF_SYNC,READY,UPDATING). - service_
name str - Service name (ID of the cloud project). Changing this value recreates the resource.
- updated_
at str - Last update date of the subnet.
- allocation
Pools List<Property Map> - IP address allocation pools:
- availability
Zone String - Availability zone within the region.
- checksum String
- Computed hash representing the current target specification value.
- cidr String
- CIDR address range for the subnet (e.g.
10.0.0.0/24). Changing this value recreates the resource. - created
At String - Creation date of the subnet.
- current
State Property Map - Current state of the subnet:
- current
Tasks List<Property Map> - Ongoing asynchronous tasks related to the subnet
- description String
- Subnet description.
- dhcp
Enabled Boolean - Whether DHCP is enabled on the subnet.
- dns
Nameservers List<String> - List of DNS nameserver addresses.
- gateway
Ip String - Default gateway IP address.
- name String
- Subnet name.
- network
Id String - Network ID of the parent private network. Changing this value recreates the resource.
- region String
- Region where the subnet will be created. Changing this value recreates the resource.
- resource
Status String - Subnet readiness in the system (
CREATING,DELETING,ERROR,OUT_OF_SYNC,READY,UPDATING). - service
Name String - Service name (ID of the cloud project). Changing this value recreates the resource.
- updated
At String - Last update date of the subnet.
Supporting Types
CloudNetworkPrivateVrackSubnetAllocationPool, CloudNetworkPrivateVrackSubnetAllocationPoolArgs
CloudNetworkPrivateVrackSubnetCurrentState, CloudNetworkPrivateVrackSubnetCurrentStateArgs
- Allocation
Pools List<CloudNetwork Private Vrack Subnet Current State Allocation Pool> - IP address allocation pools:
- Cidr string
- CIDR address range for the subnet (e.g.
10.0.0.0/24). Changing this value recreates the resource. - Description string
- Subnet description.
- Dhcp
Enabled bool - Whether DHCP is enabled on the subnet.
- Dns
Nameservers List<string> - List of DNS nameserver addresses.
- Gateway
Ip string - Default gateway IP address.
- Host
Routes List<CloudNetwork Private Vrack Subnet Current State Host Route> - Static host routes:
- Location
Cloud
Network Private Vrack Subnet Current State Location - Location details:
- Name string
- Subnet name.
- Allocation
Pools []CloudNetwork Private Vrack Subnet Current State Allocation Pool - IP address allocation pools:
- Cidr string
- CIDR address range for the subnet (e.g.
10.0.0.0/24). Changing this value recreates the resource. - Description string
- Subnet description.
- Dhcp
Enabled bool - Whether DHCP is enabled on the subnet.
- Dns
Nameservers []string - List of DNS nameserver addresses.
- Gateway
Ip string - Default gateway IP address.
- Host
Routes []CloudNetwork Private Vrack Subnet Current State Host Route - Static host routes:
- Location
Cloud
Network Private Vrack Subnet Current State Location - Location details:
- Name string
- Subnet name.
- allocation_
pools list(object) - IP address allocation pools:
- cidr string
- CIDR address range for the subnet (e.g.
10.0.0.0/24). Changing this value recreates the resource. - description string
- Subnet description.
- dhcp_
enabled bool - Whether DHCP is enabled on the subnet.
- dns_
nameservers list(string) - List of DNS nameserver addresses.
- gateway_
ip string - Default gateway IP address.
- host_
routes list(object) - Static host routes:
- location object
- Location details:
- name string
- Subnet name.
- allocation
Pools List<CloudNetwork Private Vrack Subnet Current State Allocation Pool> - IP address allocation pools:
- cidr String
- CIDR address range for the subnet (e.g.
10.0.0.0/24). Changing this value recreates the resource. - description String
- Subnet description.
- dhcp
Enabled Boolean - Whether DHCP is enabled on the subnet.
- dns
Nameservers List<String> - List of DNS nameserver addresses.
- gateway
Ip String - Default gateway IP address.
- host
Routes List<CloudNetwork Private Vrack Subnet Current State Host Route> - Static host routes:
- location
Cloud
Network Private Vrack Subnet Current State Location - Location details:
- name String
- Subnet name.
- allocation
Pools CloudNetwork Private Vrack Subnet Current State Allocation Pool[] - IP address allocation pools:
- cidr string
- CIDR address range for the subnet (e.g.
10.0.0.0/24). Changing this value recreates the resource. - description string
- Subnet description.
- dhcp
Enabled boolean - Whether DHCP is enabled on the subnet.
- dns
Nameservers string[] - List of DNS nameserver addresses.
- gateway
Ip string - Default gateway IP address.
- host
Routes CloudNetwork Private Vrack Subnet Current State Host Route[] - Static host routes:
- location
Cloud
Network Private Vrack Subnet Current State Location - Location details:
- name string
- Subnet name.
- allocation_
pools Sequence[CloudNetwork Private Vrack Subnet Current State Allocation Pool] - IP address allocation pools:
- cidr str
- CIDR address range for the subnet (e.g.
10.0.0.0/24). Changing this value recreates the resource. - description str
- Subnet description.
- dhcp_
enabled bool - Whether DHCP is enabled on the subnet.
- dns_
nameservers Sequence[str] - List of DNS nameserver addresses.
- gateway_
ip str - Default gateway IP address.
- host_
routes Sequence[CloudNetwork Private Vrack Subnet Current State Host Route] - Static host routes:
- location
Cloud
Network Private Vrack Subnet Current State Location - Location details:
- name str
- Subnet name.
- allocation
Pools List<Property Map> - IP address allocation pools:
- cidr String
- CIDR address range for the subnet (e.g.
10.0.0.0/24). Changing this value recreates the resource. - description String
- Subnet description.
- dhcp
Enabled Boolean - Whether DHCP is enabled on the subnet.
- dns
Nameservers List<String> - List of DNS nameserver addresses.
- gateway
Ip String - Default gateway IP address.
- host
Routes List<Property Map> - Static host routes:
- location Property Map
- Location details:
- name String
- Subnet name.
CloudNetworkPrivateVrackSubnetCurrentStateAllocationPool, CloudNetworkPrivateVrackSubnetCurrentStateAllocationPoolArgs
CloudNetworkPrivateVrackSubnetCurrentStateHostRoute, CloudNetworkPrivateVrackSubnetCurrentStateHostRouteArgs
- Destination string
- Destination CIDR.
- Next
Hop string - Next hop IP address.
- Destination string
- Destination CIDR.
- Next
Hop string - Next hop IP address.
- destination string
- Destination CIDR.
- next_
hop string - Next hop IP address.
- destination String
- Destination CIDR.
- next
Hop String - Next hop IP address.
- destination string
- Destination CIDR.
- next
Hop string - Next hop IP address.
- destination str
- Destination CIDR.
- next_
hop str - Next hop IP address.
- destination String
- Destination CIDR.
- next
Hop String - Next hop IP address.
CloudNetworkPrivateVrackSubnetCurrentStateLocation, CloudNetworkPrivateVrackSubnetCurrentStateLocationArgs
- Availability
Zone string - Availability zone within the region.
- Region string
- Region where the subnet will be created. Changing this value recreates the resource.
- Availability
Zone string - Availability zone within the region.
- Region string
- Region where the subnet will be created. Changing this value recreates the resource.
- availability_
zone string - Availability zone within the region.
- region string
- Region where the subnet will be created. Changing this value recreates the resource.
- availability
Zone String - Availability zone within the region.
- region String
- Region where the subnet will be created. Changing this value recreates the resource.
- availability
Zone string - Availability zone within the region.
- region string
- Region where the subnet will be created. Changing this value recreates the resource.
- availability_
zone str - Availability zone within the region.
- region str
- Region where the subnet will be created. Changing this value recreates the resource.
- availability
Zone String - Availability zone within the region.
- region String
- Region where the subnet will be created. Changing this value recreates the resource.
CloudNetworkPrivateVrackSubnetCurrentTask, CloudNetworkPrivateVrackSubnetCurrentTaskArgs
CloudNetworkPrivateVrackSubnetCurrentTaskError, CloudNetworkPrivateVrackSubnetCurrentTaskErrorArgs
- Message string
- Error description
- Message string
- Error description
- message string
- Error description
- message String
- Error description
- message string
- Error description
- message str
- Error description
- message String
- Error description
Import
A cloud private network subnet can be imported using the service_name, network_id and id, separated by /:
terraform
import {
to = ovh_cloud_network_private_vrack_subnet.subnet
id = “<service_name>/<network_id>/
}
bash
$ pulumi import ovh:index/cloudNetworkPrivateVrackSubnet:CloudNetworkPrivateVrackSubnet subnet service_name/network_id/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 Monday, Jun 29, 2026 by OVHcloud