Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi
oci.LoadBalancer.getPathRouteSets
Explore with Pulumi AI
This data source provides the list of Path Route Sets in Oracle Cloud Infrastructure Load Balancer service.
Lists all path route sets associated with the specified load balancer.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testPathRouteSets = oci.LoadBalancer.getPathRouteSets({
loadBalancerId: testLoadBalancer.id,
});
import pulumi
import pulumi_oci as oci
test_path_route_sets = oci.LoadBalancer.get_path_route_sets(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.GetPathRouteSets(ctx, &loadbalancer.GetPathRouteSetsArgs{
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 testPathRouteSets = Oci.LoadBalancer.GetPathRouteSets.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.GetPathRouteSetsArgs;
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 testPathRouteSets = LoadBalancerFunctions.getPathRouteSets(GetPathRouteSetsArgs.builder()
.loadBalancerId(testLoadBalancer.id())
.build());
}
}
variables:
testPathRouteSets:
fn::invoke:
Function: oci:LoadBalancer:getPathRouteSets
Arguments:
loadBalancerId: ${testLoadBalancer.id}
Using getPathRouteSets
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 getPathRouteSets(args: GetPathRouteSetsArgs, opts?: InvokeOptions): Promise<GetPathRouteSetsResult>
function getPathRouteSetsOutput(args: GetPathRouteSetsOutputArgs, opts?: InvokeOptions): Output<GetPathRouteSetsResult>
def get_path_route_sets(filters: Optional[Sequence[_loadbalancer.GetPathRouteSetsFilter]] = None,
load_balancer_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetPathRouteSetsResult
def get_path_route_sets_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[_loadbalancer.GetPathRouteSetsFilterArgs]]]] = None,
load_balancer_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetPathRouteSetsResult]
func GetPathRouteSets(ctx *Context, args *GetPathRouteSetsArgs, opts ...InvokeOption) (*GetPathRouteSetsResult, error)
func GetPathRouteSetsOutput(ctx *Context, args *GetPathRouteSetsOutputArgs, opts ...InvokeOption) GetPathRouteSetsResultOutput
> Note: This function is named GetPathRouteSets
in the Go SDK.
public static class GetPathRouteSets
{
public static Task<GetPathRouteSetsResult> InvokeAsync(GetPathRouteSetsArgs args, InvokeOptions? opts = null)
public static Output<GetPathRouteSetsResult> Invoke(GetPathRouteSetsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetPathRouteSetsResult> getPathRouteSets(GetPathRouteSetsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:LoadBalancer/getPathRouteSets:getPathRouteSets
arguments:
# arguments dictionary
The following arguments are supported:
- Load
Balancer stringId - The OCID of the load balancer associated with the path route sets to retrieve.
- Filters
List<Get
Path Route Sets Filter>
- Load
Balancer stringId - The OCID of the load balancer associated with the path route sets to retrieve.
- Filters
[]Get
Path Route Sets Filter
- load
Balancer StringId - The OCID of the load balancer associated with the path route sets to retrieve.
- filters
List<Get
Path Route Sets Filter>
- load
Balancer stringId - The OCID of the load balancer associated with the path route sets to retrieve.
- filters
Get
Path Route Sets Filter[]
- load_
balancer_ strid - The OCID of the load balancer associated with the path route sets to retrieve.
- filters
Sequence[loadbalancer.
Get Path Route Sets Filter]
- load
Balancer StringId - The OCID of the load balancer associated with the path route sets to retrieve.
- filters List<Property Map>
getPathRouteSets Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Load
Balancer stringId - Path
Route List<GetSets Path Route Sets Path Route Set> - The list of path_route_sets.
- Filters
List<Get
Path Route Sets Filter>
- Id string
- The provider-assigned unique ID for this managed resource.
- Load
Balancer stringId - Path
Route []GetSets Path Route Sets Path Route Set - The list of path_route_sets.
- Filters
[]Get
Path Route Sets Filter
- id String
- The provider-assigned unique ID for this managed resource.
- load
Balancer StringId - path
Route List<GetSets Path Route Sets Path Route Set> - The list of path_route_sets.
- filters
List<Get
Path Route Sets Filter>
- id string
- The provider-assigned unique ID for this managed resource.
- load
Balancer stringId - path
Route GetSets Path Route Sets Path Route Set[] - The list of path_route_sets.
- filters
Get
Path Route Sets Filter[]
- id str
- The provider-assigned unique ID for this managed resource.
- load_
balancer_ strid - path_
route_ Sequence[loadbalancer.sets Get Path Route Sets Path Route Set] - The list of path_route_sets.
- filters
Sequence[loadbalancer.
Get Path Route Sets Filter]
- id String
- The provider-assigned unique ID for this managed resource.
- load
Balancer StringId - path
Route List<Property Map>Sets - The list of path_route_sets.
- filters List<Property Map>
Supporting Types
GetPathRouteSetsFilter
GetPathRouteSetsPathRouteSet
- Load
Balancer stringId - The OCID of the load balancer associated with the path route sets to retrieve.
- Name string
- The unique name for this set of path route rules. Avoid entering confidential information. Example:
example_path_route_set
- Path
Routes List<GetPath Route Sets Path Route Set Path Route> - The set of path route rules.
- State string
- Load
Balancer stringId - The OCID of the load balancer associated with the path route sets to retrieve.
- Name string
- The unique name for this set of path route rules. Avoid entering confidential information. Example:
example_path_route_set
- Path
Routes []GetPath Route Sets Path Route Set Path Route - The set of path route rules.
- State string
- load
Balancer StringId - The OCID of the load balancer associated with the path route sets to retrieve.
- name String
- The unique name for this set of path route rules. Avoid entering confidential information. Example:
example_path_route_set
- path
Routes List<GetPath Route Sets Path Route Set Path Route> - The set of path route rules.
- state String
- load
Balancer stringId - The OCID of the load balancer associated with the path route sets to retrieve.
- name string
- The unique name for this set of path route rules. Avoid entering confidential information. Example:
example_path_route_set
- path
Routes GetPath Route Sets Path Route Set Path Route[] - The set of path route rules.
- state string
- load_
balancer_ strid - The OCID of the load balancer associated with the path route sets to retrieve.
- name str
- The unique name for this set of path route rules. Avoid entering confidential information. Example:
example_path_route_set
- path_
routes Sequence[loadbalancer.Get Path Route Sets Path Route Set Path Route] - The set of path route rules.
- state str
- load
Balancer StringId - The OCID of the load balancer associated with the path route sets to retrieve.
- name String
- The unique name for this set of path route rules. Avoid entering confidential information. Example:
example_path_route_set
- path
Routes List<Property Map> - The set of path route rules.
- state String
GetPathRouteSetsPathRouteSetPathRoute
- Backend
Set stringName - The name of the target backend set for requests where the incoming URI matches the specified path. Example:
example_backend_set
- Path string
- The path string to match against the incoming URI path.
- Path strings are case-insensitive.
- Asterisk (*) wildcards are not supported.
- Regular expressions are not supported.
- Path
Match GetType Path Route Sets Path Route Set Path Route Path Match Type - The type of matching to apply to incoming URIs.
- Backend
Set stringName - The name of the target backend set for requests where the incoming URI matches the specified path. Example:
example_backend_set
- Path string
- The path string to match against the incoming URI path.
- Path strings are case-insensitive.
- Asterisk (*) wildcards are not supported.
- Regular expressions are not supported.
- Path
Match GetType Path Route Sets Path Route Set Path Route Path Match Type - The type of matching to apply to incoming URIs.
- backend
Set StringName - The name of the target backend set for requests where the incoming URI matches the specified path. Example:
example_backend_set
- path String
- The path string to match against the incoming URI path.
- Path strings are case-insensitive.
- Asterisk (*) wildcards are not supported.
- Regular expressions are not supported.
- path
Match GetType Path Route Sets Path Route Set Path Route Path Match Type - The type of matching to apply to incoming URIs.
- backend
Set stringName - The name of the target backend set for requests where the incoming URI matches the specified path. Example:
example_backend_set
- path string
- The path string to match against the incoming URI path.
- Path strings are case-insensitive.
- Asterisk (*) wildcards are not supported.
- Regular expressions are not supported.
- path
Match GetType Path Route Sets Path Route Set Path Route Path Match Type - The type of matching to apply to incoming URIs.
- backend_
set_ strname - The name of the target backend set for requests where the incoming URI matches the specified path. Example:
example_backend_set
- path str
- The path string to match against the incoming URI path.
- Path strings are case-insensitive.
- Asterisk (*) wildcards are not supported.
- Regular expressions are not supported.
- path_
match_ loadbalancer.type Get Path Route Sets Path Route Set Path Route Path Match Type - The type of matching to apply to incoming URIs.
- backend
Set StringName - The name of the target backend set for requests where the incoming URI matches the specified path. Example:
example_backend_set
- path String
- The path string to match against the incoming URI path.
- Path strings are case-insensitive.
- Asterisk (*) wildcards are not supported.
- Regular expressions are not supported.
- path
Match Property MapType - The type of matching to apply to incoming URIs.
GetPathRouteSetsPathRouteSetPathRoutePathMatchType
- Match
Type string - Specifies how the load balancing service compares a PathRoute object's
path
string against the incoming URI.- EXACT_MATCH - Looks for a
path
string that exactly matches the incoming URI path. - FORCE_LONGEST_PREFIX_MATCH - Looks for the
path
string with the best, longest match of the beginning portion of the incoming URI path. - PREFIX_MATCH - Looks for a
path
string that matches the beginning portion of the incoming URI path. - SUFFIX_MATCH - Looks for a
path
string that matches the ending portion of the incoming URI path.
- EXACT_MATCH - Looks for a
- Match
Type string - Specifies how the load balancing service compares a PathRoute object's
path
string against the incoming URI.- EXACT_MATCH - Looks for a
path
string that exactly matches the incoming URI path. - FORCE_LONGEST_PREFIX_MATCH - Looks for the
path
string with the best, longest match of the beginning portion of the incoming URI path. - PREFIX_MATCH - Looks for a
path
string that matches the beginning portion of the incoming URI path. - SUFFIX_MATCH - Looks for a
path
string that matches the ending portion of the incoming URI path.
- EXACT_MATCH - Looks for a
- match
Type String - Specifies how the load balancing service compares a PathRoute object's
path
string against the incoming URI.- EXACT_MATCH - Looks for a
path
string that exactly matches the incoming URI path. - FORCE_LONGEST_PREFIX_MATCH - Looks for the
path
string with the best, longest match of the beginning portion of the incoming URI path. - PREFIX_MATCH - Looks for a
path
string that matches the beginning portion of the incoming URI path. - SUFFIX_MATCH - Looks for a
path
string that matches the ending portion of the incoming URI path.
- EXACT_MATCH - Looks for a
- match
Type string - Specifies how the load balancing service compares a PathRoute object's
path
string against the incoming URI.- EXACT_MATCH - Looks for a
path
string that exactly matches the incoming URI path. - FORCE_LONGEST_PREFIX_MATCH - Looks for the
path
string with the best, longest match of the beginning portion of the incoming URI path. - PREFIX_MATCH - Looks for a
path
string that matches the beginning portion of the incoming URI path. - SUFFIX_MATCH - Looks for a
path
string that matches the ending portion of the incoming URI path.
- EXACT_MATCH - Looks for a
- match_
type str - Specifies how the load balancing service compares a PathRoute object's
path
string against the incoming URI.- EXACT_MATCH - Looks for a
path
string that exactly matches the incoming URI path. - FORCE_LONGEST_PREFIX_MATCH - Looks for the
path
string with the best, longest match of the beginning portion of the incoming URI path. - PREFIX_MATCH - Looks for a
path
string that matches the beginning portion of the incoming URI path. - SUFFIX_MATCH - Looks for a
path
string that matches the ending portion of the incoming URI path.
- EXACT_MATCH - Looks for a
- match
Type String - Specifies how the load balancing service compares a PathRoute object's
path
string against the incoming URI.- EXACT_MATCH - Looks for a
path
string that exactly matches the incoming URI path. - FORCE_LONGEST_PREFIX_MATCH - Looks for the
path
string with the best, longest match of the beginning portion of the incoming URI path. - PREFIX_MATCH - Looks for a
path
string that matches the beginning portion of the incoming URI path. - SUFFIX_MATCH - Looks for a
path
string that matches the ending portion of the incoming URI path.
- EXACT_MATCH - Looks for a
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.