OVHCloud v1.0.0 published on Wednesday, Oct 30, 2024 by OVHcloud
ovh.getVrackNetworks
Explore with Pulumi AI
Use this data source to get the list of Vrack network ids available for your IPLoadbalancer associated with your OVHcloud account.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@pulumi/ovh";
const lbNetworks = ovh.getVrackNetworks({
serviceName: "XXXXXX",
subnet: "10.0.0.0/24",
});
import pulumi
import pulumi_ovh as ovh
lb_networks = ovh.get_vrack_networks(service_name="XXXXXX",
subnet="10.0.0.0/24")
package main
import (
"github.com/ovh/pulumi-ovh/sdk/go/ovh"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ovh.GetVrackNetworks(ctx, &ovh.GetVrackNetworksArgs{
ServiceName: "XXXXXX",
Subnet: pulumi.StringRef("10.0.0.0/24"),
}, nil)
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 lbNetworks = Ovh.GetVrackNetworks.Invoke(new()
{
ServiceName = "XXXXXX",
Subnet = "10.0.0.0/24",
});
});
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.GetVrackNetworksArgs;
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.getVrackNetworks(GetVrackNetworksArgs.builder()
.serviceName("XXXXXX")
.subnet("10.0.0.0/24")
.build());
}
}
variables:
lbNetworks:
fn::invoke:
Function: ovh:getVrackNetworks
Arguments:
serviceName: XXXXXX
subnet: 10.0.0.0/24
Using getVrackNetworks
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 getVrackNetworks(args: GetVrackNetworksArgs, opts?: InvokeOptions): Promise<GetVrackNetworksResult>
function getVrackNetworksOutput(args: GetVrackNetworksOutputArgs, opts?: InvokeOptions): Output<GetVrackNetworksResult>
def get_vrack_networks(service_name: Optional[str] = None,
subnet: Optional[str] = None,
vlan_id: Optional[int] = None,
opts: Optional[InvokeOptions] = None) -> GetVrackNetworksResult
def get_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[GetVrackNetworksResult]
func GetVrackNetworks(ctx *Context, args *GetVrackNetworksArgs, opts ...InvokeOption) (*GetVrackNetworksResult, error)
func GetVrackNetworksOutput(ctx *Context, args *GetVrackNetworksOutputArgs, opts ...InvokeOption) GetVrackNetworksResultOutput
> Note: This function is named GetVrackNetworks
in the Go SDK.
public static class GetVrackNetworks
{
public static Task<GetVrackNetworksResult> InvokeAsync(GetVrackNetworksArgs args, InvokeOptions? opts = null)
public static Output<GetVrackNetworksResult> Invoke(GetVrackNetworksInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetVrackNetworksResult> getVrackNetworks(GetVrackNetworksArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: ovh:index/getVrackNetworks:getVrackNetworks
arguments:
# arguments dictionary
The following arguments are supported:
- Service
Name string - The internal name of your IP load balancing
- Subnet string
- Filters networks on the subnet.
- Vlan
Id int - Filters networks on the vlan id.
- Service
Name string - The internal name of your IP load balancing
- Subnet string
- Filters networks on the subnet.
- Vlan
Id int - Filters networks on the vlan id.
- service
Name String - The internal name of your IP load balancing
- subnet String
- Filters networks on the subnet.
- vlan
Id Integer - Filters networks on the vlan id.
- service
Name string - The internal name of your IP load balancing
- subnet string
- Filters networks on the subnet.
- vlan
Id 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.
- service
Name String - The internal name of your IP load balancing
- subnet String
- Filters networks on the subnet.
- vlan
Id Number - Filters networks on the vlan id.
getVrackNetworks 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.
- Service
Name string - Subnet string
- Vlan
Id int
- Id string
- The provider-assigned unique ID for this managed resource.
- Results []int
- The list of vrack network ids.
- Service
Name string - Subnet string
- Vlan
Id int
- id String
- The provider-assigned unique ID for this managed resource.
- results List<Integer>
- The list of vrack network ids.
- service
Name String - subnet String
- vlan
Id Integer
- id string
- The provider-assigned unique ID for this managed resource.
- results number[]
- The list of vrack network ids.
- service
Name string - subnet string
- vlan
Id 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.
- service
Name String - subnet String
- vlan
Id Number
Package Details
- Repository
- ovh ovh/pulumi-ovh
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ovh
Terraform Provider.