1. Packages
  2. Ibm Provider
  3. API Docs
  4. getIsLbPoolMember
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

ibm.getIsLbPoolMember

Explore with Pulumi AI

ibm logo
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

    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:

    Lb string
    The load balancer identifier.
    Member string
    The member identifier.
    Pool string
    The pool identifier.
    Id string
    (Optional, String) The unique identifier for this virtual server instance.
    Lb string
    The load balancer identifier.
    Member string
    The member identifier.
    Pool string
    The pool identifier.
    Id string
    (Optional, String) The unique identifier for this virtual server instance.
    lb String
    The load balancer identifier.
    member String
    The member identifier.
    pool String
    The pool identifier.
    id String
    (Optional, String) The unique identifier for this virtual server instance.
    lb string
    The load balancer identifier.
    member string
    The member identifier.
    pool string
    The pool identifier.
    id string
    (Optional, String) The unique identifier for this virtual server instance.
    lb str
    The load balancer identifier.
    member str
    The member identifier.
    pool str
    The pool identifier.
    id str
    (Optional, String) The unique identifier for this virtual server instance.
    lb String
    The load balancer identifier.
    member String
    The member identifier.
    pool String
    The pool identifier.
    id String
    (Optional, String) The unique identifier for this virtual server instance.

    getIsLbPoolMember Result

    The following output properties are available:

    CreatedAt 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.
    ProvisioningStatus string
    (Required, String) The provisioning status of this member.
    Targets List<GetIsLbPoolMemberTarget>
    (Required, List) The pool member target. Load balancers in the network family support virtual serverinstances. Load balancers in the application family support IP addresses. Nested scheme for target:
    Weight double
    (Optional, Integer) Weight of the server member. Applicable only if the pool algorithm isweighted_round_robin.
    CreatedAt 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.
    ProvisioningStatus string
    (Required, String) The provisioning status of this member.
    Targets []GetIsLbPoolMemberTarget
    (Required, List) The pool member target. Load balancers in the network family support virtual serverinstances. Load balancers in the application family support IP addresses. Nested scheme for target:
    Weight float64
    (Optional, Integer) Weight of the server member. Applicable only if the pool algorithm isweighted_round_robin.
    createdAt 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.
    provisioningStatus String
    (Required, String) The provisioning status of this member.
    targets List<GetIsLbPoolMemberTarget>
    (Required, List) The pool member target. Load balancers in the network family support virtual serverinstances. Load balancers in the application family support IP addresses. Nested scheme for target:
    weight Double
    (Optional, Integer) Weight of the server member. Applicable only if the pool algorithm isweighted_round_robin.
    createdAt 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.
    provisioningStatus string
    (Required, String) The provisioning status of this member.
    targets GetIsLbPoolMemberTarget[]
    (Required, List) The pool member target. Load balancers in the network family support virtual serverinstances. Load balancers in the application family support IP addresses. Nested scheme for target:
    weight number
    (Optional, Integer) Weight of the server member. Applicable only if the pool algorithm isweighted_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[GetIsLbPoolMemberTarget]
    (Required, List) The pool member target. Load balancers in the network family support virtual serverinstances. Load balancers in the application family support IP addresses. Nested scheme for target:
    weight float
    (Optional, Integer) Weight of the server member. Applicable only if the pool algorithm isweighted_round_robin.
    createdAt 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.
    provisioningStatus 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 the application family support IP addresses. Nested scheme for target:
    weight Number
    (Optional, Integer) Weight of the server member. Applicable only if the pool algorithm isweighted_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<GetIsLbPoolMemberTargetDeleted>
    (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 []GetIsLbPoolMemberTargetDeleted
    (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<GetIsLbPoolMemberTargetDeleted>
    (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 GetIsLbPoolMemberTargetDeleted[]
    (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[GetIsLbPoolMemberTargetDeleted]
    (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

    MoreInfo string
    (Required, String) Link to documentation about deleted resources.
    MoreInfo string
    (Required, String) Link to documentation about deleted resources.
    moreInfo String
    (Required, String) Link to documentation about deleted resources.
    moreInfo string
    (Required, String) Link to documentation about deleted resources.
    more_info str
    (Required, String) Link to documentation about deleted resources.
    moreInfo 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.
    ibm logo
    ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud