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 list the subnets of 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 subnets = ovh.getCloudNetworkPrivateVrackSubnets({
serviceName: "<public cloud project ID>",
networkId: "<network ID>",
});
export const subnetCidrs = subnets.then(subnets => .map(s => (s.cidr)));
import pulumi
import pulumi_ovh as ovh
subnets = ovh.get_cloud_network_private_vrack_subnets(service_name="<public cloud project ID>",
network_id="<network ID>")
pulumi.export("subnetCidrs", [s.cidr for s in subnets.subnets])
Example coming soon!
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ovh = Pulumi.Ovh;
return await Deployment.RunAsync(() =>
{
var subnets = Ovh.GetCloudNetworkPrivateVrackSubnets.Invoke(new()
{
ServiceName = "<public cloud project ID>",
NetworkId = "<network ID>",
});
return new Dictionary<string, object?>
{
["subnetCidrs"] = .Select(s =>
{
return s.Cidr;
}).ToList(),
};
});
Example coming soon!
Example coming soon!
Example coming soon!
Using getCloudNetworkPrivateVrackSubnets
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 getCloudNetworkPrivateVrackSubnets(args: GetCloudNetworkPrivateVrackSubnetsArgs, opts?: InvokeOptions): Promise<GetCloudNetworkPrivateVrackSubnetsResult>
function getCloudNetworkPrivateVrackSubnetsOutput(args: GetCloudNetworkPrivateVrackSubnetsOutputArgs, opts?: InvokeOptions): Output<GetCloudNetworkPrivateVrackSubnetsResult>def get_cloud_network_private_vrack_subnets(network_id: Optional[str] = None,
service_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetCloudNetworkPrivateVrackSubnetsResult
def get_cloud_network_private_vrack_subnets_output(network_id: pulumi.Input[Optional[str]] = None,
service_name: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetCloudNetworkPrivateVrackSubnetsResult]func GetCloudNetworkPrivateVrackSubnets(ctx *Context, args *GetCloudNetworkPrivateVrackSubnetsArgs, opts ...InvokeOption) (*GetCloudNetworkPrivateVrackSubnetsResult, error)
func GetCloudNetworkPrivateVrackSubnetsOutput(ctx *Context, args *GetCloudNetworkPrivateVrackSubnetsOutputArgs, opts ...InvokeOption) GetCloudNetworkPrivateVrackSubnetsResultOutput> Note: This function is named GetCloudNetworkPrivateVrackSubnets in the Go SDK.
public static class GetCloudNetworkPrivateVrackSubnets
{
public static Task<GetCloudNetworkPrivateVrackSubnetsResult> InvokeAsync(GetCloudNetworkPrivateVrackSubnetsArgs args, InvokeOptions? opts = null)
public static Output<GetCloudNetworkPrivateVrackSubnetsResult> Invoke(GetCloudNetworkPrivateVrackSubnetsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetCloudNetworkPrivateVrackSubnetsResult> getCloudNetworkPrivateVrackSubnets(GetCloudNetworkPrivateVrackSubnetsArgs args, InvokeOptions options)
public static Output<GetCloudNetworkPrivateVrackSubnetsResult> getCloudNetworkPrivateVrackSubnets(GetCloudNetworkPrivateVrackSubnetsArgs args, InvokeOptions options)
fn::invoke:
function: ovh:index/getCloudNetworkPrivateVrackSubnets:getCloudNetworkPrivateVrackSubnets
arguments:
# arguments dictionarydata "ovh_get_cloud_network_private_vrack_subnets" "name" {
# arguments
}The following arguments are supported:
- Network
Id string - Network ID of the parent private network.
- Service
Name string - Service name of the resource representing the id of the cloud project.
- Network
Id string - Network ID of the parent private network.
- Service
Name string - Service name of the resource representing the id of the cloud project.
- network_
id string - Network ID of the parent private network.
- service_
name string - Service name of the resource representing the id of the cloud project.
- network
Id String - Network ID of the parent private network.
- service
Name String - Service name of the resource representing the id of the cloud project.
- network
Id string - Network ID of the parent private network.
- service
Name string - Service name of the resource representing the id of the cloud project.
- network_
id str - Network ID of the parent private network.
- service_
name str - Service name of the resource representing the id of the cloud project.
- network
Id String - Network ID of the parent private network.
- service
Name String - Service name of the resource representing the id of the cloud project.
getCloudNetworkPrivateVrackSubnets Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Network
Id string - Service
Name string - Subnets
List<Get
Cloud Network Private Vrack Subnets Subnet> - List of subnets. Each element exports:
- Id string
- The provider-assigned unique ID for this managed resource.
- Network
Id string - Service
Name string - Subnets
[]Get
Cloud Network Private Vrack Subnets Subnet - List of subnets. Each element exports:
- id string
- The provider-assigned unique ID for this managed resource.
- network_
id string - service_
name string - subnets list(object)
- List of subnets. Each element exports:
- id String
- The provider-assigned unique ID for this managed resource.
- network
Id String - service
Name String - subnets
List<Get
Cloud Network Private Vrack Subnets Subnet> - List of subnets. Each element exports:
- id string
- The provider-assigned unique ID for this managed resource.
- network
Id string - service
Name string - subnets
Get
Cloud Network Private Vrack Subnets Subnet[] - List of subnets. Each element exports:
- id str
- The provider-assigned unique ID for this managed resource.
- network_
id str - service_
name str - subnets
Sequence[Get
Cloud Network Private Vrack Subnets Subnet] - List of subnets. Each element exports:
- id String
- The provider-assigned unique ID for this managed resource.
- network
Id String - service
Name String - subnets List<Property Map>
- List of subnets. Each element exports:
Supporting Types
GetCloudNetworkPrivateVrackSubnetsSubnet
- Allocation
Pools List<GetCloud Network Private Vrack Subnets Subnet Allocation Pool> - IP address allocation pools:
- Checksum string
- Computed hash representing the current target specification value.
- Cidr string
- CIDR address range.
- Created
At string - Creation date of the subnet.
- Current
State GetCloud Network Private Vrack Subnets Subnet Current State - Current state of the subnet:
- Description string
- Subnet description.
- Dhcp
Enabled bool - Whether DHCP is enabled.
- Dns
Nameservers List<string> - Configured DNS nameservers.
- Gateway
Ip string - Default gateway IP address.
- Id string
- Subnet ID.
- Location
Get
Cloud Network Private Vrack Subnets Subnet Location - Location details:
- Name string
- Subnet name.
- 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.
- Allocation
Pools []GetCloud Network Private Vrack Subnets Subnet Allocation Pool - IP address allocation pools:
- Checksum string
- Computed hash representing the current target specification value.
- Cidr string
- CIDR address range.
- Created
At string - Creation date of the subnet.
- Current
State GetCloud Network Private Vrack Subnets Subnet Current State - Current state of the subnet:
- Description string
- Subnet description.
- Dhcp
Enabled bool - Whether DHCP is enabled.
- Dns
Nameservers []string - Configured DNS nameservers.
- Gateway
Ip string - Default gateway IP address.
- Id string
- Subnet ID.
- Location
Get
Cloud Network Private Vrack Subnets Subnet Location - Location details:
- Name string
- Subnet name.
- 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.
- allocation_
pools list(object) - IP address allocation pools:
- checksum string
- Computed hash representing the current target specification value.
- cidr string
- CIDR address range.
- created_
at string - Creation date of the subnet.
- current_
state object - Current state of the subnet:
- description string
- Subnet description.
- dhcp_
enabled bool - Whether DHCP is enabled.
- dns_
nameservers list(string) - Configured DNS nameservers.
- gateway_
ip string - Default gateway IP address.
- id string
- Subnet ID.
- location object
- Location details:
- name string
- Subnet name.
- 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.
- allocation
Pools List<GetCloud Network Private Vrack Subnets Subnet Allocation Pool> - IP address allocation pools:
- checksum String
- Computed hash representing the current target specification value.
- cidr String
- CIDR address range.
- created
At String - Creation date of the subnet.
- current
State GetCloud Network Private Vrack Subnets Subnet Current State - Current state of the subnet:
- description String
- Subnet description.
- dhcp
Enabled Boolean - Whether DHCP is enabled.
- dns
Nameservers List<String> - Configured DNS nameservers.
- gateway
Ip String - Default gateway IP address.
- id String
- Subnet ID.
- location
Get
Cloud Network Private Vrack Subnets Subnet Location - Location details:
- name String
- Subnet name.
- 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.
- allocation
Pools GetCloud Network Private Vrack Subnets Subnet Allocation Pool[] - IP address allocation pools:
- checksum string
- Computed hash representing the current target specification value.
- cidr string
- CIDR address range.
- created
At string - Creation date of the subnet.
- current
State GetCloud Network Private Vrack Subnets Subnet Current State - Current state of the subnet:
- description string
- Subnet description.
- dhcp
Enabled boolean - Whether DHCP is enabled.
- dns
Nameservers string[] - Configured DNS nameservers.
- gateway
Ip string - Default gateway IP address.
- id string
- Subnet ID.
- location
Get
Cloud Network Private Vrack Subnets Subnet Location - Location details:
- name string
- Subnet name.
- 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.
- allocation_
pools Sequence[GetCloud Network Private Vrack Subnets Subnet Allocation Pool] - IP address allocation pools:
- checksum str
- Computed hash representing the current target specification value.
- cidr str
- CIDR address range.
- created_
at str - Creation date of the subnet.
- current_
state GetCloud Network Private Vrack Subnets Subnet Current State - Current state of the subnet:
- description str
- Subnet description.
- dhcp_
enabled bool - Whether DHCP is enabled.
- dns_
nameservers Sequence[str] - Configured DNS nameservers.
- gateway_
ip str - Default gateway IP address.
- id str
- Subnet ID.
- location
Get
Cloud Network Private Vrack Subnets Subnet Location - Location details:
- name str
- Subnet name.
- 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.
- allocation
Pools List<Property Map> - IP address allocation pools:
- checksum String
- Computed hash representing the current target specification value.
- cidr String
- CIDR address range.
- created
At String - Creation date of the subnet.
- current
State Property Map - Current state of the subnet:
- description String
- Subnet description.
- dhcp
Enabled Boolean - Whether DHCP is enabled.
- dns
Nameservers List<String> - Configured DNS nameservers.
- gateway
Ip String - Default gateway IP address.
- id String
- Subnet ID.
- location Property Map
- Location details:
- name String
- Subnet name.
- 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.
GetCloudNetworkPrivateVrackSubnetsSubnetAllocationPool
GetCloudNetworkPrivateVrackSubnetsSubnetCurrentState
- Allocation
Pools List<GetCloud Network Private Vrack Subnets Subnet Current State Allocation Pool> - IP address allocation pools:
- Cidr string
- CIDR address range.
- Description string
- Subnet description.
- Dhcp
Enabled bool - Whether DHCP is enabled.
- Dns
Nameservers List<string> - Configured DNS nameservers.
- Gateway
Ip string - Default gateway IP address.
- Host
Routes List<GetCloud Network Private Vrack Subnets Subnet Current State Host Route> - Static host routes:
- Location
Get
Cloud Network Private Vrack Subnets Subnet Current State Location - Location details:
- Name string
- Subnet name.
- Allocation
Pools []GetCloud Network Private Vrack Subnets Subnet Current State Allocation Pool - IP address allocation pools:
- Cidr string
- CIDR address range.
- Description string
- Subnet description.
- Dhcp
Enabled bool - Whether DHCP is enabled.
- Dns
Nameservers []string - Configured DNS nameservers.
- Gateway
Ip string - Default gateway IP address.
- Host
Routes []GetCloud Network Private Vrack Subnets Subnet Current State Host Route - Static host routes:
- Location
Get
Cloud Network Private Vrack Subnets Subnet Current State Location - Location details:
- Name string
- Subnet name.
- allocation_
pools list(object) - IP address allocation pools:
- cidr string
- CIDR address range.
- description string
- Subnet description.
- dhcp_
enabled bool - Whether DHCP is enabled.
- dns_
nameservers list(string) - Configured DNS nameservers.
- 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<GetCloud Network Private Vrack Subnets Subnet Current State Allocation Pool> - IP address allocation pools:
- cidr String
- CIDR address range.
- description String
- Subnet description.
- dhcp
Enabled Boolean - Whether DHCP is enabled.
- dns
Nameservers List<String> - Configured DNS nameservers.
- gateway
Ip String - Default gateway IP address.
- host
Routes List<GetCloud Network Private Vrack Subnets Subnet Current State Host Route> - Static host routes:
- location
Get
Cloud Network Private Vrack Subnets Subnet Current State Location - Location details:
- name String
- Subnet name.
- allocation
Pools GetCloud Network Private Vrack Subnets Subnet Current State Allocation Pool[] - IP address allocation pools:
- cidr string
- CIDR address range.
- description string
- Subnet description.
- dhcp
Enabled boolean - Whether DHCP is enabled.
- dns
Nameservers string[] - Configured DNS nameservers.
- gateway
Ip string - Default gateway IP address.
- host
Routes GetCloud Network Private Vrack Subnets Subnet Current State Host Route[] - Static host routes:
- location
Get
Cloud Network Private Vrack Subnets Subnet Current State Location - Location details:
- name string
- Subnet name.
- allocation_
pools Sequence[GetCloud Network Private Vrack Subnets Subnet Current State Allocation Pool] - IP address allocation pools:
- cidr str
- CIDR address range.
- description str
- Subnet description.
- dhcp_
enabled bool - Whether DHCP is enabled.
- dns_
nameservers Sequence[str] - Configured DNS nameservers.
- gateway_
ip str - Default gateway IP address.
- host_
routes Sequence[GetCloud Network Private Vrack Subnets Subnet Current State Host Route] - Static host routes:
- location
Get
Cloud Network Private Vrack Subnets Subnet Current State Location - Location details:
- name str
- Subnet name.
- allocation
Pools List<Property Map> - IP address allocation pools:
- cidr String
- CIDR address range.
- description String
- Subnet description.
- dhcp
Enabled Boolean - Whether DHCP is enabled.
- dns
Nameservers List<String> - Configured DNS nameservers.
- gateway
Ip String - Default gateway IP address.
- host
Routes List<Property Map> - Static host routes:
- location Property Map
- Location details:
- name String
- Subnet name.
GetCloudNetworkPrivateVrackSubnetsSubnetCurrentStateAllocationPool
GetCloudNetworkPrivateVrackSubnetsSubnetCurrentStateHostRoute
- 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.
GetCloudNetworkPrivateVrackSubnetsSubnetCurrentStateLocation
- 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.
GetCloudNetworkPrivateVrackSubnetsSubnetLocation
- 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