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

ibm.getIsLbListenerPolicies

Explore with Pulumi AI

Provides a read-only data source for LoadBalancerListenerPolicyCollection. For more information, about VPC load balance listener policy, see monitoring application Load Balancer for VPC metrics.

Example Usage

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

const isLbListenerPolicies = ibm.getIsLbListenerPolicies({
    lb: ibm_is_lb.example.id,
    listener: ibm_is_lb_listener.example.listener_id,
});
Copy
import pulumi
import pulumi_ibm as ibm

is_lb_listener_policies = ibm.get_is_lb_listener_policies(lb=ibm_is_lb["example"]["id"],
    listener=ibm_is_lb_listener["example"]["listener_id"])
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.GetIsLbListenerPolicies(ctx, &ibm.GetIsLbListenerPoliciesArgs{
			Lb:       ibm_is_lb.Example.Id,
			Listener: ibm_is_lb_listener.Example.Listener_id,
		}, 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 isLbListenerPolicies = Ibm.GetIsLbListenerPolicies.Invoke(new()
    {
        Lb = ibm_is_lb.Example.Id,
        Listener = ibm_is_lb_listener.Example.Listener_id,
    });

});
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.GetIsLbListenerPoliciesArgs;
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 isLbListenerPolicies = IbmFunctions.getIsLbListenerPolicies(GetIsLbListenerPoliciesArgs.builder()
            .lb(ibm_is_lb.example().id())
            .listener(ibm_is_lb_listener.example().listener_id())
            .build());

    }
}
Copy
variables:
  isLbListenerPolicies:
    fn::invoke:
      function: ibm:getIsLbListenerPolicies
      arguments:
        lb: ${ibm_is_lb.example.id}
        listener: ${ibm_is_lb_listener.example.listener_id}
Copy

Using getIsLbListenerPolicies

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 getIsLbListenerPolicies(args: GetIsLbListenerPoliciesArgs, opts?: InvokeOptions): Promise<GetIsLbListenerPoliciesResult>
function getIsLbListenerPoliciesOutput(args: GetIsLbListenerPoliciesOutputArgs, opts?: InvokeOptions): Output<GetIsLbListenerPoliciesResult>
Copy
def get_is_lb_listener_policies(id: Optional[str] = None,
                                lb: Optional[str] = None,
                                listener: Optional[str] = None,
                                opts: Optional[InvokeOptions] = None) -> GetIsLbListenerPoliciesResult
def get_is_lb_listener_policies_output(id: Optional[pulumi.Input[str]] = None,
                                lb: Optional[pulumi.Input[str]] = None,
                                listener: Optional[pulumi.Input[str]] = None,
                                opts: Optional[InvokeOptions] = None) -> Output[GetIsLbListenerPoliciesResult]
Copy
func GetIsLbListenerPolicies(ctx *Context, args *GetIsLbListenerPoliciesArgs, opts ...InvokeOption) (*GetIsLbListenerPoliciesResult, error)
func GetIsLbListenerPoliciesOutput(ctx *Context, args *GetIsLbListenerPoliciesOutputArgs, opts ...InvokeOption) GetIsLbListenerPoliciesResultOutput
Copy

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

