outscale 1.0.1 published on Thursday, Mar 13, 2025 by outscale
outscale.getLoadBalancerListenerRule
Explore with Pulumi AI
Provides information about a load balancer listener rule.
For more information on this resource, see the User Guide.
For more information on this resource actions, see the API documentation.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as outscale from "@pulumi/outscale";
const rule01 = outscale.getLoadBalancerListenerRule({
    filters: [{
        name: "listener_rule_names",
        values: ["terraform-listener-rule02"],
    }],
});
import pulumi
import pulumi_outscale as outscale
rule01 = outscale.get_load_balancer_listener_rule(filters=[{
    "name": "listener_rule_names",
    "values": ["terraform-listener-rule02"],
}])
package main
import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/outscale/outscale"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := outscale.LookupLoadBalancerListenerRule(ctx, &outscale.LookupLoadBalancerListenerRuleArgs{
			Filters: []outscale.GetLoadBalancerListenerRuleFilter{
				{
					Name: "listener_rule_names",
					Values: []string{
						"terraform-listener-rule02",
					},
				},
			},
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Outscale = Pulumi.Outscale;
return await Deployment.RunAsync(() => 
{
    var rule01 = Outscale.GetLoadBalancerListenerRule.Invoke(new()
    {
        Filters = new[]
        {
            new Outscale.Inputs.GetLoadBalancerListenerRuleFilterInputArgs
            {
                Name = "listener_rule_names",
                Values = new[]
                {
                    "terraform-listener-rule02",
                },
            },
        },
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.outscale.OutscaleFunctions;
import com.pulumi.outscale.inputs.GetLoadBalancerListenerRuleArgs;
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 rule01 = OutscaleFunctions.getLoadBalancerListenerRule(GetLoadBalancerListenerRuleArgs.builder()
            .filters(GetLoadBalancerListenerRuleFilterArgs.builder()
                .name("listener_rule_names")
                .values("terraform-listener-rule02")
                .build())
            .build());
    }
}
variables:
  rule01:
    fn::invoke:
      function: outscale:getLoadBalancerListenerRule
      arguments:
        filters:
          - name: listener_rule_names
            values:
              - terraform-listener-rule02
Using getLoadBalancerListenerRule
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 getLoadBalancerListenerRule(args: GetLoadBalancerListenerRuleArgs, opts?: InvokeOptions): Promise<GetLoadBalancerListenerRuleResult>
function getLoadBalancerListenerRuleOutput(args: GetLoadBalancerListenerRuleOutputArgs, opts?: InvokeOptions): Output<GetLoadBalancerListenerRuleResult>def get_load_balancer_listener_rule(filters: Optional[Sequence[GetLoadBalancerListenerRuleFilter]] = None,
                                    id: Optional[str] = None,
                                    listener_rule_name: Optional[str] = None,
                                    opts: Optional[InvokeOptions] = None) -> GetLoadBalancerListenerRuleResult
def get_load_balancer_listener_rule_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetLoadBalancerListenerRuleFilterArgs]]]] = None,
                                    id: Optional[pulumi.Input[str]] = None,
                                    listener_rule_name: Optional[pulumi.Input[str]] = None,
                                    opts: Optional[InvokeOptions] = None) -> Output[GetLoadBalancerListenerRuleResult]func LookupLoadBalancerListenerRule(ctx *Context, args *LookupLoadBalancerListenerRuleArgs, opts ...InvokeOption) (*LookupLoadBalancerListenerRuleResult, error)
