Interface L7Policy.Service
- All Superinterfaces:
Maskable
,ResultLimitable
,Service
- Enclosing class:
- L7Policy
@ApiService("SoftLayer_Network_LBaaS_L7Policy") public static interface L7Policy.Service extends Service
The SoftLayer_Network_LBaaS_L7Policy service allows consumers to manage the Policies associated with a Listener. A Listener can have multiple policies. Polices are associated with priorities. The priorities indicate the order in which policies are evaluated. Each policy is configured with an action which is applied when http traffic matches rules associated with the policy. A policy can be configured with one of the following actions: redirect to pool, redirect to url, or reject. Policies configured with reject are always evaluated first irrespective of the priority followed by redirect to url, after which policies with action set to redirect to pool are evaluated. if policies are configured with redirect to https and reject also, then reject always evaluated first. Polices have multiple rules, each rule is evaluated to true or false. If all the rules of the policy evaluate to true then the action associated with that policy is applied to the request.
- See Also:
- SoftLayer_Network_LBaaS_L7Policy
-
Method Summary
Modifier and Type Method Description LoadBalancer
addL7Policies(String listenerUuid, List<PolicyRule> policiesRules)
This function creates multiple policies with rules for the given listener.L7Policy.ServiceAsync
asAsync()
Get an async version of this serviceLoadBalancer
deleteObject()
Deletes a l7 policy instance and the rules associated with the policyLoadBalancer
editObject(L7Policy templateObject)
Edit a l7 policy instance's propertiesList<L7Rule>
getL7Rules()
L7Policy
getObject()
void
setMask(L7Policy.Mask mask)
L7Policy.Mask
withMask()
Use the existing mask on this service or create it if not presentL7Policy.Mask
withNewMask()
Overwrite the existing mask on this service with a new one and return itMethods inherited from interface com.softlayer.api.ResultLimitable
getLastResponseTotalItemCount, getResultLimit, setResultLimit
-
Method Details
-
asAsync
L7Policy.ServiceAsync asAsync()Description copied from interface:Service
Get an async version of this service -
withNewMask
L7Policy.Mask withNewMask()Description copied from interface:Maskable
Overwrite the existing mask on this service with a new one and return it- Specified by:
withNewMask
in interfaceMaskable
-
withMask
L7Policy.Mask withMask()Description copied from interface:Maskable
Use the existing mask on this service or create it if not present -
setMask
-
addL7Policies
This function creates multiple policies with rules for the given listener. -
deleteObject
Deletes a l7 policy instance and the rules associated with the policy -
editObject
Edit a l7 policy instance's properties -
getObject
-
getL7Rules
-