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

ibm.getIsLbProfile

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 profile as a read-only data source. For more information, about infrastructure load balance profile, 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.getIsLbProfile({
        name: "network-fixed",
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    example = ibm.get_is_lb_profile(name="network-fixed")
    
    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.GetIsLbProfile(ctx, &ibm.GetIsLbProfileArgs{
    			Name: "network-fixed",
    		}, 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.GetIsLbProfile.Invoke(new()
        {
            Name = "network-fixed",
        });
    
    });
    
    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.GetIsLbProfileArgs;
    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.getIsLbProfile(GetIsLbProfileArgs.builder()
                .name("network-fixed")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: ibm:getIsLbProfile
          arguments:
            name: network-fixed
    

    Using getIsLbProfile

    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 getIsLbProfile(args: GetIsLbProfileArgs, opts?: InvokeOptions): Promise<GetIsLbProfileResult>
    function getIsLbProfileOutput(args: GetIsLbProfileOutputArgs, opts?: InvokeOptions): Output<GetIsLbProfileResult>
    def get_is_lb_profile(id: Optional[str] = None,
                          name: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> GetIsLbProfileResult
    def get_is_lb_profile_output(id: Optional[pulumi.Input[str]] = None,
                          name: Optional[pulumi.Input[str]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetIsLbProfileResult]
    func GetIsLbProfile(ctx *Context, args *GetIsLbProfileArgs, opts ...InvokeOption) (*GetIsLbProfileResult, error)
    func GetIsLbProfileOutput(ctx *Context, args *GetIsLbProfileOutputArgs, opts ...InvokeOption) GetIsLbProfileResultOutput

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

    public static class GetIsLbProfile 
    {
        public static Task<GetIsLbProfileResult> InvokeAsync(GetIsLbProfileArgs args, InvokeOptions? opts = null)
        public static Output<GetIsLbProfileResult> Invoke(GetIsLbProfileInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetIsLbProfileResult> getIsLbProfile(GetIsLbProfileArgs args, InvokeOptions options)
    public static Output<GetIsLbProfileResult> getIsLbProfile(GetIsLbProfileArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getIsLbProfile:getIsLbProfile
      arguments:
        # arguments dictionary

    The following arguments are supported:

    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_profile.profile.lb_profile.0
    Id string
    (String) The id(name) 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_profile.profile.lb_profile.0
    Id string
    (String) The id(name) 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_profile.profile.lb_profile.0
    id String
    (String) The id(name) 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_profile.profile.lb_profile.0
    id string
    (String) The id(name) 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_profile.profile.lb_profile.0
    id str
    (String) The id(name) 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_profile.profile.lb_profile.0
    id String
    (String) The id(name) for this load balancer profile.

    getIsLbProfile Result

    The following output properties are available:

    AccessModes List<GetIsLbProfileAccessMode>
    (List) The instance groups support for a load balancer with this profile.
    FailsafePolicyActions List<GetIsLbProfileFailsafePolicyAction>
    (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.
    Id string
    (String) The id(name) for this load balancer profile.
    Name string
    (String) The name for this load balancer profile.
    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]
    TargetableLoadBalancerProfiles List<GetIsLbProfileTargetableLoadBalancerProfile>
    (List) The load balancer profiles that load balancers with this profile can target. Nested scheme for targetable_load_balancer_profiles:
    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 []GetIsLbProfileAccessMode
    (List) The instance groups support for a load balancer with this profile.
    FailsafePolicyActions []GetIsLbProfileFailsafePolicyAction
    (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.
    Id string
    (String) The id(name) for this load balancer profile.
    Name string
    (String) The name for this load balancer profile.
    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]
    TargetableLoadBalancerProfiles []GetIsLbProfileTargetableLoadBalancerProfile
    (List) The load balancer profiles that load balancers with this profile can target. Nested scheme for targetable_load_balancer_profiles:
    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<GetIsLbProfileAccessMode>
    (List) The instance groups support for a load balancer with this profile.
    failsafePolicyActions List<GetIsLbProfileFailsafePolicyAction>
    (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.
    id String
    (String) The id(name) for this load balancer profile.
    name String
    (String) The name for this load balancer profile.
    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]
    targetableLoadBalancerProfiles List<GetIsLbProfileTargetableLoadBalancerProfile>
    (List) The load balancer profiles that load balancers with this profile can target. Nested scheme for targetable_load_balancer_profiles:
    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 GetIsLbProfileAccessMode[]
    (List) The instance groups support for a load balancer with this profile.
    failsafePolicyActions GetIsLbProfileFailsafePolicyAction[]
    (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.
    id string
    (String) The id(name) for this load balancer profile.
    name string
    (String) The name for this load balancer profile.
    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]
    targetableLoadBalancerProfiles GetIsLbProfileTargetableLoadBalancerProfile[]
    (List) The load balancer profiles that load balancers with this profile can target. Nested scheme for targetable_load_balancer_profiles:
    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[GetIsLbProfileAccessMode]
    (List) The instance groups support for a load balancer with this profile.
    failsafe_policy_actions Sequence[GetIsLbProfileFailsafePolicyAction]
    (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.
    id str
    (String) The id(name) for this load balancer profile.
    name str
    (String) The name for this load balancer profile.
    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]
    targetable_load_balancer_profiles Sequence[GetIsLbProfileTargetableLoadBalancerProfile]
    (List) The load balancer profiles that load balancers with this profile can target. Nested scheme for targetable_load_balancer_profiles:
    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.
    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.
    id String
    (String) The id(name) for this load balancer profile.
    name String
    (String) The name for this load balancer profile.
    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]
    targetableLoadBalancerProfiles List<Property Map>
    (List) The load balancer profiles that load balancers with this profile can target. Nested scheme for targetable_load_balancer_profiles:
    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]

    Supporting Types

    GetIsLbProfileAccessMode

    Type string
    (String) The type of access mode.
    Value string
    Values List<string>
    (List of strings) Access modes for this profile.
    Type string
    (String) The type of access mode.
    Value string
    Values []string
    (List of strings) Access modes for this profile.
    type String
    (String) The type of access mode.
    value String
    values List<String>
    (List of strings) Access modes for this profile.
    type string
    (String) The type of access mode.
    value string
    values string[]
    (List of strings) Access modes for this profile.
    type str
    (String) The type of access mode.
    value str
    values Sequence[str]
    (List of strings) Access modes for this profile.
    type String
    (String) The type of access mode.
    value String
    values List<String>
    (List of strings) Access modes for this profile.

    GetIsLbProfileFailsafePolicyAction

    Default string
    (String) The default failsafe policy action for this profile. Allowable values are: fail, forward.
    Type string
    (String) The type of access mode.
    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 type of access mode.
    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 type of access mode.
    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 type of access mode.
    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 type of access mode.
    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 type of access mode.
    values List<String>
    (List of strings) Access modes for this profile.

    GetIsLbProfileTargetableLoadBalancerProfile

    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_profile.profile.lb_profile.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_profile.profile.lb_profile.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_profile.profile.lb_profile.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_profile.profile.lb_profile.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_profile.profile.lb_profile.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_profile.profile.lb_profile.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