1. Packages
  2. Outscale Provider
  3. API Docs
  4. getLoadBalancerListenerRules
outscale 1.1.0 published on Thursday, Apr 3, 2025 by outscale

outscale.getLoadBalancerListenerRules

Explore with Pulumi AI

Provides information about load balancer listener rules.

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

rules01 = outscale.get_load_balancer_listener_rules(filters=[{
    "name": "listener_rule_names",
    "values": [
        "terraform-listener-rule02",
        "terraform-listener-rule01",
    ],
}])
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.GetLoadBalancerListenerRules(ctx, &outscale.GetLoadBalancerListenerRulesArgs{
			Filters: []outscale.GetLoadBalancerListenerRulesFilter{
				{
					Name: "listener_rule_names",
					Values: []string{
						"terraform-listener-rule02",
						"terraform-listener-rule01",
					},
				},
			},
		}, 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 rules01 = Outscale.GetLoadBalancerListenerRules.Invoke(new()
    {
        Filters = new[]
        {
            new Outscale.Inputs.GetLoadBalancerListenerRulesFilterInputArgs
            {
                Name = "listener_rule_names",
                Values = new[]
                {
                    "terraform-listener-rule02",
                    "terraform-listener-rule01",
                },
            },
        },
    });

});
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.GetLoadBalancerListenerRulesArgs;
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 rules01 = OutscaleFunctions.getLoadBalancerListenerRules(GetLoadBalancerListenerRulesArgs.builder()
            .filters(GetLoadBalancerListenerRulesFilterArgs.builder()
                .name("listener_rule_names")
                .values(                
                    "terraform-listener-rule02",
                    "terraform-listener-rule01")
                .build())
            .build());

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

Using getLoadBalancerListenerRules

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 getLoadBalancerListenerRules(args: GetLoadBalancerListenerRulesArgs, opts?: InvokeOptions): Promise<GetLoadBalancerListenerRulesResult>
function getLoadBalancerListenerRulesOutput(args: GetLoadBalancerListenerRulesOutputArgs, opts?: InvokeOptions): Output<GetLoadBalancerListenerRulesResult>
Copy
def get_load_balancer_listener_rules(filters: Optional[Sequence[GetLoadBalancerListenerRulesFilter]] = None,
                                     id: Optional[str] = None,
                                     opts: Optional[InvokeOptions] = None) -> GetLoadBalancerListenerRulesResult
def get_load_balancer_listener_rules_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetLoadBalancerListenerRulesFilterArgs]]]] = None,
                                     id: Optional[pulumi.Input[str]] = None,
                                     opts: Optional[InvokeOptions] = None) -> Output[GetLoadBalancerListenerRulesResult]
Copy
func GetLoadBalancerListenerRules(ctx *Context, args *GetLoadBalancerListenerRulesArgs, opts ...InvokeOption) (*GetLoadBalancerListenerRulesResult, error)
func GetLoadBalancerListenerRulesOutput(ctx *Context, args *GetLoadBalancerListenerRulesOutputArgs, opts ...InvokeOption) GetLoadBalancerListenerRulesResultOutput
Copy

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

public static class GetLoadBalancerListenerRules 
{
    public static Task<GetLoadBalancerListenerRulesResult> InvokeAsync(GetLoadBalancerListenerRulesArgs args, InvokeOptions? opts = null)
    public static Output<GetLoadBalancerListenerRulesResult> Invoke(GetLoadBalancerListenerRulesInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetLoadBalancerListenerRulesResult> getLoadBalancerListenerRules(GetLoadBalancerListenerRulesArgs args, InvokeOptions options)
public static Output<GetLoadBalancerListenerRulesResult> getLoadBalancerListenerRules(GetLoadBalancerListenerRulesArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: outscale:index/getLoadBalancerListenerRules:getLoadBalancerListenerRules
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Filters List<GetLoadBalancerListenerRulesFilter>
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
Filters []GetLoadBalancerListenerRulesFilter
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
filters List<GetLoadBalancerListenerRulesFilter>
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
filters GetLoadBalancerListenerRulesFilter[]
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
filters Sequence[GetLoadBalancerListenerRulesFilter]
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
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

getLoadBalancerListenerRules Result

The following output properties are available:

id String
listenerRules List<Property Map>
The list of the rules to describe.
requestId String
filters List<Property Map>

Supporting Types

GetLoadBalancerListenerRulesFilter

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>

GetLoadBalancerListenerRulesListenerRule

Action This property is required. string
The type of action for the rule (always forward).
HostNamePattern This property is required. 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 -.?.
ListenerId This property is required. double
The ID of the listener.
ListenerRuleId This property is required. double
The ID of the listener rule.
ListenerRuleName This property is required. string
A human-readable name for the listener rule.
PathPattern This property is required. 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 This property is required. 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.
VmIds This property is required. List<string>
The IDs of the backend VMs.
Action This property is required. string
The type of action for the rule (always forward).
HostNamePattern This property is required. 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 -.?.
ListenerId This property is required. float64
The ID of the listener.
ListenerRuleId This property is required. float64
The ID of the listener rule.
ListenerRuleName This property is required. string
A human-readable name for the listener rule.
PathPattern This property is required. 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 This property is required. 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.
VmIds This property is required. []string
The IDs of the backend VMs.
action This property is required. String
The type of action for the rule (always forward).
hostNamePattern This property is required. 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 -.?.
listenerId This property is required. Double
The ID of the listener.
listenerRuleId This property is required. Double
The ID of the listener rule.
listenerRuleName This property is required. String
A human-readable name for the listener rule.
pathPattern This property is required. 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 This property is required. 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.
vmIds This property is required. List<String>
The IDs of the backend VMs.
action This property is required. string
The type of action for the rule (always forward).
hostNamePattern This property is required. 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 -.?.
listenerId This property is required. number
The ID of the listener.
listenerRuleId This property is required. number
The ID of the listener rule.
listenerRuleName This property is required. string
A human-readable name for the listener rule.
pathPattern This property is required. 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 This property is required. 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.
vmIds This property is required. string[]
The IDs of the backend VMs.
action This property is required. str
The type of action for the rule (always forward).
host_name_pattern This property is required. 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 -.?.
listener_id This property is required. float
The ID of the listener.
listener_rule_id This property is required. float
The ID of the listener rule.
listener_rule_name This property is required. str
A human-readable name for the listener rule.
path_pattern This property is required. 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 This property is required. 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.
vm_ids This property is required. Sequence[str]
The IDs of the backend VMs.
action This property is required. String
The type of action for the rule (always forward).
hostNamePattern This property is required. 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 -.?.
listenerId This property is required. Number
The ID of the listener.
listenerRuleId This property is required. Number
The ID of the listener rule.
listenerRuleName This property is required. String
A human-readable name for the listener rule.
pathPattern This property is required. 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 This property is required. 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.
vmIds This property is required. List<String>
The IDs of the backend VMs.

Package Details

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