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

ibm.getIsLbProfiles

Explore with Pulumi AI

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

    Retrieve information of an existing IBM Cloud infrastructure load balancer profiles as a read-only data source. For more information, about infrastructure load balance profiles, see managing security and compliance with load balancers for VPC.

    Note: VPC infrastructure services are a regional specific based endpoint, by default targets to us-south. Please make sure to target right region in the provider block as shown in the provider.tf file, if VPC service is created in region other than us-south.

    provider.tf

    import * as pulumi from "@pulumi/pulumi";
    
    import pulumi
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    
    return await Deployment.RunAsync(() => 
    {
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    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) {
        }
    }
    
    {}
    

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const example = ibm.getIsLbProfiles({});
    
    import pulumi
    import pulumi_ibm as ibm
    
    example = ibm.get_is_lb_profiles()
    
    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.GetIsLbProfiles(ctx, &ibm.GetIsLbProfilesArgs{}, 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.GetIsLbProfiles.Invoke();
    
    });
    
    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.GetIsLbProfilesArgs;
    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.getIsLbProfiles();
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: ibm:getIsLbProfiles
          arguments: {}
    

    Using getIsLbProfiles

    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 getIsLbProfiles(args: GetIsLbProfilesArgs, opts?: InvokeOptions): Promise<GetIsLbProfilesResult>
    function getIsLbProfilesOutput(args: GetIsLbProfilesOutputArgs, opts?: InvokeOptions): Output<GetIsLbProfilesResult>
    def get_is_lb_profiles(id: Optional[str] = None,
                           name: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetIsLbProfilesResult
    def get_is_lb_profiles_output(id: Optional[pulumi.Input[str]] = None,
                           name: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetIsLbProfilesResult]
    func GetIsLbProfiles(ctx *Context, args *GetIsLbProfilesArgs, opts ...InvokeOption) (*GetIsLbProfilesResult, error)
    func GetIsLbProfilesOutput(ctx *Context, args *GetIsLbProfilesOutputArgs, opts ...InvokeOption) GetIsLbProfilesResultOutput

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

    public static class GetIsLbProfiles 
    {
        public static Task<GetIsLbProfilesResult> InvokeAsync(GetIsLbProfilesArgs args, InvokeOptions? opts = null)
        public static Output<GetIsLbProfilesResult> Invoke(GetIsLbProfilesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetIsLbProfilesResult> getIsLbProfiles(GetIsLbProfilesArgs args, InvokeOptions options)
    public static Output<GetIsLbProfilesResult> getIsLbProfiles(GetIsLbProfilesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getIsLbProfiles:getIsLbProfiles
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    Name string
    The name of the load balancer profile. This will fetch only one profile if it exists with the name and profile can be accessed using data.ibm_is_lb_profiles.profile.lb_profiles.0
    Id string
    Name string
    The name of the load balancer profile. This will fetch only one profile if it exists with the name and profile can be accessed using data.ibm_is_lb_profiles.profile.lb_profiles.0
    id String
    name String
    The name of the load balancer profile. This will fetch only one profile if it exists with the name and profile can be accessed using data.ibm_is_lb_profiles.profile.lb_profiles.0
    id string
    name string
    The name of the load balancer profile. This will fetch only one profile if it exists with the name and profile can be accessed using data.ibm_is_lb_profiles.profile.lb_profiles.0
    id str
    name str
    The name of the load balancer profile. This will fetch only one profile if it exists with the name and profile can be accessed using data.ibm_is_lb_profiles.profile.lb_profiles.0
    id String
    name String
    The name of the load balancer profile. This will fetch only one profile if it exists with the name and profile can be accessed using data.ibm_is_lb_profiles.profile.lb_profiles.0

    getIsLbProfiles Result

    The following output properties are available:

    Id string
    LbProfiles List<GetIsLbProfilesLbProfile>
    (List) List of all load balancer profiles in the IBM Cloud Infrastructure.
    Name string
    (String) The name for this load balancer profile.
    Id string
    LbProfiles []GetIsLbProfilesLbProfile
    (List) List of all load balancer profiles in the IBM Cloud Infrastructure.
    Name string
    (String) The name for this load balancer profile.
    id String
    lbProfiles List<GetIsLbProfilesLbProfile>
    (List) List of all load balancer profiles in the IBM Cloud Infrastructure.
    name String
    (String) The name for this load balancer profile.
    id string
    lbProfiles GetIsLbProfilesLbProfile[]
    (List) List of all load balancer profiles in the IBM Cloud Infrastructure.
    name string
    (String) The name for this load balancer profile.
    id str
    lb_profiles Sequence[GetIsLbProfilesLbProfile]
    (List) List of all load balancer profiles in the IBM Cloud Infrastructure.
    name str
    (String) The name for this load balancer profile.
    id String
    lbProfiles List<Property Map>
    (List) List of all load balancer profiles in the IBM Cloud Infrastructure.
    name String
    (String) The name for this load balancer profile.

    Supporting Types

    GetIsLbProfilesLbProfile

    AccessModes List<GetIsLbProfilesLbProfileAccessMode>
    (List) The instance groups support for a load balancer with this profile
    Availabilities List<GetIsLbProfilesLbProfileAvailability>
    (List) The availability mode for a load balancer with this profile
    FailsafePolicyActions List<GetIsLbProfilesLbProfileFailsafePolicyAction>
    (List) The failsafe policy configuration for a load balancer with this profile.
    Family string
    (String) The product family this load balancer profile belongs to.
    Href string
    (String) The URL for this load balancer profile.
    InstanceGroupsSupporteds List<GetIsLbProfilesLbProfileInstanceGroupsSupported>
    (List) The instance groups support for a load balancer with this profile
    Name string
    The name of the load balancer profile. This will fetch only one profile if it exists with the name and profile can be accessed using data.ibm_is_lb_profiles.profile.lb_profiles.0
    RouteModeSupported bool
    (Bool) The route mode support for a load balancer with this profile.
    RouteModeType string
    (String) The route mode type for this load balancer profile, one of [fixed, dependent]
    SourceIpSessionPersistenceSupporteds List<GetIsLbProfilesLbProfileSourceIpSessionPersistenceSupported>
    (List) The source IP session persistence support for a load balancer with this profile
    TargetableLoadBalancerProfiles List<GetIsLbProfilesLbProfileTargetableLoadBalancerProfile>
    (List) The load balancer profiles that load balancers with this profile can target
    UdpSupported bool
    (Bool) The UDP support for a load balancer with this profile.
    UdpSupportedType string
    (String) The UDP support type for a load balancer with this profile, one of [fixed, dependent]
    AccessModes []GetIsLbProfilesLbProfileAccessMode
    (List) The instance groups support for a load balancer with this profile
    Availabilities []GetIsLbProfilesLbProfileAvailability
    (List) The availability mode for a load balancer with this profile
    FailsafePolicyActions []GetIsLbProfilesLbProfileFailsafePolicyAction
    (List) The failsafe policy configuration for a load balancer with this profile.
    Family string
    (String) The product family this load balancer profile belongs to.
    Href string
    (String) The URL for this load balancer profile.
    InstanceGroupsSupporteds []GetIsLbProfilesLbProfileInstanceGroupsSupported
    (List) The instance groups support for a load balancer with this profile
    Name string
    The name of the load balancer profile. This will fetch only one profile if it exists with the name and profile can be accessed using data.ibm_is_lb_profiles.profile.lb_profiles.0
    RouteModeSupported bool
    (Bool) The route mode support for a load balancer with this profile.
    RouteModeType string
    (String) The route mode type for this load balancer profile, one of [fixed, dependent]
    SourceIpSessionPersistenceSupporteds []GetIsLbProfilesLbProfileSourceIpSessionPersistenceSupported
    (List) The source IP session persistence support for a load balancer with this profile
    TargetableLoadBalancerProfiles []GetIsLbProfilesLbProfileTargetableLoadBalancerProfile
    (List) The load balancer profiles that load balancers with this profile can target
    UdpSupported bool
    (Bool) The UDP support for a load balancer with this profile.
    UdpSupportedType string
    (String) The UDP support type for a load balancer with this profile, one of [fixed, dependent]
    accessModes List<GetIsLbProfilesLbProfileAccessMode>
    (List) The instance groups support for a load balancer with this profile
    availabilities List<GetIsLbProfilesLbProfileAvailability>
    (List) The availability mode for a load balancer with this profile
    failsafePolicyActions List<GetIsLbProfilesLbProfileFailsafePolicyAction>
    (List) The failsafe policy configuration for a load balancer with this profile.
    family String
    (String) The product family this load balancer profile belongs to.
    href String
    (String) The URL for this load balancer profile.
    instanceGroupsSupporteds List<GetIsLbProfilesLbProfileInstanceGroupsSupported>
    (List) The instance groups support for a load balancer with this profile
    name String
    The name of the load balancer profile. This will fetch only one profile if it exists with the name and profile can be accessed using data.ibm_is_lb_profiles.profile.lb_profiles.0
    routeModeSupported Boolean
    (Bool) The route mode support for a load balancer with this profile.
    routeModeType String
    (String) The route mode type for this load balancer profile, one of [fixed, dependent]
    sourceIpSessionPersistenceSupporteds List<GetIsLbProfilesLbProfileSourceIpSessionPersistenceSupported>
    (List) The source IP session persistence support for a load balancer with this profile
    targetableLoadBalancerProfiles List<GetIsLbProfilesLbProfileTargetableLoadBalancerProfile>
    (List) The load balancer profiles that load balancers with this profile can target
    udpSupported Boolean
    (Bool) The UDP support for a load balancer with this profile.
    udpSupportedType String
    (String) The UDP support type for a load balancer with this profile, one of [fixed, dependent]
    accessModes GetIsLbProfilesLbProfileAccessMode[]
    (List) The instance groups support for a load balancer with this profile
    availabilities GetIsLbProfilesLbProfileAvailability[]
    (List) The availability mode for a load balancer with this profile
    failsafePolicyActions GetIsLbProfilesLbProfileFailsafePolicyAction[]
    (List) The failsafe policy configuration for a load balancer with this profile.
    family string
    (String) The product family this load balancer profile belongs to.
    href string
    (String) The URL for this load balancer profile.
    instanceGroupsSupporteds GetIsLbProfilesLbProfileInstanceGroupsSupported[]
    (List) The instance groups support for a load balancer with this profile
    name string
    The name of the load balancer profile. This will fetch only one profile if it exists with the name and profile can be accessed using data.ibm_is_lb_profiles.profile.lb_profiles.0
    routeModeSupported boolean
    (Bool) The route mode support for a load balancer with this profile.
    routeModeType string
    (String) The route mode type for this load balancer profile, one of [fixed, dependent]
    sourceIpSessionPersistenceSupporteds GetIsLbProfilesLbProfileSourceIpSessionPersistenceSupported[]
    (List) The source IP session persistence support for a load balancer with this profile
    targetableLoadBalancerProfiles GetIsLbProfilesLbProfileTargetableLoadBalancerProfile[]
    (List) The load balancer profiles that load balancers with this profile can target
    udpSupported boolean
    (Bool) The UDP support for a load balancer with this profile.
    udpSupportedType string
    (String) The UDP support type for a load balancer with this profile, one of [fixed, dependent]
    access_modes Sequence[GetIsLbProfilesLbProfileAccessMode]
    (List) The instance groups support for a load balancer with this profile
    availabilities Sequence[GetIsLbProfilesLbProfileAvailability]
    (List) The availability mode for a load balancer with this profile
    failsafe_policy_actions Sequence[GetIsLbProfilesLbProfileFailsafePolicyAction]
    (List) The failsafe policy configuration for a load balancer with this profile.
    family str
    (String) The product family this load balancer profile belongs to.
    href str
    (String) The URL for this load balancer profile.
    instance_groups_supporteds Sequence[GetIsLbProfilesLbProfileInstanceGroupsSupported]
    (List) The instance groups support for a load balancer with this profile
    name str
    The name of the load balancer profile. This will fetch only one profile if it exists with the name and profile can be accessed using data.ibm_is_lb_profiles.profile.lb_profiles.0
    route_mode_supported bool
    (Bool) The route mode support for a load balancer with this profile.
    route_mode_type str
    (String) The route mode type for this load balancer profile, one of [fixed, dependent]
    source_ip_session_persistence_supporteds Sequence[GetIsLbProfilesLbProfileSourceIpSessionPersistenceSupported]
    (List) The source IP session persistence support for a load balancer with this profile
    targetable_load_balancer_profiles Sequence[GetIsLbProfilesLbProfileTargetableLoadBalancerProfile]
    (List) The load balancer profiles that load balancers with this profile can target
    udp_supported bool
    (Bool) The UDP support for a load balancer with this profile.
    udp_supported_type str
    (String) The UDP support type for a load balancer with this profile, one of [fixed, dependent]
    accessModes List<Property Map>
    (List) The instance groups support for a load balancer with this profile
    availabilities List<Property Map>
    (List) The availability mode for a load balancer with this profile
    failsafePolicyActions List<Property Map>
    (List) The failsafe policy configuration for a load balancer with this profile.
    family String
    (String) The product family this load balancer profile belongs to.
    href String
    (String) The URL for this load balancer profile.
    instanceGroupsSupporteds List<Property Map>
    (List) The instance groups support for a load balancer with this profile
    name String
    The name of the load balancer profile. This will fetch only one profile if it exists with the name and profile can be accessed using data.ibm_is_lb_profiles.profile.lb_profiles.0
    routeModeSupported Boolean
    (Bool) The route mode support for a load balancer with this profile.
    routeModeType String
    (String) The route mode type for this load balancer profile, one of [fixed, dependent]
    sourceIpSessionPersistenceSupporteds List<Property Map>
    (List) The source IP session persistence support for a load balancer with this profile
    targetableLoadBalancerProfiles List<Property Map>
    (List) The load balancer profiles that load balancers with this profile can target
    udpSupported Boolean
    (Bool) The UDP support for a load balancer with this profile.
    udpSupportedType String
    (String) The UDP support type for a load balancer with this profile, one of [fixed, dependent]

    GetIsLbProfilesLbProfileAccessMode

    Type string
    (String) The source ip session persistence support type. One of fixed, dependent
    Value string
    (String) Indicated whether source ip session persistence is supported. Applicable only if type is fixed
    Values List<string>
    (List of strings) Access modes for this profile.
    Type string
    (String) The source ip session persistence support type. One of fixed, dependent
    Value string
    (String) Indicated whether source ip session persistence is supported. Applicable only if type is fixed
    Values []string
    (List of strings) Access modes for this profile.
    type String
    (String) The source ip session persistence support type. One of fixed, dependent
    value String
    (String) Indicated whether source ip session persistence is supported. Applicable only if type is fixed
    values List<String>
    (List of strings) Access modes for this profile.
    type string
    (String) The source ip session persistence support type. One of fixed, dependent
    value string
    (String) Indicated whether source ip session persistence is supported. Applicable only if type is fixed
    values string[]
    (List of strings) Access modes for this profile.
    type str
    (String) The source ip session persistence support type. One of fixed, dependent
    value str
    (String) Indicated whether source ip session persistence is supported. Applicable only if type is fixed
    values Sequence[str]
    (List of strings) Access modes for this profile.
    type String
    (String) The source ip session persistence support type. One of fixed, dependent
    value String
    (String) Indicated whether source ip session persistence is supported. Applicable only if type is fixed
    values List<String>
    (List of strings) Access modes for this profile.

    GetIsLbProfilesLbProfileAvailability

    Type string
    (String) The source ip session persistence support type. One of fixed, dependent
    Value string
    (String) Indicated whether source ip session persistence is supported. Applicable only if type is fixed
    Type string
    (String) The source ip session persistence support type. One of fixed, dependent
    Value string
    (String) Indicated whether source ip session persistence is supported. Applicable only if type is fixed
    type String
    (String) The source ip session persistence support type. One of fixed, dependent
    value String
    (String) Indicated whether source ip session persistence is supported. Applicable only if type is fixed
    type string
    (String) The source ip session persistence support type. One of fixed, dependent
    value string
    (String) Indicated whether source ip session persistence is supported. Applicable only if type is fixed
    type str
    (String) The source ip session persistence support type. One of fixed, dependent
    value str
    (String) Indicated whether source ip session persistence is supported. Applicable only if type is fixed
    type String
    (String) The source ip session persistence support type. One of fixed, dependent
    value String
    (String) Indicated whether source ip session persistence is supported. Applicable only if type is fixed

    GetIsLbProfilesLbProfileFailsafePolicyAction

    Default string
    (String) The default failsafe policy action for this profile. Allowable values are: fail, forward.
    Type string
    (String) The source ip session persistence support type. One of fixed, dependent
    Values List<string>
    (List of strings) Access modes for this profile.
    Default string
    (String) The default failsafe policy action for this profile. Allowable values are: fail, forward.
    Type string
    (String) The source ip session persistence support type. One of fixed, dependent
    Values []string
    (List of strings) Access modes for this profile.
    default_ String
    (String) The default failsafe policy action for this profile. Allowable values are: fail, forward.
    type String
    (String) The source ip session persistence support type. One of fixed, dependent
    values List<String>
    (List of strings) Access modes for this profile.
    default string
    (String) The default failsafe policy action for this profile. Allowable values are: fail, forward.
    type string
    (String) The source ip session persistence support type. One of fixed, dependent
    values string[]
    (List of strings) Access modes for this profile.
    default str
    (String) The default failsafe policy action for this profile. Allowable values are: fail, forward.
    type str
    (String) The source ip session persistence support type. One of fixed, dependent
    values Sequence[str]
    (List of strings) Access modes for this profile.
    default String
    (String) The default failsafe policy action for this profile. Allowable values are: fail, forward.
    type String
    (String) The source ip session persistence support type. One of fixed, dependent
    values List<String>
    (List of strings) Access modes for this profile.

    GetIsLbProfilesLbProfileInstanceGroupsSupported

    Type string
    (String) The source ip session persistence support type. One of fixed, dependent
    Value bool
    (String) Indicated whether source ip session persistence is supported. Applicable only if type is fixed
    Type string
    (String) The source ip session persistence support type. One of fixed, dependent
    Value bool
    (String) Indicated whether source ip session persistence is supported. Applicable only if type is fixed
    type String
    (String) The source ip session persistence support type. One of fixed, dependent
    value Boolean
    (String) Indicated whether source ip session persistence is supported. Applicable only if type is fixed
    type string
    (String) The source ip session persistence support type. One of fixed, dependent
    value boolean
    (String) Indicated whether source ip session persistence is supported. Applicable only if type is fixed
    type str
    (String) The source ip session persistence support type. One of fixed, dependent
    value bool
    (String) Indicated whether source ip session persistence is supported. Applicable only if type is fixed
    type String
    (String) The source ip session persistence support type. One of fixed, dependent
    value Boolean
    (String) Indicated whether source ip session persistence is supported. Applicable only if type is fixed

    GetIsLbProfilesLbProfileSourceIpSessionPersistenceSupported

    Type string
    (String) The source ip session persistence support type. One of fixed, dependent
    Value bool
    (String) Indicated whether source ip session persistence is supported. Applicable only if type is fixed
    Type string
    (String) The source ip session persistence support type. One of fixed, dependent
    Value bool
    (String) Indicated whether source ip session persistence is supported. Applicable only if type is fixed
    type String
    (String) The source ip session persistence support type. One of fixed, dependent
    value Boolean
    (String) Indicated whether source ip session persistence is supported. Applicable only if type is fixed
    type string
    (String) The source ip session persistence support type. One of fixed, dependent
    value boolean
    (String) Indicated whether source ip session persistence is supported. Applicable only if type is fixed
    type str
    (String) The source ip session persistence support type. One of fixed, dependent
    value bool
    (String) Indicated whether source ip session persistence is supported. Applicable only if type is fixed
    type String
    (String) The source ip session persistence support type. One of fixed, dependent
    value Boolean
    (String) Indicated whether source ip session persistence is supported. Applicable only if type is fixed

    GetIsLbProfilesLbProfileTargetableLoadBalancerProfile

    Family string
    (String) The product family this load balancer profile belongs to.
    Href string
    (String) The URL for this load balancer profile.
    Name string
    The name of the load balancer profile. This will fetch only one profile if it exists with the name and profile can be accessed using data.ibm_is_lb_profiles.profile.lb_profiles.0
    Family string
    (String) The product family this load balancer profile belongs to.
    Href string
    (String) The URL for this load balancer profile.
    Name string
    The name of the load balancer profile. This will fetch only one profile if it exists with the name and profile can be accessed using data.ibm_is_lb_profiles.profile.lb_profiles.0
    family String
    (String) The product family this load balancer profile belongs to.
    href String
    (String) The URL for this load balancer profile.
    name String
    The name of the load balancer profile. This will fetch only one profile if it exists with the name and profile can be accessed using data.ibm_is_lb_profiles.profile.lb_profiles.0
    family string
    (String) The product family this load balancer profile belongs to.
    href string
    (String) The URL for this load balancer profile.
    name string
    The name of the load balancer profile. This will fetch only one profile if it exists with the name and profile can be accessed using data.ibm_is_lb_profiles.profile.lb_profiles.0
    family str
    (String) The product family this load balancer profile belongs to.
    href str
    (String) The URL for this load balancer profile.
    name str
    The name of the load balancer profile. This will fetch only one profile if it exists with the name and profile can be accessed using data.ibm_is_lb_profiles.profile.lb_profiles.0
    family String
    (String) The product family this load balancer profile belongs to.
    href String
    (String) The URL for this load balancer profile.
    name String
    The name of the load balancer profile. This will fetch only one profile if it exists with the name and profile can be accessed using data.ibm_is_lb_profiles.profile.lb_profiles.0

    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