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

hpegl.getVmaasLoadBalancerPool

Explore with Pulumi AI

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

    The hpegl.VmaasLoadBalancerPool 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_pool, such as the hpegl.VmaasLoadBalancerPool resource.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as hpegl from "@pulumi/hpegl";
    
    const tfPool = hpegl.getVmaasLoadBalancerPool({
        lbId: data.hpegl_vmaas_load_balancer.tf_lb.id,
        name: "tf_POOL",
    });
    
    import pulumi
    import pulumi_hpegl as hpegl
    
    tf_pool = hpegl.get_vmaas_load_balancer_pool(lb_id=data["hpegl_vmaas_load_balancer"]["tf_lb"]["id"],
        name="tf_POOL")
    
    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.LookupVmaasLoadBalancerPool(ctx, &hpegl.LookupVmaasLoadBalancerPoolArgs{
    			LbId: data.Hpegl_vmaas_load_balancer.Tf_lb.Id,
    			Name: "tf_POOL",
    		}, 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 tfPool = Hpegl.GetVmaasLoadBalancerPool.Invoke(new()
        {
            LbId = data.Hpegl_vmaas_load_balancer.Tf_lb.Id,
            Name = "tf_POOL",
        });
    
    });
    
    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.GetVmaasLoadBalancerPoolArgs;
    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 tfPool = HpeglFunctions.getVmaasLoadBalancerPool(GetVmaasLoadBalancerPoolArgs.builder()
                .lbId(data.hpegl_vmaas_load_balancer().tf_lb().id())
                .name("tf_POOL")
                .build());
    
        }
    }
    
    variables:
      tfPool:
        fn::invoke:
          function: hpegl:getVmaasLoadBalancerPool
          arguments:
            lbId: ${data.hpegl_vmaas_load_balancer.tf_lb.id}
            name: tf_POOL
    

    Using getVmaasLoadBalancerPool

    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 getVmaasLoadBalancerPool(args: GetVmaasLoadBalancerPoolArgs, opts?: InvokeOptions): Promise<GetVmaasLoadBalancerPoolResult>
    function getVmaasLoadBalancerPoolOutput(args: GetVmaasLoadBalancerPoolOutputArgs, opts?: InvokeOptions): Output<GetVmaasLoadBalancerPoolResult>
    def get_vmaas_load_balancer_pool(id: Optional[str] = None,
                                     lb_id: Optional[float] = None,
                                     name: Optional[str] = None,
                                     opts: Optional[InvokeOptions] = None) -> GetVmaasLoadBalancerPoolResult
    def get_vmaas_load_balancer_pool_output(id: Optional[pulumi.Input[str]] = None,
                                     lb_id: Optional[pulumi.Input[float]] = None,
                                     name: Optional[pulumi.Input[str]] = None,
                                     opts: Optional[InvokeOptions] = None) -> Output[GetVmaasLoadBalancerPoolResult]
    func LookupVmaasLoadBalancerPool(ctx *Context, args *LookupVmaasLoadBalancerPoolArgs, opts ...InvokeOption) (*LookupVmaasLoadBalancerPoolResult, error)
    func LookupVmaasLoadBalancerPoolOutput(ctx *Context, args *LookupVmaasLoadBalancerPoolOutputArgs, opts ...InvokeOption) LookupVmaasLoadBalancerPoolResultOutput

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

    public static class GetVmaasLoadBalancerPool 
    {
        public static Task<GetVmaasLoadBalancerPoolResult> InvokeAsync(GetVmaasLoadBalancerPoolArgs args, InvokeOptions? opts = null)
        public static Output<GetVmaasLoadBalancerPoolResult> Invoke(GetVmaasLoadBalancerPoolInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetVmaasLoadBalancerPoolResult> getVmaasLoadBalancerPool(GetVmaasLoadBalancerPoolArgs args, InvokeOptions options)
    public static Output<GetVmaasLoadBalancerPoolResult> getVmaasLoadBalancerPool(GetVmaasLoadBalancerPoolArgs args, InvokeOptions options)
    
    fn::invoke:
      function: hpegl:index/getVmaasLoadBalancerPool:getVmaasLoadBalancerPool
      arguments:
        # arguments dictionary

    The following arguments are supported:

    LbId double
    Parent lb ID, lb_id can be obtained by using LB datasource/resource.
    Name string
    Name of the LoadBalancer Pool as it appears on HPE GreenLake for private cloud dashboard. If there is no LoadBalancer Pool 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 Pool as it appears on HPE GreenLake for private cloud dashboard. If there is no LoadBalancer Pool 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 Pool as it appears on HPE GreenLake for private cloud dashboard. If there is no LoadBalancer Pool 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 Pool as it appears on HPE GreenLake for private cloud dashboard. If there is no LoadBalancer Pool with this name, a 'NOT FOUND' error will returned.
    id string
    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 Pool as it appears on HPE GreenLake for private cloud dashboard. If there is no LoadBalancer Pool with this name, a 'NOT FOUND' error will returned.
    id str
    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 Pool as it appears on HPE GreenLake for private cloud dashboard. If there is no LoadBalancer Pool with this name, a 'NOT FOUND' error will returned.
    id String
    The ID of this resource.

    getVmaasLoadBalancerPool 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 Pool as it appears on HPE GreenLake for private cloud dashboard. If there is no LoadBalancer Pool 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 Pool as it appears on HPE GreenLake for private cloud dashboard. If there is no LoadBalancer Pool 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 Pool as it appears on HPE GreenLake for private cloud dashboard. If there is no LoadBalancer Pool 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 Pool as it appears on HPE GreenLake for private cloud dashboard. If there is no LoadBalancer Pool 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 Pool as it appears on HPE GreenLake for private cloud dashboard. If there is no LoadBalancer Pool 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 Pool as it appears on HPE GreenLake for private cloud dashboard. If there is no LoadBalancer Pool 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