RoutingRule¶
-
class
oci.load_balancer.models.
RoutingRule
(**kwargs)¶ Bases:
object
A routing rule examines an incoming request, routing matching requests to the specified backend set. Routing rules apply only to HTTP and HTTPS requests. They have no effect on TCP requests.
Methods
__init__
(**kwargs)Initializes a new RoutingRule object with values from keyword arguments. Attributes
actions
[Required] Gets the actions of this RoutingRule. condition
[Required] Gets the condition of this RoutingRule. name
[Required] Gets the name of this RoutingRule. -
__init__
(**kwargs)¶ Initializes a new RoutingRule object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
Parameters: - name (str) – The value to assign to the name property of this RoutingRule.
- condition (str) – The value to assign to the condition property of this RoutingRule.
- actions (list[oci.load_balancer.models.Action]) – The value to assign to the actions property of this RoutingRule.
-
actions
¶ [Required] Gets the actions of this RoutingRule. A list of actions to be applied when conditions of the routing rule are met.
Returns: The actions of this RoutingRule. Return type: list[oci.load_balancer.models.Action]
-
condition
¶ [Required] Gets the condition of this RoutingRule. A routing rule to evaluate defined conditions against the incoming HTTP request and perform an action.
Returns: The condition of this RoutingRule. Return type: str
-
name
¶ [Required] Gets the name of this RoutingRule. A unique name for the routing policy rule. Avoid entering confidential information.
Returns: The name of this RoutingRule. Return type: str
-