Oracle Cloud Infrastructure

Pulumi Official
Package maintained by Pulumi
v0.1.1 published on Tuesday, May 3, 2022 by Pulumi

getLoadBalancerRoutingPolicies

This data source provides the list of Load Balancer Routing Policies in Oracle Cloud Infrastructure Load Balancer service.

Lists all routing policies associated with the specified load balancer.

Example Usage

using Pulumi;
using Oci = Pulumi.Oci;

class MyStack : Stack
{
    public MyStack()
    {
        var testLoadBalancerRoutingPolicies = Output.Create(Oci.LoadBalancer.GetLoadBalancerRoutingPolicies.InvokeAsync(new Oci.LoadBalancer.GetLoadBalancerRoutingPoliciesArgs
        {
            LoadBalancerId = oci_load_balancer_load_balancer.Test_load_balancer.Id,
        }));
    }

}
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/go/oci/LoadBalancer"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := LoadBalancer.GetLoadBalancerRoutingPolicies(ctx, &loadbalancer.GetLoadBalancerRoutingPoliciesArgs{
			LoadBalancerId: oci_load_balancer_load_balancer.Test_load_balancer.Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_oci as oci

test_load_balancer_routing_policies = oci.LoadBalancer.get_load_balancer_routing_policies(load_balancer_id=oci_load_balancer_load_balancer["test_load_balancer"]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testLoadBalancerRoutingPolicies = oci.LoadBalancer.getLoadBalancerRoutingPolicies({
    loadBalancerId: oci_load_balancer_load_balancer.test_load_balancer.id,
});

Coming soon!

Using getLoadBalancerRoutingPolicies

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 getLoadBalancerRoutingPolicies(args: GetLoadBalancerRoutingPoliciesArgs, opts?: InvokeOptions): Promise<GetLoadBalancerRoutingPoliciesResult>
function getLoadBalancerRoutingPoliciesOutput(args: GetLoadBalancerRoutingPoliciesOutputArgs, opts?: InvokeOptions): Output<GetLoadBalancerRoutingPoliciesResult>
def get_load_balancer_routing_policies(filters: Optional[Sequence[_loadbalancer.GetLoadBalancerRoutingPoliciesFilter]] = None,
                                       load_balancer_id: Optional[str] = None,
                                       opts: Optional[InvokeOptions] = None) -> GetLoadBalancerRoutingPoliciesResult
def get_load_balancer_routing_policies_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[_loadbalancer.GetLoadBalancerRoutingPoliciesFilterArgs]]]] = None,
                                       load_balancer_id: Optional[pulumi.Input[str]] = None,
                                       opts: Optional[InvokeOptions] = None) -> Output[GetLoadBalancerRoutingPoliciesResult]
func GetLoadBalancerRoutingPolicies(ctx *Context, args *GetLoadBalancerRoutingPoliciesArgs, opts ...InvokeOption) (*GetLoadBalancerRoutingPoliciesResult, error)
func GetLoadBalancerRoutingPoliciesOutput(ctx *Context, args *GetLoadBalancerRoutingPoliciesOutputArgs, opts ...InvokeOption) GetLoadBalancerRoutingPoliciesResultOutput

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

