1. Packages
  2. Hpegl Provider
  3. API Docs
  4. getVmaasLoadBalancer
hpegl 0.4.18 published on Friday, Apr 18, 2025 by hpe

hpegl.getVmaasLoadBalancer

Explore with Pulumi AI

hpegl logo
hpegl 0.4.18 published on Friday, Apr 18, 2025 by hpe

    The hpegl.VmaasLoadBalancer data source can be used to discover the ID of a hpegl vmaas network load balancer. This can then be used with resources or data sources that require a hpegl_vmaas_load_balancer, such as the hpegl.VmaasLoadBalancer resource.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as hpegl from "@pulumi/hpegl";
    
    const tfLb = hpegl.getVmaasLoadBalancer({
        name: "tf_loadbalancer",
    });
    
    import pulumi
    import pulumi_hpegl as hpegl
    
    tf_lb = hpegl.get_vmaas_load_balancer(name="tf_loadbalancer")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/hpegl/hpegl"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := hpegl.LookupVmaasLoadBalancer(ctx, &hpegl.LookupVmaasLoadBalancerArgs{
    			Name: "tf_loadbalancer",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Hpegl = Pulumi.Hpegl;
    
    return await Deployment.RunAsync(() => 
    {
        var tfLb = Hpegl.GetVmaasLoadBalancer.Invoke(new()
        {
            Name = "tf_loadbalancer",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.hpegl.HpeglFunctions;
    import com.pulumi.hpegl.inputs.GetVmaasLoadBalancerArgs;
    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 tfLb = HpeglFunctions.getVmaasLoadBalancer(GetVmaasLoadBalancerArgs.builder()
                .name("tf_loadbalancer")
                .build());
    
        }
    }
    
    variables:
      tfLb:
        fn::invoke:
          function: hpegl:getVmaasLoadBalancer
          arguments:
            name: tf_loadbalancer
    

    Using getVmaasLoadBalancer

    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 getVmaasLoadBalancer(args: GetVmaasLoadBalancerArgs, opts?: InvokeOptions): Promise<GetVmaasLoadBalancerResult>
    function getVmaasLoadBalancerOutput(args: GetVmaasLoadBalancerOutputArgs, opts?: InvokeOptions): Output<GetVmaasLoadBalancerResult>
    def get_vmaas_load_balancer(id: Optional[str] = None,
                                name: Optional[str] = None,
                                opts: Optional[InvokeOptions] = None) -> GetVmaasLoadBalancerResult
    def get_vmaas_load_balancer_output(id: Optional[pulumi.Input[str]] = None,
                                name: Optional[pulumi.Input[str]] = None,
                                opts: Optional[InvokeOptions] = None) -> Output[GetVmaasLoadBalancerResult]
    func LookupVmaasLoadBalancer(ctx *Context, args *LookupVmaasLoadBalancerArgs, opts ...InvokeOption) (*LookupVmaasLoadBalancerResult, error)
    func LookupVmaasLoadBalancerOutput(ctx *Context, args *LookupVmaasLoadBalancerOutputArgs, opts ...InvokeOption) LookupVmaasLoadBalancerResultOutput

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

    public static class GetVmaasLoadBalancer 
    {
        public static Task<GetVmaasLoadBalancerResult> InvokeAsync(GetVmaasLoadBalancerArgs args, InvokeOptions? opts = null)
        public static Output<GetVmaasLoadBalancerResult> Invoke(GetVmaasLoadBalancerInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetVmaasLoadBalancerResult> getVmaasLoadBalancer(GetVmaasLoadBalancerArgs args, InvokeOptions options)
    public static Output<GetVmaasLoadBalancerResult> getVmaasLoadBalancer(GetVmaasLoadBalancerArgs args, InvokeOptions options)
    
    fn::invoke:
      function: hpegl:index/getVmaasLoadBalancer:getVmaasLoadBalancer
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    Name of the LoadBalancer as it appears on HPE GreenLake for private cloud dashboard. If there is no LoadBalancer with this name, a 'NOT FOUND' error will returned.
    Id string
    The ID of this resource.
    Name string
    Name of the LoadBalancer as it appears on HPE GreenLake for private cloud dashboard. If there is no LoadBalancer with this name, a 'NOT FOUND' error will returned.
    Id string
    The ID of this resource.
    name String
    Name of the LoadBalancer as it appears on HPE GreenLake for private cloud dashboard. If there is no LoadBalancer with this name, a 'NOT FOUND' error will returned.
    id String
    The ID of this resource.
    name string
    Name of the LoadBalancer as it appears on HPE GreenLake for private cloud dashboard. If there is no LoadBalancer with this name, a 'NOT FOUND' error will returned.
    id string
    The ID of this resource.
    name str
    Name of the LoadBalancer as it appears on HPE GreenLake for private cloud dashboard. If there is no LoadBalancer with this name, a 'NOT FOUND' error will returned.
    id str
    The ID of this resource.
    name String
    Name of the LoadBalancer as it appears on HPE GreenLake for private cloud dashboard. If there is no LoadBalancer with this name, a 'NOT FOUND' error will returned.
    id String
    The ID of this resource.

    getVmaasLoadBalancer Result

    The following output properties are available:

    Id string
    The ID of this resource.
    LbId double
    Parent lb ID, lb_id can be obtained by using LB datasource/resource.
    Name string
    Name of the LoadBalancer as it appears on HPE GreenLake for private cloud dashboard. If there is no LoadBalancer with this name, a 'NOT FOUND' error will returned.
    Id string
    The ID of this resource.
    LbId float64
    Parent lb ID, lb_id can be obtained by using LB datasource/resource.
    Name string
    Name of the LoadBalancer as it appears on HPE GreenLake for private cloud dashboard. If there is no LoadBalancer with this name, a 'NOT FOUND' error will returned.
    id String
    The ID of this resource.
    lbId Double
    Parent lb ID, lb_id can be obtained by using LB datasource/resource.
    name String
    Name of the LoadBalancer as it appears on HPE GreenLake for private cloud dashboard. If there is no LoadBalancer with this name, a 'NOT FOUND' error will returned.
    id string
    The ID of this resource.
    lbId number
    Parent lb ID, lb_id can be obtained by using LB datasource/resource.
    name string
    Name of the LoadBalancer as it appears on HPE GreenLake for private cloud dashboard. If there is no LoadBalancer with this name, a 'NOT FOUND' error will returned.
    id str
    The ID of this resource.
    lb_id float
    Parent lb ID, lb_id can be obtained by using LB datasource/resource.
    name str
    Name of the LoadBalancer as it appears on HPE GreenLake for private cloud dashboard. If there is no LoadBalancer with this name, a 'NOT FOUND' error will returned.
    id String
    The ID of this resource.
    lbId Number
    Parent lb ID, lb_id can be obtained by using LB datasource/resource.
    name String
    Name of the LoadBalancer as it appears on HPE GreenLake for private cloud dashboard. If there is no LoadBalancer with this name, a 'NOT FOUND' error will returned.

    Package Details

    Repository
    hpegl hpe/terraform-provider-hpegl
    License
    Notes
    This Pulumi package is based on the hpegl Terraform Provider.
    hpegl logo
    hpegl 0.4.18 published on Friday, Apr 18, 2025 by hpe