Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi
oci.LoadBalancer.getLoadBalancerRoutingPolicies
Explore with Pulumi AI
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
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testLoadBalancerRoutingPolicies = oci.LoadBalancer.getLoadBalancerRoutingPolicies({
loadBalancerId: testLoadBalancer.id,
});
import pulumi
import pulumi_oci as oci
test_load_balancer_routing_policies = oci.LoadBalancer.get_load_balancer_routing_policies(load_balancer_id=test_load_balancer["id"])
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v2/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: testLoadBalancer.Id,
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testLoadBalancerRoutingPolicies = Oci.LoadBalancer.GetLoadBalancerRoutingPolicies.Invoke(new()
{
LoadBalancerId = testLoadBalancer.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.LoadBalancer.LoadBalancerFunctions;
import com.pulumi.oci.LoadBalancer.inputs.GetLoadBalancerRoutingPoliciesArgs;
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 testLoadBalancerRoutingPolicies = LoadBalancerFunctions.getLoadBalancerRoutingPolicies(GetLoadBalancerRoutingPoliciesArgs.builder()
.loadBalancerId(testLoadBalancer.id())
.build());
}
}
variables:
testLoadBalancerRoutingPolicies:
fn::invoke:
Function: oci:LoadBalancer:getLoadBalancerRoutingPolicies
Arguments:
loadBalancerId: ${testLoadBalancer.id}
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:
- Load
Balancer stringId - The OCID of the load balancer associated with the routing policies.
- Filters
List<Get
Load Balancer Routing Policies Filter>
- Load
Balancer stringId - The OCID of the load balancer associated with the routing policies.
- Filters
[]Get
Load Balancer Routing Policies Filter
- load
Balancer StringId - The OCID of the load balancer associated with the routing policies.
- filters
List<Get
Routing Policies Filter>
- load
Balancer stringId - The OCID of the load balancer associated with the routing policies.
- filters
Get
Load Balancer Routing Policies Filter[]
- load_
balancer_ strid - The OCID of the load balancer associated with the routing policies.
- filters
Sequence[loadbalancer.
Get Load Balancer Routing Policies Filter]
- load
Balancer StringId - 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.
- Load
Balancer stringId - Routing
Policies List<GetLoad Balancer Routing Policies Routing Policy> - The list of routing_policies.
- Filters
List<Get
Load Balancer Routing Policies Filter>
- Id string
- The provider-assigned unique ID for this managed resource.
- Load
Balancer stringId - Routing
Policies []GetLoad Balancer Routing Policies Routing Policy - The list of routing_policies.
- Filters
[]Get
Load Balancer Routing Policies Filter
- id String
- The provider-assigned unique ID for this managed resource.
- load
Balancer StringId - routing
Policies List<GetRouting Policies Routing Policy> - The list of routing_policies.
- filters
List<Get
Routing Policies Filter>
- id string
- The provider-assigned unique ID for this managed resource.
- load
Balancer stringId - routing
Policies GetLoad Balancer Routing Policies Routing Policy[] - The list of routing_policies.
- filters
Get
Load Balancer Routing Policies Filter[]
- id str
- The provider-assigned unique ID for this managed resource.
- load_
balancer_ strid - routing_
policies Sequence[loadbalancer.Get Load Balancer Routing Policies Routing Policy] - The list of routing_policies.
- filters
Sequence[loadbalancer.
Get Load Balancer Routing Policies Filter]
- id String
- The provider-assigned unique ID for this managed resource.
- load
Balancer StringId - routing
Policies List<Property Map> - The list of routing_policies.
- filters List<Property Map>
Supporting Types
GetLoadBalancerRoutingPoliciesFilter
GetLoadBalancerRoutingPoliciesRoutingPolicy
- Condition
Language stringVersion - The version of the language in which
condition
ofrules
are composed. - Load
Balancer stringId - 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<Get
Load Balancer Routing Policies Routing Policy Rule> - The ordered list of routing rules.
- State string
- Condition
Language stringVersion - The version of the language in which
condition
ofrules
are composed. - Load
Balancer stringId - 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
[]Get
Load Balancer Routing Policies Routing Policy Rule - The ordered list of routing rules.
- State string
- condition
Language StringVersion - The version of the language in which
condition
ofrules
are composed. - load
Balancer StringId - 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<Get
Routing Policies Routing Policy Rule> - The ordered list of routing rules.
- state String
- condition
Language stringVersion - The version of the language in which
condition
ofrules
are composed. - load
Balancer stringId - 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
Get
Load Balancer Routing Policies Routing Policy Rule[] - The ordered list of routing rules.
- state string
- condition_
language_ strversion - The version of the language in which
condition
ofrules
are composed. - load_
balancer_ strid - 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
Sequence[loadbalancer.
Get Load Balancer Routing Policies Routing Policy Rule] - The ordered list of routing rules.
- state str
- condition
Language StringVersion - The version of the language in which
condition
ofrules
are composed. - load
Balancer StringId - 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<Get
Load Balancer Routing Policies Routing Policy Rule Action> - 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
[]Get
Load Balancer Routing Policies Routing Policy Rule Action - 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<Get
Routing Policies Routing Policy Rule Action> - 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
Get
Load Balancer Routing Policies Routing Policy Rule Action[] - 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
Sequence[loadbalancer.
Get Load Balancer Routing Policies Routing Policy Rule Action] - 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
- Backend
Set stringName - 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 stringName - 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 StringName - 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 stringName - 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_ strname - 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.
- backend
Set StringName - 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
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.