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

ibm.getIsLbPoolMembers

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 LoadBalancerPoolMemberCollection.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const example = ibm.getIsLbPoolMembers({
        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_members(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.GetIsLbPoolMembers(ctx, &ibm.GetIsLbPoolMembersArgs{
    			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.GetIsLbPoolMembers.Invoke(new()
        {
            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.GetIsLbPoolMembersArgs;
    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.getIsLbPoolMembers(GetIsLbPoolMembersArgs.builder()
                .lb(ibm_is_lb.example().id())
                .pool(ibm_is_lb_pool.example().pool_id())
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: ibm:getIsLbPoolMembers
          arguments:
            lb: ${ibm_is_lb.example.id}
            pool: ${ibm_is_lb_pool.example.pool_id}
    

    Using getIsLbPoolMembers

    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 getIsLbPoolMembers(args: GetIsLbPoolMembersArgs, opts?: InvokeOptions): Promise<GetIsLbPoolMembersResult>
    function getIsLbPoolMembersOutput(args: GetIsLbPoolMembersOutputArgs, opts?: InvokeOptions): Output<GetIsLbPoolMembersResult>
    def get_is_lb_pool_members(id: Optional[str] = None,
                               lb: Optional[str] = None,
                               pool: Optional[str] = None,
                               opts: Optional[InvokeOptions] = None) -> GetIsLbPoolMembersResult
    def get_is_lb_pool_members_output(id: Optional[pulumi.Input[str]] = None,
                               lb: Optional[pulumi.Input[str]] = None,
                               pool: Optional[pulumi.Input[str]] = None,
                               opts: Optional[InvokeOptions] = None) -> Output[GetIsLbPoolMembersResult]
    func GetIsLbPoolMembers(ctx *Context, args *GetIsLbPoolMembersArgs, opts ...InvokeOption) (*GetIsLbPoolMembersResult, error)
    func GetIsLbPoolMembersOutput(ctx *Context, args *GetIsLbPoolMembersOutputArgs, opts ...InvokeOption) GetIsLbPoolMembersResultOutput

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

    public static class GetIsLbPoolMembers 
    {
        public static Task<GetIsLbPoolMembersResult> InvokeAsync(GetIsLbPoolMembersArgs args, InvokeOptions? opts = null)
        public static Output<GetIsLbPoolMembersResult> Invoke(GetIsLbPoolMembersInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetIsLbPoolMembersResult> getIsLbPoolMembers(GetIsLbPoolMembersArgs args, InvokeOptions options)
    public static Output<GetIsLbPoolMembersResult> getIsLbPoolMembers(GetIsLbPoolMembersArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getIsLbPoolMembers:getIsLbPoolMembers
      arguments:
        # arguments dictionary

    The following arguments are supported:

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

    getIsLbPoolMembers Result

    The following output properties are available:

    Id string
    (String) The unique identifier for this virtual server instance.
    Lb string
    Members List<GetIsLbPoolMembersMember>
    (List) Collection of members. Nested scheme for members:
    Pool string
    Id string
    (String) The unique identifier for this virtual server instance.
    Lb string
    Members []GetIsLbPoolMembersMember
    (List) Collection of members. Nested scheme for members:
    Pool string
    id String
    (String) The unique identifier for this virtual server instance.
    lb String
    members List<GetIsLbPoolMembersMember>
    (List) Collection of members. Nested scheme for members:
    pool String
    id string
    (String) The unique identifier for this virtual server instance.
    lb string
    members GetIsLbPoolMembersMember[]
    (List) Collection of members. Nested scheme for members:
    pool string
    id str
    (String) The unique identifier for this virtual server instance.
    lb str
    members Sequence[GetIsLbPoolMembersMember]
    (List) Collection of members. Nested scheme for members:
    pool str
    id String
    (String) The unique identifier for this virtual server instance.
    lb String
    members List<Property Map>
    (List) Collection of members. Nested scheme for members:
    pool String

    Supporting Types

    GetIsLbPoolMembersMember

    CreatedAt string
    (String) The date and time that this member was created.
    Health string
    (String) Health of the server member in the pool.
    Href string
    (String) The URL for this virtual server instance.
    Id string
    (String) The unique identifier for this virtual server instance.
    Port double
    (Integer) The port number of the application running in the server member.
    ProvisioningStatus string
    (String) The provisioning status of this member.
    Targets List<GetIsLbPoolMembersMemberTarget>
    (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
    (Integer) Weight of the server member. Applicable only if the pool algorithm isweighted_round_robin.
    CreatedAt string
    (String) The date and time that this member was created.
    Health string
    (String) Health of the server member in the pool.
    Href string
    (String) The URL for this virtual server instance.
    Id string
    (String) The unique identifier for this virtual server instance.
    Port float64
    (Integer) The port number of the application running in the server member.
    ProvisioningStatus string
    (String) The provisioning status of this member.
    Targets []GetIsLbPoolMembersMemberTarget
    (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
    (Integer) Weight of the server member. Applicable only if the pool algorithm isweighted_round_robin.
    createdAt String
    (String) The date and time that this member was created.
    health String
    (String) Health of the server member in the pool.
    href String
    (String) The URL for this virtual server instance.
    id String
    (String) The unique identifier for this virtual server instance.
    port Double
    (Integer) The port number of the application running in the server member.
    provisioningStatus String
    (String) The provisioning status of this member.
    targets List<GetIsLbPoolMembersMemberTarget>
    (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
    (Integer) Weight of the server member. Applicable only if the pool algorithm isweighted_round_robin.
    createdAt string
    (String) The date and time that this member was created.
    health string
    (String) Health of the server member in the pool.
    href string
    (String) The URL for this virtual server instance.
    id string
    (String) The unique identifier for this virtual server instance.
    port number
    (Integer) The port number of the application running in the server member.
    provisioningStatus string
    (String) The provisioning status of this member.
    targets GetIsLbPoolMembersMemberTarget[]
    (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
    (Integer) Weight of the server member. Applicable only if the pool algorithm isweighted_round_robin.
    created_at str
    (String) The date and time that this member was created.
    health str
    (String) Health of the server member in the pool.
    href str
    (String) The URL for this virtual server instance.
    id str
    (String) The unique identifier for this virtual server instance.
    port float
    (Integer) The port number of the application running in the server member.
    provisioning_status str
    (String) The provisioning status of this member.
    targets Sequence[GetIsLbPoolMembersMemberTarget]
    (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
    (Integer) Weight of the server member. Applicable only if the pool algorithm isweighted_round_robin.
    createdAt String
    (String) The date and time that this member was created.
    health String
    (String) Health of the server member in the pool.
    href String
    (String) The URL for this virtual server instance.
    id String
    (String) The unique identifier for this virtual server instance.
    port Number
    (Integer) The port number of the application running in the server member.
    provisioningStatus String
    (String) The provisioning status of this member.
    targets List<Property Map>
    (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
    (Integer) Weight of the server member. Applicable only if the pool algorithm isweighted_round_robin.

    GetIsLbPoolMembersMemberTarget

    Address string
    (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
    (String) The CRN for this virtual server instance.
    Deleteds List<GetIsLbPoolMembersMemberTargetDeleted>
    (List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information. Nested scheme for deleted:
    Href string
    (String) The URL for this virtual server instance.
    Id string
    (String) The unique identifier for this virtual server instance.
    Name string
    (String) The user-defined name for this virtual server instance (and default system hostname).
    Address string
    (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
    (String) The CRN for this virtual server instance.
    Deleteds []GetIsLbPoolMembersMemberTargetDeleted
    (List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information. Nested scheme for deleted:
    Href string
    (String) The URL for this virtual server instance.
    Id string
    (String) The unique identifier for this virtual server instance.
    Name string
    (String) The user-defined name for this virtual server instance (and default system hostname).
    address String
    (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
    (String) The CRN for this virtual server instance.
    deleteds List<GetIsLbPoolMembersMemberTargetDeleted>
    (List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information. Nested scheme for deleted:
    href String
    (String) The URL for this virtual server instance.
    id String
    (String) The unique identifier for this virtual server instance.
    name String
    (String) The user-defined name for this virtual server instance (and default system hostname).
    address string
    (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
    (String) The CRN for this virtual server instance.
    deleteds GetIsLbPoolMembersMemberTargetDeleted[]
    (List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information. Nested scheme for deleted:
    href string
    (String) The URL for this virtual server instance.
    id string
    (String) The unique identifier for this virtual server instance.
    name string
    (String) The user-defined name for this virtual server instance (and default system hostname).
    address str
    (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
    (String) The CRN for this virtual server instance.
    deleteds Sequence[GetIsLbPoolMembersMemberTargetDeleted]
    (List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information. Nested scheme for deleted:
    href str
    (String) The URL for this virtual server instance.
    id str
    (String) The unique identifier for this virtual server instance.
    name str
    (String) The user-defined name for this virtual server instance (and default system hostname).
    address String
    (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
    (String) The CRN for this virtual server instance.
    deleteds List<Property Map>
    (List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information. Nested scheme for deleted:
    href String
    (String) The URL for this virtual server instance.
    id String
    (String) The unique identifier for this virtual server instance.
    name String
    (String) The user-defined name for this virtual server instance (and default system hostname).

    GetIsLbPoolMembersMemberTargetDeleted

    MoreInfo string
    (String) Link to documentation about deleted resources.
    MoreInfo string
    (String) Link to documentation about deleted resources.
    moreInfo String
    (String) Link to documentation about deleted resources.
    moreInfo string
    (String) Link to documentation about deleted resources.
    more_info str
    (String) Link to documentation about deleted resources.
    moreInfo String
    (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