public static class GetIsLbListenerPolicies 
{
    public static Task<GetIsLbListenerPoliciesResult> InvokeAsync(GetIsLbListenerPoliciesArgs args, InvokeOptions? opts = null)
    public static Output<GetIsLbListenerPoliciesResult> Invoke(GetIsLbListenerPoliciesInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetIsLbListenerPoliciesResult> getIsLbListenerPolicies(GetIsLbListenerPoliciesArgs args, InvokeOptions options)
public static Output<GetIsLbListenerPoliciesResult> getIsLbListenerPolicies(GetIsLbListenerPoliciesArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: ibm:index/getIsLbListenerPolicies:getIsLbListenerPolicies
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Lb This property is required. string
The load balancer identifier.
Listener This property is required. string
The listener identifier.
Id string
(String) The unique identifier for this load balancer listener.
Lb This property is required. string
The load balancer identifier.
Listener This property is required. string
The listener identifier.
Id string
(String) The unique identifier for this load balancer listener.
lb This property is required. String
The load balancer identifier.
listener This property is required. String
The listener identifier.
id String
(String) The unique identifier for this load balancer listener.
lb This property is required. string
The load balancer identifier.
listener This property is required. string
The listener identifier.
id string
(String) The unique identifier for this load balancer listener.
lb This property is required. str
The load balancer identifier.
listener This property is required. str
The listener identifier.
id str
(String) The unique identifier for this load balancer listener.
lb This property is required. String
The load balancer identifier.
listener This property is required. String
The listener identifier.
id String
(String) The unique identifier for this load balancer listener.

getIsLbListenerPolicies Result

The following output properties are available:

Id string
(String) The unique identifier for this load balancer listener.
Lb string
Listener string
(List) Nested scheme for listener:
Policies List<GetIsLbListenerPoliciesPolicy>
(List) Collection of policies. Nested scheme for policies:
Id string
(String) The unique identifier for this load balancer listener.
Lb string
Listener string
(List) Nested scheme for listener:
Policies []GetIsLbListenerPoliciesPolicy
(List) Collection of policies. Nested scheme for policies:
id String
(String) The unique identifier for this load balancer listener.
lb String
listener String
(List) Nested scheme for listener:
policies List<GetIsLbListenerPoliciesPolicy>
(List) Collection of policies. Nested scheme for policies:
id string
(String) The unique identifier for this load balancer listener.
lb string
listener string
(List) Nested scheme for listener:
policies GetIsLbListenerPoliciesPolicy[]
(List) Collection of policies. Nested scheme for policies:
id str
(String) The unique identifier for this load balancer listener.
lb str
listener str
(List) Nested scheme for listener:
policies Sequence[GetIsLbListenerPoliciesPolicy]
(List) Collection of policies. Nested scheme for policies:
id String
(String) The unique identifier for this load balancer listener.
lb String
listener String
(List) Nested scheme for listener:
policies List<Property Map>
(List) Collection of policies. Nested scheme for policies:

Supporting Types

GetIsLbListenerPoliciesPolicy

Action This property is required. string
(String) The policy action.The enumerated values for this property are expected to expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the policy on which the unexpected property value was encountered.
CreatedAt This property is required. string
(String) The date and time that this policy was created.
Href This property is required. string
(String) The listener's canonical URL.
Id This property is required. string
(String) The unique identifier for this load balancer listener.
Name This property is required. string
(String) The user-defined name for this load balancer pool.
Priority This property is required. double
(Integer) Priority of the policy. Lower value indicates higher priority.
ProvisioningStatus This property is required. string
(String) The provisioning status of this policy.
Rules This property is required. List<GetIsLbListenerPoliciesPolicyRule>
(List) The rules for this policy. Nested scheme for rules:
Targets This property is required. List<GetIsLbListenerPoliciesPolicyTarget>
(List) - If action is forward, the response is a LoadBalancerPoolReference- If action is redirect, the response is a LoadBalancerListenerPolicyRedirectURL- If action is https_redirect, the response is a LoadBalancerListenerHTTPSRedirect. Nested scheme for target:
Action This property is required. string
(String) The policy action.The enumerated values for this property are expected to expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the policy on which the unexpected property value was encountered.
CreatedAt This property is required. string
(String) The date and time that this policy was created.
Href This property is required. string
(String) The listener's canonical URL.
Id This property is required. string
(String) The unique identifier for this load balancer listener.
Name This property is required. string
(String) The user-defined name for this load balancer pool.
Priority This property is required. float64
(Integer) Priority of the policy. Lower value indicates higher priority.
ProvisioningStatus This property is required. string
(String) The provisioning status of this policy.
Rules This property is required. []GetIsLbListenerPoliciesPolicyRule
(List) The rules for this policy. Nested scheme for rules:
Targets This property is required. []GetIsLbListenerPoliciesPolicyTarget
(List) - If action is forward, the response is a LoadBalancerPoolReference- If action is redirect, the response is a LoadBalancerListenerPolicyRedirectURL- If action is https_redirect, the response is a LoadBalancerListenerHTTPSRedirect. Nested scheme for target:
action This property is required. String
(String) The policy action.The enumerated values for this property are expected to expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the policy on which the unexpected property value was encountered.
createdAt This property is required. String
(String) The date and time that this policy was created.
href This property is required. String
(String) The listener's canonical URL.
id This property is required. String
(String) The unique identifier for this load balancer listener.
name This property is required. String
(String) The user-defined name for this load balancer pool.
priority This property is required. Double
(Integer) Priority of the policy. Lower value indicates higher priority.
provisioningStatus This property is required. String
(String) The provisioning status of this policy.
rules This property is required. List<GetIsLbListenerPoliciesPolicyRule>
(List) The rules for this policy. Nested scheme for rules:
targets This property is required. List<GetIsLbListenerPoliciesPolicyTarget>
(List) - If action is forward, the response is a LoadBalancerPoolReference- If action is redirect, the response is a LoadBalancerListenerPolicyRedirectURL- If action is https_redirect, the response is a LoadBalancerListenerHTTPSRedirect. Nested scheme for target:
action This property is required. string
(String) The policy action.The enumerated values for this property are expected to expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the policy on which the unexpected property value was encountered.
createdAt This property is required. string
(String) The date and time that this policy was created.
href This property is required. string
(String) The listener's canonical URL.
id This property is required. string
(String) The unique identifier for this load balancer listener.
name This property is required. string
(String) The user-defined name for this load balancer pool.
priority This property is required. number
(Integer) Priority of the policy. Lower value indicates higher priority.
provisioningStatus This property is required. string
(String) The provisioning status of this policy.
rules This property is required. GetIsLbListenerPoliciesPolicyRule[]
(List) The rules for this policy. Nested scheme for rules:
targets This property is required. GetIsLbListenerPoliciesPolicyTarget[]
(List) - If action is forward, the response is a LoadBalancerPoolReference- If action is redirect, the response is a LoadBalancerListenerPolicyRedirectURL- If action is https_redirect, the response is a LoadBalancerListenerHTTPSRedirect. Nested scheme for target:
action This property is required. str
(String) The policy action.The enumerated values for this property are expected to expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the policy on which the unexpected property value was encountered.
created_at This property is required. str
(String) The date and time that this policy was created.
href This property is required. str
(String) The listener's canonical URL.
id This property is required. str
(String) The unique identifier for this load balancer listener.
name This property is required. str
(String) The user-defined name for this load balancer pool.
priority This property is required. float
(Integer) Priority of the policy. Lower value indicates higher priority.
provisioning_status This property is required. str
(String) The provisioning status of this policy.
rules This property is required. Sequence[GetIsLbListenerPoliciesPolicyRule]
(List) The rules for this policy. Nested scheme for rules:
targets This property is required. Sequence[GetIsLbListenerPoliciesPolicyTarget]
(List) - If action is forward, the response is a LoadBalancerPoolReference- If action is redirect, the response is a LoadBalancerListenerPolicyRedirectURL- If action is https_redirect, the response is a LoadBalancerListenerHTTPSRedirect. Nested scheme for target:
action This property is required. String
(String) The policy action.The enumerated values for this property are expected to expand in the future. When processing this property, check for and log unknown values. Optionally halt processing and surface the error, or bypass the policy on which the unexpected property value was encountered.
createdAt This property is required. String
(String) The date and time that this policy was created.
href This property is required. String
(String) The listener's canonical URL.
id This property is required. String
(String) The unique identifier for this load balancer listener.
name This property is required. String
(String) The user-defined name for this load balancer pool.
priority This property is required. Number
(Integer) Priority of the policy. Lower value indicates higher priority.
provisioningStatus This property is required. String
(String) The provisioning status of this policy.
rules This property is required. List<Property Map>
(List) The rules for this policy. Nested scheme for rules:
targets This property is required. List<Property Map>
(List) - If action is forward, the response is a LoadBalancerPoolReference- If action is redirect, the response is a LoadBalancerListenerPolicyRedirectURL- If action is https_redirect, the response is a LoadBalancerListenerHTTPSRedirect. Nested scheme for target:

GetIsLbListenerPoliciesPolicyRule

Deleteds This property is required. List<GetIsLbListenerPoliciesPolicyRuleDeleted>
(List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information. Nested scheme for deleted:
Href This property is required. string
(String) The listener's canonical URL.
Id This property is required. string
(String) The unique identifier for this load balancer listener.
Deleteds This property is required. []GetIsLbListenerPoliciesPolicyRuleDeleted
(List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information. Nested scheme for deleted:
Href This property is required. string
(String) The listener's canonical URL.
Id This property is required. string
(String) The unique identifier for this load balancer listener.
deleteds This property is required. List<GetIsLbListenerPoliciesPolicyRuleDeleted>
(List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information. Nested scheme for deleted:
href This property is required. String
(String) The listener's canonical URL.
id This property is required. String
(String) The unique identifier for this load balancer listener.
deleteds This property is required. GetIsLbListenerPoliciesPolicyRuleDeleted[]
(List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information. Nested scheme for deleted:
href This property is required. string
(String) The listener's canonical URL.
id This property is required. string
(String) The unique identifier for this load balancer listener.
deleteds This property is required. Sequence[GetIsLbListenerPoliciesPolicyRuleDeleted]
(List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information. Nested scheme for deleted:
href This property is required. str
(String) The listener's canonical URL.
id This property is required. str
(String) The unique identifier for this load balancer listener.
deleteds This property is required. List<Property Map>
(List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information. Nested scheme for deleted:
href This property is required. String
(String) The listener's canonical URL.
id This property is required. String
(String) The unique identifier for this load balancer listener.

GetIsLbListenerPoliciesPolicyRuleDeleted

MoreInfo This property is required. string
(String) Link to documentation about deleted resources.
MoreInfo This property is required. string
(String) Link to documentation about deleted resources.
moreInfo This property is required. String
(String) Link to documentation about deleted resources.
moreInfo This property is required. string
(String) Link to documentation about deleted resources.
more_info This property is required. str
(String) Link to documentation about deleted resources.
moreInfo This property is required. String
(String) Link to documentation about deleted resources.

GetIsLbListenerPoliciesPolicyTarget

Deleteds This property is required. List<GetIsLbListenerPoliciesPolicyTargetDeleted>
(List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information. Nested scheme for deleted:
Href This property is required. string
(String) The listener's canonical URL.
HttpStatusCode This property is required. double
(Integer) The HTTP status code for this redirect.
Id This property is required. string
(String) The unique identifier for this load balancer listener.
Listeners This property is required. List<GetIsLbListenerPoliciesPolicyTargetListener>
The listener identifier.
Name This property is required. string
(String) The user-defined name for this load balancer pool.
Uri This property is required. string
(String) The redirect relative target URI.
Url This property is required. string
(String) The redirect target URL.
Deleteds This property is required. []GetIsLbListenerPoliciesPolicyTargetDeleted
(List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information. Nested scheme for deleted:
Href This property is required. string
(String) The listener's canonical URL.
HttpStatusCode This property is required. float64
(Integer) The HTTP status code for this redirect.
Id This property is required. string
(String) The unique identifier for this load balancer listener.
Listeners This property is required. []GetIsLbListenerPoliciesPolicyTargetListener
The listener identifier.
Name This property is required. string
(String) The user-defined name for this load balancer pool.
Uri This property is required. string
(String) The redirect relative target URI.
Url This property is required. string
(String) The redirect target URL.
deleteds This property is required. List<GetIsLbListenerPoliciesPolicyTargetDeleted>
(List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information. Nested scheme for deleted:
href This property is required. String
(String) The listener's canonical URL.
httpStatusCode This property is required. Double
(Integer) The HTTP status code for this redirect.
id This property is required. String
(String) The unique identifier for this load balancer listener.
listeners This property is required. List<GetIsLbListenerPoliciesPolicyTargetListener>
The listener identifier.
name This property is required. String
(String) The user-defined name for this load balancer pool.
uri This property is required. String
(String) The redirect relative target URI.
url This property is required. String
(String) The redirect target URL.
deleteds This property is required. GetIsLbListenerPoliciesPolicyTargetDeleted[]
(List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information. Nested scheme for deleted:
href This property is required. string
(String) The listener's canonical URL.
httpStatusCode This property is required. number
(Integer) The HTTP status code for this redirect.
id This property is required. string
(String) The unique identifier for this load balancer listener.
listeners This property is required. GetIsLbListenerPoliciesPolicyTargetListener[]
The listener identifier.
name This property is required. string
(String) The user-defined name for this load balancer pool.
uri This property is required. string
(String) The redirect relative target URI.
url This property is required. string
(String) The redirect target URL.
deleteds This property is required. Sequence[GetIsLbListenerPoliciesPolicyTargetDeleted]
(List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information. Nested scheme for deleted:
href This property is required. str
(String) The listener's canonical URL.
http_status_code This property is required. float
(Integer) The HTTP status code for this redirect.
id This property is required. str
(String) The unique identifier for this load balancer listener.
listeners This property is required. Sequence[GetIsLbListenerPoliciesPolicyTargetListener]
The listener identifier.
name This property is required. str
(String) The user-defined name for this load balancer pool.
uri This property is required. str
(String) The redirect relative target URI.
url This property is required. str
(String) The redirect target URL.
deleteds This property is required. List<Property Map>
(List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information. Nested scheme for deleted:
href This property is required. String
(String) The listener's canonical URL.
httpStatusCode This property is required. Number
(Integer) The HTTP status code for this redirect.
id This property is required. String
(String) The unique identifier for this load balancer listener.
listeners This property is required. List<Property Map>
The listener identifier.
name This property is required. String
(String) The user-defined name for this load balancer pool.
uri This property is required. String
(String) The redirect relative target URI.
url This property is required. String
(String) The redirect target URL.

GetIsLbListenerPoliciesPolicyTargetDeleted

MoreInfo This property is required. string
(String) Link to documentation about deleted resources.
MoreInfo This property is required. string
(String) Link to documentation about deleted resources.
moreInfo This property is required. String
(String) Link to documentation about deleted resources.
moreInfo This property is required. string
(String) Link to documentation about deleted resources.
more_info This property is required. str
(String) Link to documentation about deleted resources.
moreInfo This property is required. String
(String) Link to documentation about deleted resources.

GetIsLbListenerPoliciesPolicyTargetListener

Deleteds This property is required. List<GetIsLbListenerPoliciesPolicyTargetListenerDeleted>
(List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information. Nested scheme for deleted:
Href This property is required. string
(String) The listener's canonical URL.
Id This property is required. string
(String) The unique identifier for this load balancer listener.
Deleteds This property is required. []GetIsLbListenerPoliciesPolicyTargetListenerDeleted
(List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information. Nested scheme for deleted:
Href This property is required. string
(String) The listener's canonical URL.
Id This property is required. string
(String) The unique identifier for this load balancer listener.
deleteds This property is required. List<GetIsLbListenerPoliciesPolicyTargetListenerDeleted>
(List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information. Nested scheme for deleted:
href This property is required. String
(String) The listener's canonical URL.
id This property is required. String
(String) The unique identifier for this load balancer listener.
deleteds This property is required. GetIsLbListenerPoliciesPolicyTargetListenerDeleted[]
(List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information. Nested scheme for deleted:
href This property is required. string
(String) The listener's canonical URL.
id This property is required. string
(String) The unique identifier for this load balancer listener.
deleteds This property is required. Sequence[GetIsLbListenerPoliciesPolicyTargetListenerDeleted]
(List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information. Nested scheme for deleted:
href This property is required. str
(String) The listener's canonical URL.
id This property is required. str
(String) The unique identifier for this load balancer listener.
deleteds This property is required. List<Property Map>
(List) If present, this property indicates the referenced resource has been deleted and providessome supplementary information. Nested scheme for deleted:
href This property is required. String
(String) The listener's canonical URL.
id This property is required. String
(String) The unique identifier for this load balancer listener.

GetIsLbListenerPoliciesPolicyTargetListenerDeleted

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