Ovh

v0.0.4 published on Saturday, Sep 17, 2022 by lbrlabs

getIpLoadbalancingVrackNetworks

Use this data source to get the list of Vrack network ids available for your IPLoadbalancer associated with your OVH account.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Ovh = Pulumi.Ovh;

return await Deployment.RunAsync(() => 
{
    var lbNetworks = Ovh.GetIpLoadbalancingVrackNetworks.Invoke(new()
    {
        ServiceName = "XXXXXX",
        Subnet = "10.0.0.0/24",
    });

});
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := ovh.GetIpLoadbalancingVrackNetworks(ctx, &GetIpLoadbalancingVrackNetworksArgs{
			ServiceName: "XXXXXX",
			Subnet:      pulumi.StringRef("10.0.0.0/24"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ovh.OvhFunctions;
import com.pulumi.ovh.inputs.GetIpLoadbalancingVrackNetworksArgs;
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 lbNetworks = OvhFunctions.getIpLoadbalancingVrackNetworks(GetIpLoadbalancingVrackNetworksArgs.builder()
            .serviceName("XXXXXX")
            .subnet("10.0.0.0/24")
            .build());

    }
}
import pulumi
import pulumi_ovh as ovh

lb_networks = ovh.get_ip_loadbalancing_vrack_networks(service_name="XXXXXX",
    subnet="10.0.0.0/24")
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@pulumi/ovh";

const lbNetworks = pulumi.output(ovh.getIpLoadbalancingVrackNetworks({
    serviceName: "XXXXXX",
    subnet: "10.0.0.0/24",
}));
variables:
  lbNetworks:
    Fn::Invoke:
      Function: ovh:getIpLoadbalancingVrackNetworks
      Arguments:
        serviceName: XXXXXX
        subnet: 10.0.0.0/24

Using getIpLoadbalancingVrackNetworks

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 getIpLoadbalancingVrackNetworks(args: GetIpLoadbalancingVrackNetworksArgs, opts?: InvokeOptions): Promise<GetIpLoadbalancingVrackNetworksResult>
function getIpLoadbalancingVrackNetworksOutput(args: GetIpLoadbalancingVrackNetworksOutputArgs, opts?: InvokeOptions): Output<GetIpLoadbalancingVrackNetworksResult>
def get_ip_loadbalancing_vrack_networks(service_name: Optional[str] = None,
                                        subnet: Optional[str] = None,
                                        vlan_id: Optional[int] = None,
                                        opts: Optional[InvokeOptions] = None) -> GetIpLoadbalancingVrackNetworksResult
def get_ip_loadbalancing_vrack_networks_output(service_name: Optional[pulumi.Input[str]] = None,
                                        subnet: Optional[pulumi.Input[str]] = None,
                                        vlan_id: Optional[pulumi.Input[int]] = None,
                                        opts: Optional[InvokeOptions] = None) -> Output[GetIpLoadbalancingVrackNetworksResult]
func GetIpLoadbalancingVrackNetworks(ctx *Context, args *GetIpLoadbalancingVrackNetworksArgs, opts ...InvokeOption) (*GetIpLoadbalancingVrackNetworksResult, error)
func GetIpLoadbalancingVrackNetworksOutput(ctx *Context, args *GetIpLoadbalancingVrackNetworksOutputArgs, opts ...InvokeOption) GetIpLoadbalancingVrackNetworksResultOutput

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

public static class GetIpLoadbalancingVrackNetworks 
{
    public static Task<GetIpLoadbalancingVrackNetworksResult> InvokeAsync(GetIpLoadbalancingVrackNetworksArgs args, InvokeOptions? opts = null)
    public static Output<GetIpLoadbalancingVrackNetworksResult> Invoke(GetIpLoadbalancingVrackNetworksInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetIpLoadbalancingVrackNetworksResult> getIpLoadbalancingVrackNetworks(GetIpLoadbalancingVrackNetworksArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: ovh:index/getIpLoadbalancingVrackNetworks:getIpLoadbalancingVrackNetworks
  Arguments:
    # Arguments dictionary

The following arguments are supported:

ServiceName string

The internal name of your IP load balancing

Subnet string

Filters networks on the subnet.

VlanId int

Filters networks on the vlan id.

ServiceName string

The internal name of your IP load balancing

Subnet string

Filters networks on the subnet.

VlanId int

Filters networks on the vlan id.

serviceName String

The internal name of your IP load balancing

subnet String

Filters networks on the subnet.

vlanId Integer

Filters networks on the vlan id.

serviceName string

The internal name of your IP load balancing

subnet string

Filters networks on the subnet.

vlanId number

Filters networks on the vlan id.

service_name str

The internal name of your IP load balancing

subnet str

Filters networks on the subnet.

vlan_id int

Filters networks on the vlan id.

serviceName String

The internal name of your IP load balancing

subnet String

Filters networks on the subnet.

vlanId Number

Filters networks on the vlan id.

getIpLoadbalancingVrackNetworks Result

The following output properties are available:

Id string

The provider-assigned unique ID for this managed resource.

Results List<int>

The list of vrack network ids.

ServiceName string
Subnet string
VlanId int
Id string

The provider-assigned unique ID for this managed resource.

Results []int

The list of vrack network ids.

ServiceName string
Subnet string
VlanId int
id String

The provider-assigned unique ID for this managed resource.

results List<Integer>

The list of vrack network ids.

serviceName String
subnet String
vlanId Integer
id string

The provider-assigned unique ID for this managed resource.

results number[]

The list of vrack network ids.

serviceName string
subnet string
vlanId number
id str

The provider-assigned unique ID for this managed resource.

results Sequence[int]

The list of vrack network ids.

service_name str
subnet str
vlan_id int
id String

The provider-assigned unique ID for this managed resource.

results List<Number>

The list of vrack network ids.

serviceName String
subnet String
vlanId Number

Package Details

Repository
https://github.com/lbrlabs/pulumi-ovh
License
Apache-2.0
Notes

This Pulumi package is based on the ovh Terraform Provider.