1. Packages
  2. Ibm Provider
  3. API Docs
  4. getIsLbProfile
ibm 1.77.1 published on Monday, Apr 14, 2025 by ibm-cloud

ibm.getIsLbProfile

Explore with Pulumi AI

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";
Copy
import pulumi
Copy
package main

import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;

return await Deployment.RunAsync(() => 
{
});
Copy
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) {
    }
}
Copy
{}
Copy

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";

const example = ibm.getIsLbProfile({
    name: "network-fixed",
});
Copy
import pulumi
import pulumi_ibm as ibm

example = ibm.get_is_lb_profile(name="network-fixed")
Copy
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
	})
}
Copy
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",
    });

});
Copy
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());

    }
}
Copy
variables:
  example:
    fn::invoke:
      function: ibm:getIsLbProfile
      arguments:
        name: network-fixed
Copy

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>
Copy
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]
Copy
func GetIsLbProfile(ctx *Context, args *GetIsLbProfileArgs, opts ...InvokeOption) (*GetIsLbProfileResult, error)
func GetIsLbProfileOutput(ctx *Context, args *GetIsLbProfileOutputArgs, opts ...InvokeOption) GetIsLbProfileResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetIsLbProfileResult> getIsLbProfile(GetIsLbProfileArgs args, InvokeOptions options)
public static Output<GetIsLbProfileResult> getIsLbProfile(GetIsLbProfileArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: ibm:index/getIsLbProfile:getIsLbProfile
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Name This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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]
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]
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]
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]
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]
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]
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 This property is required. string
(String) The type of access mode.
Value This property is required. string
Values This property is required. List<string>
(List of strings) Access modes for this profile.
Type This property is required. string
(String) The type of access mode.
Value This property is required. string
Values This property is required. []string
(List of strings) Access modes for this profile.
type This property is required. String
(String) The type of access mode.
value This property is required. String
values This property is required. List<String>
(List of strings) Access modes for this profile.
type This property is required. string
(String) The type of access mode.
value This property is required. string
values This property is required. string[]
(List of strings) Access modes for this profile.
type This property is required. str
(String) The type of access mode.
value This property is required. str
values This property is required. Sequence[str]
(List of strings) Access modes for this profile.
type This property is required. String
(String) The type of access mode.
value This property is required. String
values This property is required. List<String>
(List of strings) Access modes for this profile.

GetIsLbProfileFailsafePolicyAction

Default This property is required. string
(String) The default failsafe policy action for this profile. Allowable values are: fail, forward.
Type This property is required. string
(String) The type of access mode.
Values This property is required. List<string>
(List of strings) Access modes for this profile.
Default This property is required. string
(String) The default failsafe policy action for this profile. Allowable values are: fail, forward.
Type This property is required. string
(String) The type of access mode.
Values This property is required. []string
(List of strings) Access modes for this profile.
default_ This property is required. String
(String) The default failsafe policy action for this profile. Allowable values are: fail, forward.
type This property is required. String
(String) The type of access mode.
values This property is required. List<String>
(List of strings) Access modes for this profile.
default This property is required. string
(String) The default failsafe policy action for this profile. Allowable values are: fail, forward.
type This property is required. string
(String) The type of access mode.
values This property is required. string[]
(List of strings) Access modes for this profile.
default This property is required. str
(String) The default failsafe policy action for this profile. Allowable values are: fail, forward.
type This property is required. str
(String) The type of access mode.
values This property is required. Sequence[str]
(List of strings) Access modes for this profile.
default This property is required. String
(String) The default failsafe policy action for this profile. Allowable values are: fail, forward.
type This property is required. String
(String) The type of access mode.
values This property is required. List<String>
(List of strings) Access modes for this profile.

Package Details

Repository
ibm ibm-cloud/terraform-provider-ibm
License
Notes
This Pulumi package is based on the ibm Terraform Provider.