1. Packages
  2. OVH
  3. API Docs
  4. IpLoadBalancing
  5. getVrackNetwork
OVHCloud v2.1.1 published on Thursday, Apr 10, 2025 by OVHcloud

ovh.IpLoadBalancing.getVrackNetwork

Explore with Pulumi AI

OVHCloud v2.1.1 published on Thursday, Apr 10, 2025 by OVHcloud

Use this data source to get the details of Vrack network available for your IPLoadbalancer associated with your OVHcloud account.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@pulumi/ovh";

const lbNetwork = ovh.IpLoadBalancing.getVrackNetwork({
    serviceName: "XXXXXX",
    vrackNetworkId: "yyy",
});
Copy
import pulumi
import pulumi_ovh as ovh

lb_network = ovh.IpLoadBalancing.get_vrack_network(service_name="XXXXXX",
    vrack_network_id="yyy")
Copy
package main

import (
	"github.com/ovh/pulumi-ovh/sdk/v2/go/ovh/iploadbalancing"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := iploadbalancing.GetVrackNetwork(ctx, &iploadbalancing.GetVrackNetworkArgs{
			ServiceName:    "XXXXXX",
			VrackNetworkId: "yyy",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ovh = Pulumi.Ovh;

return await Deployment.RunAsync(() => 
{
    var lbNetwork = Ovh.IpLoadBalancing.GetVrackNetwork.Invoke(new()
    {
        ServiceName = "XXXXXX",
        VrackNetworkId = "yyy",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ovh.IpLoadBalancing.IpLoadBalancingFunctions;
import com.pulumi.ovh.IpLoadBalancing.inputs.GetVrackNetworkArgs;
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 lbNetwork = IpLoadBalancingFunctions.getVrackNetwork(GetVrackNetworkArgs.builder()
            .serviceName("XXXXXX")
            .vrackNetworkId("yyy")
            .build());

    }
}
Copy
variables:
  lbNetwork:
    fn::invoke:
      function: ovh:IpLoadBalancing:getVrackNetwork
      arguments:
        serviceName: XXXXXX
        vrackNetworkId: yyy
Copy

Using getVrackNetwork

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 getVrackNetwork(args: GetVrackNetworkArgs, opts?: InvokeOptions): Promise<GetVrackNetworkResult>
function getVrackNetworkOutput(args: GetVrackNetworkOutputArgs, opts?: InvokeOptions): Output<GetVrackNetworkResult>
Copy
def get_vrack_network(service_name: Optional[str] = None,
                      vrack_network_id: Optional[int] = None,
                      opts: Optional[InvokeOptions] = None) -> GetVrackNetworkResult
def get_vrack_network_output(service_name: Optional[pulumi.Input[str]] = None,
                      vrack_network_id: Optional[pulumi.Input[int]] = None,
                      opts: Optional[InvokeOptions] = None) -> Output[GetVrackNetworkResult]
Copy
func GetVrackNetwork(ctx *Context, args *GetVrackNetworkArgs, opts ...InvokeOption) (*GetVrackNetworkResult, error)
func GetVrackNetworkOutput(ctx *Context, args *GetVrackNetworkOutputArgs, opts ...InvokeOption) GetVrackNetworkResultOutput
Copy

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

public static class GetVrackNetwork 
{
    public static Task<GetVrackNetworkResult> InvokeAsync(GetVrackNetworkArgs args, InvokeOptions? opts = null)
    public static Output<GetVrackNetworkResult> Invoke(GetVrackNetworkInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetVrackNetworkResult> getVrackNetwork(GetVrackNetworkArgs args, InvokeOptions options)
public static Output<GetVrackNetworkResult> getVrackNetwork(GetVrackNetworkArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: ovh:IpLoadBalancing/getVrackNetwork:getVrackNetwork
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

ServiceName This property is required. string
The internal name of your IP load balancing
VrackNetworkId This property is required. int
Internal Load Balancer identifier of the vRack private network
ServiceName This property is required. string
The internal name of your IP load balancing
VrackNetworkId This property is required. int
Internal Load Balancer identifier of the vRack private network
serviceName This property is required. String
The internal name of your IP load balancing
vrackNetworkId This property is required. Integer
Internal Load Balancer identifier of the vRack private network
serviceName This property is required. string
The internal name of your IP load balancing
vrackNetworkId This property is required. number
Internal Load Balancer identifier of the vRack private network
service_name This property is required. str
The internal name of your IP load balancing
vrack_network_id This property is required. int
Internal Load Balancer identifier of the vRack private network
serviceName This property is required. String
The internal name of your IP load balancing
vrackNetworkId This property is required. Number
Internal Load Balancer identifier of the vRack private network

getVrackNetwork Result

The following output properties are available:

DisplayName string
Human readable name for your vrack network
Id string
The provider-assigned unique ID for this managed resource.
NatIp string
An IP block used as a pool of IPs by this Load Balancer to connect to the servers in this private network. The blck must be in the private network and reserved for the Load Balancer
ServiceName string
Subnet string
IP block of the private network in the vRack
Vlan int
VLAN of the private network in the vRack. 0 if the private network is not in a VLAN
VrackNetworkId int
DisplayName string
Human readable name for your vrack network
Id string
The provider-assigned unique ID for this managed resource.
NatIp string
An IP block used as a pool of IPs by this Load Balancer to connect to the servers in this private network. The blck must be in the private network and reserved for the Load Balancer
ServiceName string
Subnet string
IP block of the private network in the vRack
Vlan int
VLAN of the private network in the vRack. 0 if the private network is not in a VLAN
VrackNetworkId int
displayName String
Human readable name for your vrack network
id String
The provider-assigned unique ID for this managed resource.
natIp String
An IP block used as a pool of IPs by this Load Balancer to connect to the servers in this private network. The blck must be in the private network and reserved for the Load Balancer
serviceName String
subnet String
IP block of the private network in the vRack
vlan Integer
VLAN of the private network in the vRack. 0 if the private network is not in a VLAN
vrackNetworkId Integer
displayName string
Human readable name for your vrack network
id string
The provider-assigned unique ID for this managed resource.
natIp string
An IP block used as a pool of IPs by this Load Balancer to connect to the servers in this private network. The blck must be in the private network and reserved for the Load Balancer
serviceName string
subnet string
IP block of the private network in the vRack
vlan number
VLAN of the private network in the vRack. 0 if the private network is not in a VLAN
vrackNetworkId number
display_name str
Human readable name for your vrack network
id str
The provider-assigned unique ID for this managed resource.
nat_ip str
An IP block used as a pool of IPs by this Load Balancer to connect to the servers in this private network. The blck must be in the private network and reserved for the Load Balancer
service_name str
subnet str
IP block of the private network in the vRack
vlan int
VLAN of the private network in the vRack. 0 if the private network is not in a VLAN
vrack_network_id int
displayName String
Human readable name for your vrack network
id String
The provider-assigned unique ID for this managed resource.
natIp String
An IP block used as a pool of IPs by this Load Balancer to connect to the servers in this private network. The blck must be in the private network and reserved for the Load Balancer
serviceName String
subnet String
IP block of the private network in the vRack
vlan Number
VLAN of the private network in the vRack. 0 if the private network is not in a VLAN
vrackNetworkId Number

Package Details

Repository
ovh ovh/pulumi-ovh
License
Apache-2.0
Notes
This Pulumi package is based on the ovh Terraform Provider.
OVHCloud v2.1.1 published on Thursday, Apr 10, 2025 by OVHcloud