public static class GetLoadBalancerRoutingPolicies 
{
    public static Task<GetLoadBalancerRoutingPoliciesResult> InvokeAsync(GetLoadBalancerRoutingPoliciesArgs args, InvokeOptions? opts = null)
    public static Output<GetLoadBalancerRoutingPoliciesResult> Invoke(GetLoadBalancerRoutingPoliciesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetLoadBalancerRoutingPoliciesResult> getLoadBalancerRoutingPolicies(GetLoadBalancerRoutingPoliciesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: oci:LoadBalancer/getLoadBalancerRoutingPolicies:getLoadBalancerRoutingPolicies
  Arguments:
    # Arguments dictionary

The following arguments are supported:

LoadBalancerId string

The OCID of the load balancer associated with the routing policies.

Filters List<GetLoadBalancerRoutingPoliciesFilter>
LoadBalancerId string

The OCID of the load balancer associated with the routing policies.

Filters []GetLoadBalancerRoutingPoliciesFilter
loadBalancerId String

The OCID of the load balancer associated with the routing policies.

filters List<GetRoutingPoliciesFilter>
loadBalancerId string

The OCID of the load balancer associated with the routing policies.

filters GetLoadBalancerRoutingPoliciesFilter[]
load_balancer_id str

The OCID of the load balancer associated with the routing policies.

filters GetLoadBalancerRoutingPoliciesFilter]
loadBalancerId String

The OCID of the load balancer associated with the routing policies.

filters List<Property Map>

getLoadBalancerRoutingPolicies Result

The following output properties are available:

Id string

The provider-assigned unique ID for this managed resource.

LoadBalancerId string
RoutingPolicies List<GetLoadBalancerRoutingPoliciesRoutingPolicy>

The list of routing_policies.

Filters List<GetLoadBalancerRoutingPoliciesFilter>
Id string

The provider-assigned unique ID for this managed resource.

LoadBalancerId string
RoutingPolicies []GetLoadBalancerRoutingPoliciesRoutingPolicy

The list of routing_policies.

Filters []GetLoadBalancerRoutingPoliciesFilter
id String

The provider-assigned unique ID for this managed resource.

loadBalancerId String
routingPolicies List<GetRoutingPoliciesRoutingPolicy>

The list of routing_policies.

filters List<GetRoutingPoliciesFilter>
id string

The provider-assigned unique ID for this managed resource.

loadBalancerId string
routingPolicies GetLoadBalancerRoutingPoliciesRoutingPolicy[]

The list of routing_policies.

filters GetLoadBalancerRoutingPoliciesFilter[]
id str

The provider-assigned unique ID for this managed resource.

load_balancer_id str
routing_policies GetLoadBalancerRoutingPoliciesRoutingPolicy]

The list of routing_policies.

filters GetLoadBalancerRoutingPoliciesFilter]
id String

The provider-assigned unique ID for this managed resource.

loadBalancerId String
routingPolicies List<Property Map>

The list of routing_policies.

filters List<Property Map>

Supporting Types

GetLoadBalancerRoutingPoliciesFilter

Name string

A unique name for the routing policy rule. Avoid entering confidential information.

Values List<string>
Regex bool
Name string

A unique name for the routing policy rule. Avoid entering confidential information.

Values []string
Regex bool
name String

A unique name for the routing policy rule. Avoid entering confidential information.

values List<String>
regex Boolean
name string

A unique name for the routing policy rule. Avoid entering confidential information.

values string[]
regex boolean
name str

A unique name for the routing policy rule. Avoid entering confidential information.

values Sequence[str]
regex bool
name String

A unique name for the routing policy rule. Avoid entering confidential information.

values List<String>
regex Boolean

GetLoadBalancerRoutingPoliciesRoutingPolicy

ConditionLanguageVersion string

The version of the language in which condition of rules are composed.

LoadBalancerId string

The OCID of the load balancer associated with the routing policies.

Name string

A unique name for the routing policy rule. Avoid entering confidential information.

Rules List<GetLoadBalancerRoutingPoliciesRoutingPolicyRule>

The ordered list of routing rules.

State string
ConditionLanguageVersion string

The version of the language in which condition of rules are composed.

LoadBalancerId string

The OCID of the load balancer associated with the routing policies.

Name string

A unique name for the routing policy rule. Avoid entering confidential information.

Rules []GetLoadBalancerRoutingPoliciesRoutingPolicyRule

The ordered list of routing rules.

State string
conditionLanguageVersion String

The version of the language in which condition of rules are composed.

loadBalancerId String

The OCID of the load balancer associated with the routing policies.

name String

A unique name for the routing policy rule. Avoid entering confidential information.

rules List<GetRoutingPoliciesRoutingPolicyRule>

