ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud
ibm.getIsLbPoolMember
Explore with Pulumi AI
Provides a read-only data source for LoadBalancerPoolMember.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const example = ibm.getIsLbPoolMember({
member: ibm_is_lb_pool_member.example.id.split("/")[2],
lb: ibm_is_lb.example.id,
pool: ibm_is_lb_pool.example.pool_id,
});
import pulumi
import pulumi_ibm as ibm
example = ibm.get_is_lb_pool_member(member=ibm_is_lb_pool_member["example"]["id"].split("/")[2],
lb=ibm_is_lb["example"]["id"],
pool=ibm_is_lb_pool["example"]["pool_id"])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ibm.LookupIsLbPoolMember(ctx, &ibm.LookupIsLbPoolMemberArgs{
Member: "TODO: call element",
Lb: ibm_is_lb.Example.Id,
Pool: ibm_is_lb_pool.Example.Pool_id,
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;
return await Deployment.RunAsync(() =>
{
var example = Ibm.GetIsLbPoolMember.Invoke(new()
{
Member = ibm_is_lb_pool_member.Example.Id.Split("/")[2],
Lb = ibm_is_lb.Example.Id,
Pool = ibm_is_lb_pool.Example.Pool_id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.IbmFunctions;
import com.pulumi.ibm.inputs.GetIsLbPoolMemberArgs;
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 example = IbmFunctions.getIsLbPoolMember(GetIsLbPoolMemberArgs.builder()
.member(ibm_is_lb_pool_member.example().id().split("/")[2])
.lb(ibm_is_lb.example().id())
.pool(ibm_is_lb_pool.example().pool_id())
.build());
}
}
variables:
example:
fn::invoke:
function: ibm:getIsLbPoolMember
arguments:
member:
fn::select:
- 2
- fn::split:
- ${ibm_is_lb_pool_member.example.id}
- /
lb: ${ibm_is_lb.example.id}
pool: ${ibm_is_lb_pool.example.pool_id}
Using getIsLbPoolMember
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 getIsLbPoolMember(args: GetIsLbPoolMemberArgs, opts?: InvokeOptions): Promise<GetIsLbPoolMemberResult>
function getIsLbPoolMemberOutput(args: GetIsLbPoolMemberOutputArgs, opts?: InvokeOptions): Output<GetIsLbPoolMemberResult>
def get_is_lb_pool_member(id: Optional[str] = None,
lb: Optional[str] = None,
member: Optional[str] = None,
pool: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetIsLbPoolMemberResult
def get_is_lb_pool_member_output(id: Optional[pulumi.Input[str]] = None,
lb: Optional[pulumi.Input[str]] = None,
member: Optional[pulumi.Input[str]] = None,
pool: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetIsLbPoolMemberResult]
func LookupIsLbPoolMember(ctx *Context, args *LookupIsLbPoolMemberArgs, opts ...InvokeOption) (*LookupIsLbPoolMemberResult, error)
func LookupIsLbPoolMemberOutput(ctx *Context, args *LookupIsLbPoolMemberOutputArgs, opts ...InvokeOption) LookupIsLbPoolMemberResultOutput
> Note: This function is named LookupIsLbPoolMember
in the Go SDK.
public static class GetIsLbPoolMember
{
public static Task<GetIsLbPoolMemberResult> InvokeAsync(GetIsLbPoolMemberArgs args, InvokeOptions? opts = null)
public static Output<GetIsLbPoolMemberResult> Invoke(GetIsLbPoolMemberInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetIsLbPoolMemberResult> getIsLbPoolMember(GetIsLbPoolMemberArgs args, InvokeOptions options)
public static Output<GetIsLbPoolMemberResult> getIsLbPoolMember(GetIsLbPoolMemberArgs args, InvokeOptions options)
fn::invoke:
function: ibm:index/getIsLbPoolMember:getIsLbPoolMember
arguments:
# arguments dictionary
The following arguments are supported:
getIsLbPoolMember Result
The following output properties are available:
- Created
At string - (Required, String) The date and time that this member was created.
- Health string
- (Required, String) Health of the server member in the pool.
- Href string
- (Optional, String) The URL for this virtual server instance.
- Id string
- (Optional, String) The unique identifier for this virtual server instance.
- Lb string
- Member string
- Pool string
- Port double
- (Required, Integer) The port number of the application running in the server member.
- Provisioning
Status string - (Required, String) The provisioning status of this member.
- Targets
List<Get
Is Lb Pool Member Target> - (Required, List) The pool member target. Load balancers in the
network
family support virtual serverinstances. Load balancers in theapplication
family support IP addresses. Nested scheme fortarget
: - Weight double
- (Optional, Integer) Weight of the server member. Applicable only if the pool algorithm is
weighted_round_robin
.
- Created
At string - (Required, String) The date and time that this member was created.
- Health string
- (Required, String) Health of the server member in the pool.
- Href string
- (Optional, String) The URL for this virtual server instance.
- Id string
- (Optional, String) The unique identifier for this virtual server instance.
- Lb string
- Member string
- Pool string
- Port float64
- (Required, Integer) The port number of the application running in the server member.
- Provisioning
Status string - (Required, String) The provisioning status of this member.
- Targets
[]Get
Is Lb Pool Member Target - (Required, List) The pool member target. Load balancers in the
network
family support virtual serverinstances. Load balancers in theapplication
family support IP addresses. Nested scheme fortarget
: - Weight float64
- (Optional, Integer) Weight of the server member. Applicable only if the pool algorithm is
weighted_round_robin
.
- created
At String - (Required, String) The date and time that this member was created.
- health String
- (Required, String) Health of the server member in the pool.
- href String
- (Optional, String) The URL for this virtual server instance.
- id String
- (Optional, String) The unique identifier for this virtual server instance.
- lb String
- member String
- pool String
- port Double
- (Required, Integer) The port number of the application running in the server member.
- provisioning
Status String - (Required, String) The provisioning status of this member.
- targets
List<Get
Is Lb Pool Member Target> - (Required, List) The pool member target. Load balancers in the
network
family support virtual serverinstances. Load balancers in theapplication
family support IP addresses. Nested scheme fortarget
: - weight Double
- (Optional, Integer) Weight of the server member. Applicable only if the pool algorithm is
weighted_round_robin
.
- created
At string - (Required, String) The date and time that this member was created.
- health string
- (Required, String) Health of the server member in the pool.
- href string
- (Optional, String) The URL for this virtual server instance.
- id string
- (Optional, String) The unique identifier for this virtual server instance.
- lb string
- member string
- pool string
- port number
- (Required, Integer) The port number of the application running in the server member.
- provisioning
Status string - (Required, String) The provisioning status of this member.
- targets
Get
Is Lb Pool Member Target[] - (Required, List) The pool member target. Load balancers in the
network
family support virtual serverinstances. Load balancers in theapplication
family support IP addresses. Nested scheme fortarget
: - weight number
- (Optional, Integer) Weight of the server member. Applicable only if the pool algorithm is
weighted_round_robin
.
- created_
at str - (Required, String) The date and time that this member was created.
- health str
- (Required, String) Health of the server member in the pool.
- href str
- (Optional, String) The URL for this virtual server instance.
- id str
- (Optional, String) The unique identifier for this virtual server instance.
- lb str
- member str
- pool str
- port float
- (Required, Integer) The port number of the application running in the server member.
- provisioning_
status str - (Required, String) The provisioning status of this member.
- targets
Sequence[Get
Is Lb Pool Member Target] - (Required, List) The pool member target. Load balancers in the
network
family support virtual serverinstances. Load balancers in theapplication
family support IP addresses. Nested scheme fortarget
: - weight float
- (Optional, Integer) Weight of the server member. Applicable only if the pool algorithm is
weighted_round_robin
.
- created
At String - (Required, String) The date and time that this member was created.
- health String
- (Required, String) Health of the server member in the pool.
- href String
- (Optional, String) The URL for this virtual server instance.
- id String
- (Optional, String) The unique identifier for this virtual server instance.
- lb String
- member String
- pool String
- port Number
- (Required, Integer) The port number of the application running in the server member.
- provisioning
Status String - (Required, String) The provisioning status of this member.
- targets List<Property Map>
- (Required, List) The pool member target. Load balancers in the
network
family support virtual serverinstances. Load balancers in theapplication
family support IP addresses. Nested scheme fortarget
: - weight Number
- (Optional, Integer) Weight of the server member. Applicable only if the pool algorithm is
weighted_round_robin
.
Supporting Types
GetIsLbPoolMemberTarget
- Address string
- (Optional, String) The IP address.This property may add support for IPv6 addresses in the future. When processing a value in this property, verify that the address is in an expected format. If it is not, log an error. Optionally halt processing and surface the error, or bypass the resource on which the unexpected IP address format was encountered.
- Crn string
- (Optional, String) The CRN for this virtual server instance.
- Deleteds
List<Get
Is Lb Pool Member Target Deleted> - (Optional, List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information.
Nested scheme for
deleted
: - Href string
- (Optional, String) The URL for this virtual server instance.
- Id string
- (Optional, String) The unique identifier for this virtual server instance.
- Name string
- (Optional, String) The user-defined name for this virtual server instance (and default system hostname).
- Address string
- (Optional, String) The IP address.This property may add support for IPv6 addresses in the future. When processing a value in this property, verify that the address is in an expected format. If it is not, log an error. Optionally halt processing and surface the error, or bypass the resource on which the unexpected IP address format was encountered.
- Crn string
- (Optional, String) The CRN for this virtual server instance.
- Deleteds
[]Get
Is Lb Pool Member Target Deleted - (Optional, List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information.
Nested scheme for
deleted
: - Href string
- (Optional, String) The URL for this virtual server instance.
- Id string
- (Optional, String) The unique identifier for this virtual server instance.
- Name string
- (Optional, String) The user-defined name for this virtual server instance (and default system hostname).
- address String
- (Optional, String) The IP address.This property may add support for IPv6 addresses in the future. When processing a value in this property, verify that the address is in an expected format. If it is not, log an error. Optionally halt processing and surface the error, or bypass the resource on which the unexpected IP address format was encountered.
- crn String
- (Optional, String) The CRN for this virtual server instance.
- deleteds
List<Get
Is Lb Pool Member Target Deleted> - (Optional, List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information.
Nested scheme for
deleted
: - href String
- (Optional, String) The URL for this virtual server instance.
- id String
- (Optional, String) The unique identifier for this virtual server instance.
- name String
- (Optional, String) The user-defined name for this virtual server instance (and default system hostname).
- address string
- (Optional, String) The IP address.This property may add support for IPv6 addresses in the future. When processing a value in this property, verify that the address is in an expected format. If it is not, log an error. Optionally halt processing and surface the error, or bypass the resource on which the unexpected IP address format was encountered.
- crn string
- (Optional, String) The CRN for this virtual server instance.
- deleteds
Get
Is Lb Pool Member Target Deleted[] - (Optional, List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information.
Nested scheme for
deleted
: - href string
- (Optional, String) The URL for this virtual server instance.
- id string
- (Optional, String) The unique identifier for this virtual server instance.
- name string
- (Optional, String) The user-defined name for this virtual server instance (and default system hostname).
- address str
- (Optional, String) The IP address.This property may add support for IPv6 addresses in the future. When processing a value in this property, verify that the address is in an expected format. If it is not, log an error. Optionally halt processing and surface the error, or bypass the resource on which the unexpected IP address format was encountered.
- crn str
- (Optional, String) The CRN for this virtual server instance.
- deleteds
Sequence[Get
Is Lb Pool Member Target Deleted] - (Optional, List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information.
Nested scheme for
deleted
: - href str
- (Optional, String) The URL for this virtual server instance.
- id str
- (Optional, String) The unique identifier for this virtual server instance.
- name str
- (Optional, String) The user-defined name for this virtual server instance (and default system hostname).
- address String
- (Optional, String) The IP address.This property may add support for IPv6 addresses in the future. When processing a value in this property, verify that the address is in an expected format. If it is not, log an error. Optionally halt processing and surface the error, or bypass the resource on which the unexpected IP address format was encountered.
- crn String
- (Optional, String) The CRN for this virtual server instance.
- deleteds List<Property Map>
- (Optional, List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information.
Nested scheme for
deleted
: - href String
- (Optional, String) The URL for this virtual server instance.
- id String
- (Optional, String) The unique identifier for this virtual server instance.
- name String
- (Optional, String) The user-defined name for this virtual server instance (and default system hostname).
GetIsLbPoolMemberTargetDeleted
- More
Info string - (Required, String) Link to documentation about deleted resources.
- More
Info string - (Required, String) Link to documentation about deleted resources.
- more
Info String - (Required, String) Link to documentation about deleted resources.
- more
Info string - (Required, String) Link to documentation about deleted resources.
- more_
info str - (Required, String) Link to documentation about deleted resources.
- more
Info String - (Required, String) Link to documentation about deleted resources.
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.