1. Packages
  2. OVH
  3. API Docs
  4. getVrackNetworks
OVHCloud v0.50.0 published on Friday, Sep 20, 2024 by OVHcloud

ovh.getVrackNetworks

Explore with Pulumi AI

ovh logo
OVHCloud v0.50.0 published on Friday, Sep 20, 2024 by OVHcloud

    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:

    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.

    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.
    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
    ovh ovh/pulumi-ovh
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the ovh Terraform Provider.
    ovh logo
    OVHCloud v0.50.0 published on Friday, Sep 20, 2024 by OVHcloud