1. Packages
  2. Outscale Provider
  3. API Docs
  4. getLoadBalancerListenerRule
outscale 1.1.0 published on Thursday, Apr 3, 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"],
    }],
});
Copy
import pulumi
import pulumi_outscale as outscale

rule01 = outscale.get_load_balancer_listener_rule(filters=[{
    "name": "listener_rule_names",
    "values": ["terraform-listener-rule02"],
}])
Copy
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
	})
}
Copy
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",
                },
            },
        },
    });

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

    }
}
Copy
variables:
  rule01:
    fn::invoke:
      function: outscale:getLoadBalancerListenerRule
      arguments:
        filters:
          - name: listener_rule_names
            values:
              - terraform-listener-rule02
Copy

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>
Copy
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]
Copy
func LookupLoadBalancerListenerRule(ctx *Context, args *LookupLoadBalancerListenerRuleArgs, opts ...InvokeOption) (*LookupLoadBalancerListenerRuleResult, error)
func LookupLoadBalancerListenerRuleOutput(ctx *Context, args *LookupLoadBalancerListenerRuleOutputArgs, opts ...InvokeOption) LookupLoadBalancerListenerRuleResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetLoadBalancerListenerRuleResult> getLoadBalancerListenerRule(GetLoadBalancerListenerRuleArgs args, InvokeOptions options)
public static Output<GetLoadBalancerListenerRuleResult> getLoadBalancerListenerRule(GetLoadBalancerListenerRuleArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: outscale:index/getLoadBalancerListenerRule:getLoadBalancerListenerRule
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Filters List<GetLoadBalancerListenerRuleFilter>
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
ListenerRuleName string
A human-readable name for the listener rule.
Filters []GetLoadBalancerListenerRuleFilter
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
ListenerRuleName string
A human-readable name for the listener rule.
filters List<GetLoadBalancerListenerRuleFilter>
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
listenerRuleName String
A human-readable name for the listener rule.
filters GetLoadBalancerListenerRuleFilter[]
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
listenerRuleName string
A human-readable name for the listener rule.
filters Sequence[GetLoadBalancerListenerRuleFilter]
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_name str
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
listenerRuleName String
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).
HostNamePattern string
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.
ListenerRuleId double
The ID of the listener rule.
ListenerRuleName string
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 _-.$/~&quot;'@:+?.
Priority double
The priority level of the listener rule, between 1 and 19999 both 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<GetLoadBalancerListenerRuleFilter>
Action string
The type of action for the rule (always forward).
HostNamePattern string
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.
ListenerRuleId float64
The ID of the listener rule.
ListenerRuleName string
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 _-.$/~&quot;'@:+?.
Priority float64
The priority level of the listener rule, between 1 and 19999 both 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 []GetLoadBalancerListenerRuleFilter
action String
The type of action for the rule (always forward).
hostNamePattern String
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.
listenerRuleId Double
The ID of the listener rule.
listenerRuleName String
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 _-.$/~&quot;'@:+?.
priority Double
The priority level of the listener rule, between 1 and 19999 both 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<GetLoadBalancerListenerRuleFilter>
action string
The type of action for the rule (always forward).
hostNamePattern string
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.
listenerRuleId number
The ID of the listener rule.
listenerRuleName string
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 _-.$/~&quot;'@:+?.
priority number
The priority level of the listener rule, between 1 and 19999 both 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 GetLoadBalancerListenerRuleFilter[]
action str
The type of action for the rule (always forward).
host_name_pattern str
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_id float
The ID of the listener rule.
listener_rule_name str
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 _-.$/~&quot;'@:+?.
priority float
The priority level of the listener rule, between 1 and 19999 both 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[GetLoadBalancerListenerRuleFilter]
action String
The type of action for the rule (always forward).
hostNamePattern String
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.
listenerRuleId Number
The ID of the listener rule.
listenerRuleName String
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 _-.$/~&quot;'@:+?.
priority Number
The priority level of the listener rule, between 1 and 19999 both 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

Name This property is required. string
Values This property is required. List<string>
Name This property is required. string
Values This property is required. []string
name This property is required. String
values This property is required. List<String>
name This property is required. string
values This property is required. string[]
name This property is required. str
values This property is required. Sequence[str]
name This property is required. String
values This property is required. List<String>

Package Details

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