Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 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[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[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)
public static Output<GetPathRouteSetsResult> getPathRouteSets(GetPathRouteSetsArgs args, InvokeOptions options)
fn::invoke:
  function: oci:LoadBalancer/getPathRouteSets:getPathRouteSets
  arguments:
    # arguments dictionaryThe following arguments are supported:
- LoadBalancer stringId 
- The OCID of the load balancer associated with the path route sets to retrieve.
- Filters
List<GetPath Route Sets Filter> 
- LoadBalancer stringId 
- The OCID of the load balancer associated with the path route sets to retrieve.
- Filters
[]GetPath Route Sets Filter 
- loadBalancer StringId 
- The OCID of the load balancer associated with the path route sets to retrieve.
- filters
List<GetPath Route Sets Filter> 
- loadBalancer stringId 
- The OCID of the load balancer associated with the path route sets to retrieve.
- filters
GetPath Route Sets Filter[] 
- load_balancer_ strid 
- The OCID of the load balancer associated with the path route sets to retrieve.
- filters
Sequence[GetPath Route Sets Filter] 
- loadBalancer 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.
- LoadBalancer stringId 
- PathRoute List<GetSets Path Route Sets Path Route Set> 
- The list of path_route_sets.
- Filters
List<GetPath Route Sets Filter> 
- Id string
- The provider-assigned unique ID for this managed resource.
- LoadBalancer stringId 
- PathRoute []GetSets Path Route Sets Path Route Set 
- The list of path_route_sets.
- Filters
[]GetPath Route Sets Filter 
- id String
- The provider-assigned unique ID for this managed resource.
- loadBalancer StringId 
- pathRoute List<GetSets Path Route Sets Path Route Set> 
- The list of path_route_sets.
- filters
List<GetPath Route Sets Filter> 
- id string
- The provider-assigned unique ID for this managed resource.
- loadBalancer stringId 
- pathRoute GetSets Path Route Sets Path Route Set[] 
- The list of path_route_sets.
- filters
GetPath Route Sets Filter[] 
- id str
- The provider-assigned unique ID for this managed resource.
- load_balancer_ strid 
- path_route_ Sequence[Getsets Path Route Sets Path Route Set] 
- The list of path_route_sets.
- filters
Sequence[GetPath Route Sets Filter] 
- id String
- The provider-assigned unique ID for this managed resource.
- loadBalancer StringId 
- pathRoute List<Property Map>Sets 
- The list of path_route_sets.
- filters List<Property Map>
Supporting Types
GetPathRouteSetsFilter    
GetPathRouteSetsPathRouteSet      
- LoadBalancer 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
- PathRoutes List<GetPath Route Sets Path Route Set Path Route> 
- The set of path route rules.
- State string
- LoadBalancer 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
- PathRoutes []GetPath Route Sets Path Route Set Path Route 
- The set of path route rules.
- State string
- loadBalancer 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
- pathRoutes List<GetPath Route Sets Path Route Set Path Route> 
- The set of path route rules.
- state String
- loadBalancer 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
- pathRoutes 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[GetPath Route Sets Path Route Set Path Route] 
- The set of path route rules.
- state str
- loadBalancer 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
- pathRoutes List<Property Map>
- The set of path route rules.
- state String
GetPathRouteSetsPathRouteSetPathRoute        
- BackendSet 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.
 
- PathMatch GetType Path Route Sets Path Route Set Path Route Path Match Type 
- The type of matching to apply to incoming URIs.
- BackendSet 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.
 
- PathMatch GetType Path Route Sets Path Route Set Path Route Path Match Type 
- The type of matching to apply to incoming URIs.
- backendSet 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.
 
- pathMatch GetType Path Route Sets Path Route Set Path Route Path Match Type 
- The type of matching to apply to incoming URIs.
- backendSet 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.
 
- pathMatch 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_ Gettype Path Route Sets Path Route Set Path Route Path Match Type 
- The type of matching to apply to incoming URIs.
- backendSet 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.
 
- pathMatch Property MapType 
- The type of matching to apply to incoming URIs.
GetPathRouteSetsPathRouteSetPathRoutePathMatchType           
- MatchType string
- Specifies how the load balancing service compares a PathRoute object's pathstring against the incoming URI.- EXACT_MATCH - Looks for a pathstring that exactly matches the incoming URI path.
- FORCE_LONGEST_PREFIX_MATCH - Looks for the pathstring with the best, longest match of the beginning portion of the incoming URI path.
- PREFIX_MATCH - Looks for a pathstring that matches the beginning portion of the incoming URI path.
- SUFFIX_MATCH - Looks for a pathstring that matches the ending portion of the incoming URI path.
 
- EXACT_MATCH - Looks for a 
- MatchType string
- Specifies how the load balancing service compares a PathRoute object's pathstring against the incoming URI.- EXACT_MATCH - Looks for a pathstring that exactly matches the incoming URI path.
- FORCE_LONGEST_PREFIX_MATCH - Looks for the pathstring with the best, longest match of the beginning portion of the incoming URI path.
- PREFIX_MATCH - Looks for a pathstring that matches the beginning portion of the incoming URI path.
- SUFFIX_MATCH - Looks for a pathstring that matches the ending portion of the incoming URI path.
 
- EXACT_MATCH - Looks for a 
- matchType String
- Specifies how the load balancing service compares a PathRoute object's pathstring against the incoming URI.- EXACT_MATCH - Looks for a pathstring that exactly matches the incoming URI path.
- FORCE_LONGEST_PREFIX_MATCH - Looks for the pathstring with the best, longest match of the beginning portion of the incoming URI path.
- PREFIX_MATCH - Looks for a pathstring that matches the beginning portion of the incoming URI path.
- SUFFIX_MATCH - Looks for a pathstring that matches the ending portion of the incoming URI path.
 
- EXACT_MATCH - Looks for a 
- matchType string
- Specifies how the load balancing service compares a PathRoute object's pathstring against the incoming URI.- EXACT_MATCH - Looks for a pathstring that exactly matches the incoming URI path.
- FORCE_LONGEST_PREFIX_MATCH - Looks for the pathstring with the best, longest match of the beginning portion of the incoming URI path.
- PREFIX_MATCH - Looks for a pathstring that matches the beginning portion of the incoming URI path.
- SUFFIX_MATCH - Looks for a pathstring 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 pathstring against the incoming URI.- EXACT_MATCH - Looks for a pathstring that exactly matches the incoming URI path.
- FORCE_LONGEST_PREFIX_MATCH - Looks for the pathstring with the best, longest match of the beginning portion of the incoming URI path.
- PREFIX_MATCH - Looks for a pathstring that matches the beginning portion of the incoming URI path.
- SUFFIX_MATCH - Looks for a pathstring that matches the ending portion of the incoming URI path.
 
- EXACT_MATCH - Looks for a 
- matchType String
- Specifies how the load balancing service compares a PathRoute object's pathstring against the incoming URI.- EXACT_MATCH - Looks for a pathstring that exactly matches the incoming URI path.
- FORCE_LONGEST_PREFIX_MATCH - Looks for the pathstring with the best, longest match of the beginning portion of the incoming URI path.
- PREFIX_MATCH - Looks for a pathstring that matches the beginning portion of the incoming URI path.
- SUFFIX_MATCH - Looks for a pathstring 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 ociTerraform Provider.