The ordered list of routing rules.

state String
conditionLanguageVersion string

The version of the language in which condition of rules are composed.

loadBalancerId string

The OCID of the load balancer associated with the routing policies.

name string

A unique name for the routing policy rule. Avoid entering confidential information.

rules GetLoadBalancerRoutingPoliciesRoutingPolicyRule[]

The ordered list of routing rules.

state string
condition_language_version str

The version of the language in which condition of rules are composed.

load_balancer_id str

The OCID of the load balancer associated with the routing policies.

name str

A unique name for the routing policy rule. Avoid entering confidential information.

rules GetLoadBalancerRoutingPoliciesRoutingPolicyRule]

The ordered list of routing rules.

state str
conditionLanguageVersion String

The version of the language in which condition of rules are composed.

loadBalancerId String

The OCID of the load balancer associated with the routing policies.

name String

A unique name for the routing policy rule. Avoid entering confidential information.

rules List<Property Map>

The ordered list of routing rules.

state String

GetLoadBalancerRoutingPoliciesRoutingPolicyRule

Actions List<GetLoadBalancerRoutingPoliciesRoutingPolicyRuleAction>

A list of actions to be applied when conditions of the routing rule are met.

Condition string

A routing rule to evaluate defined conditions against the incoming HTTP request and perform an action.

Name string

A unique name for the routing policy rule. Avoid entering confidential information.

Actions []GetLoadBalancerRoutingPoliciesRoutingPolicyRuleAction

A list of actions to be applied when conditions of the routing rule are met.

Condition string

A routing rule to evaluate defined conditions against the incoming HTTP request and perform an action.

Name string

A unique name for the routing policy rule. Avoid entering confidential information.

actions List<GetRoutingPoliciesRoutingPolicyRuleAction>

A list of actions to be applied when conditions of the routing rule are met.

condition String

A routing rule to evaluate defined conditions against the incoming HTTP request and perform an action.

name String

A unique name for the routing policy rule. Avoid entering confidential information.

actions GetLoadBalancerRoutingPoliciesRoutingPolicyRuleAction[]

A list of actions to be applied when conditions of the routing rule are met.

condition string

A routing rule to evaluate defined conditions against the incoming HTTP request and perform an action.

name string

A unique name for the routing policy rule. Avoid entering confidential information.

actions GetLoadBalancerRoutingPoliciesRoutingPolicyRuleAction]

A list of actions to be applied when conditions of the routing rule are met.

condition str

A routing rule to evaluate defined conditions against the incoming HTTP request and perform an action.

name str

A unique name for the routing policy rule. Avoid entering confidential information.

actions List<Property Map>

A list of actions to be applied when conditions of the routing rule are met.

condition String

A routing rule to evaluate defined conditions against the incoming HTTP request and perform an action.

name String

A unique name for the routing policy rule. Avoid entering confidential information.

GetLoadBalancerRoutingPoliciesRoutingPolicyRuleAction

BackendSetName string

Name of the backend set the listener will forward the traffic to. Example: backendSetForImages

Name string

A unique name for the routing policy rule. Avoid entering confidential information.

BackendSetName string

Name of the backend set the listener will forward the traffic to. Example: backendSetForImages

Name string

A unique name for the routing policy rule. Avoid entering confidential information.

backendSetName String

Name of the backend set the listener will forward the traffic to. Example: backendSetForImages

name String

A unique name for the routing policy rule. Avoid entering confidential information.

backendSetName string

Name of the backend set the listener will forward the traffic to. Example: backendSetForImages

name string

A unique name for the routing policy rule. Avoid entering confidential information.

backend_set_name str

Name of the backend set the listener will forward the traffic to. Example: backendSetForImages

name str

A unique name for the routing policy rule. Avoid entering confidential information.

backendSetName String

Name of the backend set the listener will forward the traffic to. Example: backendSetForImages

name String

A unique name for the routing policy rule. Avoid entering confidential information.

Package Details

Repository
https://github.com/pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.