Creating a Load Balancer Path Route Set

Create a path route set to apply a set of path routes to a load balancer.

For prerequisite information, see Path Route Sets for Load Balancers.

    1. Open the navigation menu, click Networking, and then click Load balancers. Click Load balancer. The Load balancers page appears.

    2. Select the Compartment from the list. All load balancers in that compartment are listed in tabular form.

    3. Select a State from the list to limit the load balancers displayed to that state.

    4. Select the load balancer for which you want to create a path route set. The load balancer's Details page appears.

    5. Click Path route sets under Resources. The Path route sets list appears. All routing policies are listed in tabular form.

    6. Click Create path route set. The Create path route set dialog box appears.

    7. Complete the following:

      • Name: Enter a friendly name for the path route set. The name must be unique, and cannot be changed.

        The path route set name can't begin with a period and cannot contain the characters ;, ?, #, %, /, \, [, or ].

      • Path route rules

        • Order: If you have several path route rules, you can click the up or down arrows to move the corresponding rule.

          Note

          The order of the rules within the path route set typically doesn't matter. However, if matching cascades down to prefix or suffix matching, the system chooses the first prefix or suffix rule that matches the incoming URI path.

        • Match style: The type of matching to apply to incoming URIs. See Request Routing for Load Balancers for more information.

        • URL string: The path string to match against the incoming URI path, for example /admin/.

        • Backend set name: The name of the target backend set for requests where the incoming URI matches the specified path.

        • Click + Additional rule to create another path route rule. You can have up to 20 path route rules in a set.

        • Click X to delete an existing rule.

    8. Click Create.

    After you create a path route set, the set becomes available for use with the associated load balance. Create or update a listener to apply the path route set.

  • Use the oci lb path-route-set create command and required parameters create a path route set for a load balancer:

    oci lb path-route-set create --name name --load-balancer-id load_balancer_id --path-routes path_routes [OPTIONS]

    For a complete list of parameters and values for CLI commands, see the CLI Command Reference.

  • Run the CreatePathRouteSet operation to create a path route set for a load balancer.