flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud
flexibleengine.getLbLoadbalancerV2
Explore with Pulumi AI
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud
Use this data source to get a specific elb loadbalancer within FlexibleEngine.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as flexibleengine from "@pulumi/flexibleengine";
const config = new pulumi.Config();
const lbName = config.requireObject("lbName");
const test = flexibleengine.getLbLoadbalancerV2({
name: lbName,
});
import pulumi
import pulumi_flexibleengine as flexibleengine
config = pulumi.Config()
lb_name = config.require_object("lbName")
test = flexibleengine.get_lb_loadbalancer_v2(name=lb_name)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
lbName := cfg.RequireObject("lbName")
_, err := flexibleengine.LookupLbLoadbalancerV2(ctx, &flexibleengine.LookupLbLoadbalancerV2Args{
Name: pulumi.StringRef(lbName),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Flexibleengine = Pulumi.Flexibleengine;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var lbName = config.RequireObject<dynamic>("lbName");
var test = Flexibleengine.GetLbLoadbalancerV2.Invoke(new()
{
Name = lbName,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.flexibleengine.FlexibleengineFunctions;
import com.pulumi.flexibleengine.inputs.GetLbLoadbalancerV2Args;
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 config = ctx.config();
final var lbName = config.get("lbName");
final var test = FlexibleengineFunctions.getLbLoadbalancerV2(GetLbLoadbalancerV2Args.builder()
.name(lbName)
.build());
}
}
configuration:
lbName:
type: dynamic
variables:
test:
fn::invoke:
function: flexibleengine:getLbLoadbalancerV2
arguments:
name: ${lbName}
Using getLbLoadbalancerV2
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 getLbLoadbalancerV2(args: GetLbLoadbalancerV2Args, opts?: InvokeOptions): Promise<GetLbLoadbalancerV2Result>
function getLbLoadbalancerV2Output(args: GetLbLoadbalancerV2OutputArgs, opts?: InvokeOptions): Output<GetLbLoadbalancerV2Result>
def get_lb_loadbalancer_v2(description: Optional[str] = None,
id: Optional[str] = None,
name: Optional[str] = None,
region: Optional[str] = None,
vip_address: Optional[str] = None,
vip_subnet_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetLbLoadbalancerV2Result
def get_lb_loadbalancer_v2_output(description: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
region: Optional[pulumi.Input[str]] = None,
vip_address: Optional[pulumi.Input[str]] = None,
vip_subnet_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetLbLoadbalancerV2Result]
func LookupLbLoadbalancerV2(ctx *Context, args *LookupLbLoadbalancerV2Args, opts ...InvokeOption) (*LookupLbLoadbalancerV2Result, error)
func LookupLbLoadbalancerV2Output(ctx *Context, args *LookupLbLoadbalancerV2OutputArgs, opts ...InvokeOption) LookupLbLoadbalancerV2ResultOutput
> Note: This function is named LookupLbLoadbalancerV2
in the Go SDK.
public static class GetLbLoadbalancerV2
{
public static Task<GetLbLoadbalancerV2Result> InvokeAsync(GetLbLoadbalancerV2Args args, InvokeOptions? opts = null)
public static Output<GetLbLoadbalancerV2Result> Invoke(GetLbLoadbalancerV2InvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetLbLoadbalancerV2Result> getLbLoadbalancerV2(GetLbLoadbalancerV2Args args, InvokeOptions options)
public static Output<GetLbLoadbalancerV2Result> getLbLoadbalancerV2(GetLbLoadbalancerV2Args args, InvokeOptions options)
fn::invoke:
function: flexibleengine:index/getLbLoadbalancerV2:getLbLoadbalancerV2
arguments:
# arguments dictionary
The following arguments are supported:
- Description string
- Specifies the supplementary information about the load balancer.
- Id string
- Specifies the data source ID of the load balancer in UUID format.
- Name string
- Specifies the name of the load balancer.
- Region string
- The region in which to query the data source. If omitted, the provider-level region will be used.
- Vip
Address string - Specifies the private IP address of the load balancer.
- Vip
Subnet stringId - Specifies the ID of the subnet where the load balancer works.
- Description string
- Specifies the supplementary information about the load balancer.
- Id string
- Specifies the data source ID of the load balancer in UUID format.
- Name string
- Specifies the name of the load balancer.
- Region string
- The region in which to query the data source. If omitted, the provider-level region will be used.
- Vip
Address string - Specifies the private IP address of the load balancer.
- Vip
Subnet stringId - Specifies the ID of the subnet where the load balancer works.
- description String
- Specifies the supplementary information about the load balancer.
- id String
- Specifies the data source ID of the load balancer in UUID format.
- name String
- Specifies the name of the load balancer.
- region String
- The region in which to query the data source. If omitted, the provider-level region will be used.
- vip
Address String - Specifies the private IP address of the load balancer.
- vip
Subnet StringId - Specifies the ID of the subnet where the load balancer works.
- description string
- Specifies the supplementary information about the load balancer.
- id string
- Specifies the data source ID of the load balancer in UUID format.
- name string
- Specifies the name of the load balancer.
- region string
- The region in which to query the data source. If omitted, the provider-level region will be used.
- vip
Address string - Specifies the private IP address of the load balancer.
- vip
Subnet stringId - Specifies the ID of the subnet where the load balancer works.
- description str
- Specifies the supplementary information about the load balancer.
- id str
- Specifies the data source ID of the load balancer in UUID format.
- name str
- Specifies the name of the load balancer.
- region str
- The region in which to query the data source. If omitted, the provider-level region will be used.
- vip_
address str - Specifies the private IP address of the load balancer.
- vip_
subnet_ strid - Specifies the ID of the subnet where the load balancer works.
- description String
- Specifies the supplementary information about the load balancer.
- id String
- Specifies the data source ID of the load balancer in UUID format.
- name String
- Specifies the name of the load balancer.
- region String
- The region in which to query the data source. If omitted, the provider-level region will be used.
- vip
Address String - Specifies the private IP address of the load balancer.
- vip
Subnet StringId - Specifies the ID of the subnet where the load balancer works.
getLbLoadbalancerV2 Result
The following output properties are available:
- Region string
- Status string
- The operating status of the load balancer.
- Dictionary<string, string>
- The tags associated with the load balancer.
- Vip
Port stringId - The ID of the port bound to the private IP address of the load balancer.
- Description string
- Id string
- Name string
- Vip
Address string - Vip
Subnet stringId
- Region string
- Status string
- The operating status of the load balancer.
- map[string]string
- The tags associated with the load balancer.
- Vip
Port stringId - The ID of the port bound to the private IP address of the load balancer.
- Description string
- Id string
- Name string
- Vip
Address string - Vip
Subnet stringId
- region String
- status String
- The operating status of the load balancer.
- Map<String,String>
- The tags associated with the load balancer.
- vip
Port StringId - The ID of the port bound to the private IP address of the load balancer.
- description String
- id String
- name String
- vip
Address String - vip
Subnet StringId
- region string
- status string
- The operating status of the load balancer.
- {[key: string]: string}
- The tags associated with the load balancer.
- vip
Port stringId - The ID of the port bound to the private IP address of the load balancer.
- description string
- id string
- name string
- vip
Address string - vip
Subnet stringId
- region str
- status str
- The operating status of the load balancer.
- Mapping[str, str]
- The tags associated with the load balancer.
- vip_
port_ strid - The ID of the port bound to the private IP address of the load balancer.
- description str
- id str
- name str
- vip_
address str - vip_
subnet_ strid
- region String
- status String
- The operating status of the load balancer.
- Map<String>
- The tags associated with the load balancer.
- vip
Port StringId - The ID of the port bound to the private IP address of the load balancer.
- description String
- id String
- name String
- vip
Address String - vip
Subnet StringId
Package Details
- Repository
- flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
- License
- Notes
- This Pulumi package is based on the
flexibleengine
Terraform Provider.
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud