Creating Path Route Sets
On Compute Cloud@Customer, you can create a path route set to route URIs to load balancer (LB) backend sets. To create a path route set, a backend set must already exist.
See Managing Path Route Sets for information about URI patterns, pattern match types, and path route set limits.
-
In the Compute Cloud@Customer Console navigation menu, select Networking, then select Load Balancers.
- Select the name of LB for which you want to create the path route set.
- Under Resources, select Path Route Sets.
-
Select Create Path Route Set.
-
Enter the following information:
-
Name: Enter a descriptive name for the Path Route Set. Avoid entering confidential information.
-
Path Route Rules: Enter the following information:
- Match Style: Select Exact Match, Force Longest Prefix Match, Prefix Match, or Suffix Match. The match style must match the URL string entered next.
- URL String: Enter the pattern to match.
- Backend Set: Select the name of the backend set from the drop-down list.
To create another rule, select the New Rule button.
-
-
Select Create Path Route Set.
-
Use the oci lb path-route-set create command and required parameters to create a path route set for a load balancer resource to distinguish by unique URL paths such as
/admin/
,/data/
,/video/
, or/cgi/
.oci lb path-route-set create --name name-of-path-route-set \ --path-routes [COMPLEX-TYPE] --load-balancer-id load-balancer_OCID
For a complete list of CLI commands, flags, and options, see the Command Line Reference.
Use the CreatePathRouteSet operation to add a path route set to a load balancer.
For information about using the API and signing requests, see REST APIs and Security Credentials. For information about SDKs, see Software Development Kits and Command Line Interface.