ibm 1.78.1 published on Friday, May 9, 2025 by ibm-cloud
ibm.getIsLbListenerPolicyRules
Explore with Pulumi AI
Provides a read-only data source for LoadBalancerListenerPolicyRuleCollection. For more information, about load balancer listener policy and rules, see layer 7 load balancing policies and rules.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const example = ibm.getIsLbListenerPolicyRules({
listener: ibm_is_lb_listener.example.listener_id,
lb: ibm_is_lb.example.id,
policy: ibm_is_lb_listener_policy.example.policy_id,
});
import pulumi
import pulumi_ibm as ibm
example = ibm.get_is_lb_listener_policy_rules(listener=ibm_is_lb_listener["example"]["listener_id"],
lb=ibm_is_lb["example"]["id"],
policy=ibm_is_lb_listener_policy["example"]["policy_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.GetIsLbListenerPolicyRules(ctx, &ibm.GetIsLbListenerPolicyRulesArgs{
Listener: ibm_is_lb_listener.Example.Listener_id,
Lb: ibm_is_lb.Example.Id,
Policy: ibm_is_lb_listener_policy.Example.Policy_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.GetIsLbListenerPolicyRules.Invoke(new()
{
Listener = ibm_is_lb_listener.Example.Listener_id,
Lb = ibm_is_lb.Example.Id,
Policy = ibm_is_lb_listener_policy.Example.Policy_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.GetIsLbListenerPolicyRulesArgs;
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.getIsLbListenerPolicyRules(GetIsLbListenerPolicyRulesArgs.builder()
.listener(ibm_is_lb_listener.example().listener_id())
.lb(ibm_is_lb.example().id())
.policy(ibm_is_lb_listener_policy.example().policy_id())
.build());
}
}
variables:
example:
fn::invoke:
function: ibm:getIsLbListenerPolicyRules
arguments:
listener: ${ibm_is_lb_listener.example.listener_id}
lb: ${ibm_is_lb.example.id}
policy: ${ibm_is_lb_listener_policy.example.policy_id}
Using getIsLbListenerPolicyRules
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 getIsLbListenerPolicyRules(args: GetIsLbListenerPolicyRulesArgs, opts?: InvokeOptions): Promise<GetIsLbListenerPolicyRulesResult>
function getIsLbListenerPolicyRulesOutput(args: GetIsLbListenerPolicyRulesOutputArgs, opts?: InvokeOptions): Output<GetIsLbListenerPolicyRulesResult>def get_is_lb_listener_policy_rules(id: Optional[str] = None,
lb: Optional[str] = None,
listener: Optional[str] = None,
policy: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetIsLbListenerPolicyRulesResult
def get_is_lb_listener_policy_rules_output(id: Optional[pulumi.Input[str]] = None,
lb: Optional[pulumi.Input[str]] = None,
listener: Optional[pulumi.Input[str]] = None,
policy: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetIsLbListenerPolicyRulesResult]func GetIsLbListenerPolicyRules(ctx *Context, args *GetIsLbListenerPolicyRulesArgs, opts ...InvokeOption) (*GetIsLbListenerPolicyRulesResult, error)
func GetIsLbListenerPolicyRulesOutput(ctx *Context, args *GetIsLbListenerPolicyRulesOutputArgs, opts ...InvokeOption) GetIsLbListenerPolicyRulesResultOutput> Note: This function is named GetIsLbListenerPolicyRules in the Go SDK.
public static class GetIsLbListenerPolicyRules
{
public static Task<GetIsLbListenerPolicyRulesResult> InvokeAsync(GetIsLbListenerPolicyRulesArgs args, InvokeOptions? opts = null)
public static Output<GetIsLbListenerPolicyRulesResult> Invoke(GetIsLbListenerPolicyRulesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetIsLbListenerPolicyRulesResult> getIsLbListenerPolicyRules(GetIsLbListenerPolicyRulesArgs args, InvokeOptions options)
public static Output<GetIsLbListenerPolicyRulesResult> getIsLbListenerPolicyRules(GetIsLbListenerPolicyRulesArgs args, InvokeOptions options)
fn::invoke:
function: ibm:index/getIsLbListenerPolicyRules:getIsLbListenerPolicyRules
arguments:
# arguments dictionaryThe following arguments are supported:
getIsLbListenerPolicyRules Result
The following output properties are available:
Supporting Types
GetIsLbListenerPolicyRulesRule
- Condition string
- (String) The condition of the rule.
- Created
At string - (String) The date and time that this rule was created.
- Field string
- (Optional, String) The field. This is applicable to
header,query, andbodyrule types.If the rule type isheader, this property is required.If the rule type isquery, this is optional. If specified and the rule condition is notmatches_regex, the value must be percent-encoded.If the rule type isbody, this is optional. - Href string
- (String) The rule's canonical URL.
- Id string
- (String) The rule's unique identifier.
- Provisioning
Status string - (String) The provisioning status of this rule.
- Type string
- (String) The type of the rule.Body rules are applied to form-encoded request bodies using the
UTF-8character set. - Value string
- (String) Value to be matched for rule condition.If the rule type is
queryand the rule condition is notmatches_regex, the value must be percent-encoded.
- Condition string
- (String) The condition of the rule.
- Created
At string - (String) The date and time that this rule was created.
- Field string
- (Optional, String) The field. This is applicable to
header,query, andbodyrule types.If the rule type isheader, this property is required.If the rule type isquery, this is optional. If specified and the rule condition is notmatches_regex, the value must be percent-encoded.If the rule type isbody, this is optional. - Href string
- (String) The rule's canonical URL.
- Id string
- (String) The rule's unique identifier.
- Provisioning
Status string - (String) The provisioning status of this rule.
- Type string
- (String) The type of the rule.Body rules are applied to form-encoded request bodies using the
UTF-8character set. - Value string
- (String) Value to be matched for rule condition.If the rule type is
queryand the rule condition is notmatches_regex, the value must be percent-encoded.
- condition String
- (String) The condition of the rule.
- created
At String - (String) The date and time that this rule was created.
- field String
- (Optional, String) The field. This is applicable to
header,query, andbodyrule types.If the rule type isheader, this property is required.If the rule type isquery, this is optional. If specified and the rule condition is notmatches_regex, the value must be percent-encoded.If the rule type isbody, this is optional. - href String
- (String) The rule's canonical URL.
- id String
- (String) The rule's unique identifier.
- provisioning
Status String - (String) The provisioning status of this rule.
- type String
- (String) The type of the rule.Body rules are applied to form-encoded request bodies using the
UTF-8character set. - value String
- (String) Value to be matched for rule condition.If the rule type is
queryand the rule condition is notmatches_regex, the value must be percent-encoded.
- condition string
- (String) The condition of the rule.
- created
At string - (String) The date and time that this rule was created.
- field string
- (Optional, String) The field. This is applicable to
header,query, andbodyrule types.If the rule type isheader, this property is required.If the rule type isquery, this is optional. If specified and the rule condition is notmatches_regex, the value must be percent-encoded.If the rule type isbody, this is optional. - href string
- (String) The rule's canonical URL.
- id string
- (String) The rule's unique identifier.
- provisioning
Status string - (String) The provisioning status of this rule.
- type string
- (String) The type of the rule.Body rules are applied to form-encoded request bodies using the
UTF-8character set. - value string
- (String) Value to be matched for rule condition.If the rule type is
queryand the rule condition is notmatches_regex, the value must be percent-encoded.
- condition str
- (String) The condition of the rule.
- created_
at str - (String) The date and time that this rule was created.
- field str
- (Optional, String) The field. This is applicable to
header,query, andbodyrule types.If the rule type isheader, this property is required.If the rule type isquery, this is optional. If specified and the rule condition is notmatches_regex, the value must be percent-encoded.If the rule type isbody, this is optional. - href str
- (String) The rule's canonical URL.
- id str
- (String) The rule's unique identifier.
- provisioning_
status str - (String) The provisioning status of this rule.
- type str
- (String) The type of the rule.Body rules are applied to form-encoded request bodies using the
UTF-8character set. - value str
- (String) Value to be matched for rule condition.If the rule type is
queryand the rule condition is notmatches_regex, the value must be percent-encoded.
- condition String
- (String) The condition of the rule.
- created
At String - (String) The date and time that this rule was created.
- field String
- (Optional, String) The field. This is applicable to
header,query, andbodyrule types.If the rule type isheader, this property is required.If the rule type isquery, this is optional. If specified and the rule condition is notmatches_regex, the value must be percent-encoded.If the rule type isbody, this is optional. - href String
- (String) The rule's canonical URL.
- id String
- (String) The rule's unique identifier.
- provisioning
Status String - (String) The provisioning status of this rule.
- type String
- (String) The type of the rule.Body rules are applied to form-encoded request bodies using the
UTF-8character set. - value String
- (String) Value to be matched for rule condition.If the rule type is
queryand the rule condition is notmatches_regex, the value must be percent-encoded.
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibmTerraform Provider.