func LookupLoadBalancerListenerRuleOutput(ctx *Context, args *LookupLoadBalancerListenerRuleOutputArgs, opts ...InvokeOption) LookupLoadBalancerListenerRuleResultOutput> Note: This function is named LookupLoadBalancerListenerRule in the Go SDK.
public static class GetLoadBalancerListenerRule 
{
    public static Task<GetLoadBalancerListenerRuleResult> InvokeAsync(GetLoadBalancerListenerRuleArgs args, InvokeOptions? opts = null)
    public static Output<GetLoadBalancerListenerRuleResult> Invoke(GetLoadBalancerListenerRuleInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetLoadBalancerListenerRuleResult> getLoadBalancerListenerRule(GetLoadBalancerListenerRuleArgs args, InvokeOptions options)
public static Output<GetLoadBalancerListenerRuleResult> getLoadBalancerListenerRule(GetLoadBalancerListenerRuleArgs args, InvokeOptions options)
fn::invoke:
  function: outscale:index/getLoadBalancerListenerRule:getLoadBalancerListenerRule
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Filters
List<GetLoad Balancer Listener Rule Filter> 
- A combination of a filter name and one or more filter values. You can specify this argument for as many filter names as you need. The filter name can be any of the following:
- Id string
- ListenerRule stringName 
- A human-readable name for the listener rule.
- Filters
[]GetLoad Balancer Listener Rule Filter 
- A combination of a filter name and one or more filter values. You can specify this argument for as many filter names as you need. The filter name can be any of the following:
- Id string
- ListenerRule stringName 
- A human-readable name for the listener rule.
- filters
List<GetLoad Balancer Listener Rule Filter> 
- A combination of a filter name and one or more filter values. You can specify this argument for as many filter names as you need. The filter name can be any of the following:
- id String
- listenerRule StringName 
- A human-readable name for the listener rule.
- filters
GetLoad Balancer Listener Rule Filter[] 
- A combination of a filter name and one or more filter values. You can specify this argument for as many filter names as you need. The filter name can be any of the following:
- id string
- listenerRule stringName 
- A human-readable name for the listener rule.
- filters
Sequence[GetLoad Balancer Listener Rule Filter] 
- A combination of a filter name and one or more filter values. You can specify this argument for as many filter names as you need. The filter name can be any of the following:
- id str
- listener_rule_ strname 
- A human-readable name for the listener rule.
- filters List<Property Map>
- A combination of a filter name and one or more filter values. You can specify this argument for as many filter names as you need. The filter name can be any of the following:
- id String
- listenerRule StringName 
- A human-readable name for the listener rule.
getLoadBalancerListenerRule Result
The following output properties are available:
- Action string
- The type of action for the rule (always forward).
- HostName stringPattern 
- A host-name pattern for the rule, with a maximum length of 128 characters. This host-name pattern supports maximum three wildcards, and must not contain any special characters except -.?.
- Id string
- ListenerId double
- The ID of the listener.
- ListenerRule doubleId 
- The ID of the listener rule.
- ListenerRule stringName 
- A human-readable name for the listener rule.
- PathPattern string
- A path pattern for the rule, with a maximum length of 128 characters. This path pattern supports maximum three wildcards, and must not contain any special characters except _-.$/~"'@:+?.
- Priority double
- The priority level of the listener rule, between 1and19999both included. Each rule must have a unique priority level. Otherwise, an error is returned.
- RequestId string
- VmIds List<string>
- The IDs of the backend VMs.
- Filters
List<GetLoad Balancer Listener Rule Filter> 
- Action string
- The type of action for the rule (always forward).
- HostName stringPattern 
- A host-name pattern for the rule, with a maximum length of 128 characters. This host-name pattern supports maximum three wildcards, and must not contain any special characters except -.?.
- Id string
- ListenerId float64
- The ID of the listener.
- ListenerRule float64Id 
- The ID of the listener rule.
- ListenerRule stringName 
- A human-readable name for the listener rule.
- PathPattern string
- A path pattern for the rule, with a maximum length of 128 characters. This path pattern supports maximum three wildcards, and must not contain any special characters except _-.$/~"'@:+?.
- Priority float64
- The priority level of the listener rule, between 1and19999both included. Each rule must have a unique priority level. Otherwise, an error is returned.
- RequestId string
- VmIds []string
- The IDs of the backend VMs.
- Filters
[]GetLoad Balancer Listener Rule Filter 
- action String
- The type of action for the rule (always forward).
- hostName StringPattern 
- A host-name pattern for the rule, with a maximum length of 128 characters. This host-name pattern supports maximum three wildcards, and must not contain any special characters except -.?.
- id String
- listenerId Double
- The ID of the listener.
- listenerRule DoubleId 
- The ID of the listener rule.
- listenerRule StringName 
- A human-readable name for the listener rule.
- pathPattern String
- A path pattern for the rule, with a maximum length of 128 characters. This path pattern supports maximum three wildcards, and must not contain any special characters except _-.$/~"'@:+?.
- priority Double
- The priority level of the listener rule, between 1and19999both included. Each rule must have a unique priority level. Otherwise, an error is returned.
- requestId String
- vmIds List<String>
- The IDs of the backend VMs.
- filters
List<GetLoad Balancer Listener Rule Filter> 
- action string
- The type of action for the rule (always forward).
- hostName stringPattern 
- A host-name pattern for the rule, with a maximum length of 128 characters. This host-name pattern supports maximum three wildcards, and must not contain any special characters except -.?.
- id string
- listenerId number
- The ID of the listener.
- listenerRule numberId 
- The ID of the listener rule.
- listenerRule stringName 
- A human-readable name for the listener rule.
- pathPattern string
- A path pattern for the rule, with a maximum length of 128 characters. This path pattern supports maximum three wildcards, and must not contain any special characters except _-.$/~"'@:+?.
- priority number
- The priority level of the listener rule, between 1and19999both included. Each rule must have a unique priority level. Otherwise, an error is returned.
- requestId string
- vmIds string[]
- The IDs of the backend VMs.
- filters
GetLoad Balancer Listener Rule Filter[] 
- action str
- The type of action for the rule (always forward).
- host_name_ strpattern 
- A host-name pattern for the rule, with a maximum length of 128 characters. This host-name pattern supports maximum three wildcards, and must not contain any special characters except -.?.
- id str
- listener_id float
- The ID of the listener.
- listener_rule_ floatid 
- The ID of the listener rule.
- listener_rule_ strname 
- A human-readable name for the listener rule.
- path_pattern str
- A path pattern for the rule, with a maximum length of 128 characters. This path pattern supports maximum three wildcards, and must not contain any special characters except _-.$/~"'@:+?.
- priority float
- The priority level of the listener rule, between 1and19999both included. Each rule must have a unique priority level. Otherwise, an error is returned.
- request_id str
- vm_ids Sequence[str]
- The IDs of the backend VMs.
- filters
Sequence[GetLoad Balancer Listener Rule Filter] 
- action String
- The type of action for the rule (always forward).
- hostName StringPattern 
- A host-name pattern for the rule, with a maximum length of 128 characters. This host-name pattern supports maximum three wildcards, and must not contain any special characters except -.?.
- id String
- listenerId Number
- The ID of the listener.
- listenerRule NumberId 
- The ID of the listener rule.
- listenerRule StringName 
- A human-readable name for the listener rule.
- pathPattern String
- A path pattern for the rule, with a maximum length of 128 characters. This path pattern supports maximum three wildcards, and must not contain any special characters except _-.$/~"'@:+?.
- priority Number
- The priority level of the listener rule, between 1and19999both included. Each rule must have a unique priority level. Otherwise, an error is returned.
- requestId String
- vmIds List<String>
- The IDs of the backend VMs.
- filters List<Property Map>
Supporting Types
GetLoadBalancerListenerRuleFilter     
Package Details
- Repository
- outscale outscale/terraform-provider-outscale
- License
- Notes
- This Pulumi package is based on the outscaleTerraform Provider.