cancel
Showing results for 
Search instead for 
Did you mean: 

AS3 L7 Policy

rolf
Cirrus
Cirrus

Hi there,

 

we are automating a service deployment using AS3. So fare I could address most of the needs but L7 policy.

Does somebody have a working AS3 L7 Policy which can be shared?

 

Would be great 🙂

 

Thanks,

Rolf

 

1 REPLY 1

rolf
Cirrus
Cirrus

An example Policy:

 

"example-forward_policy": { "class": "Endpoint_Policy", "rules": [{ "name": "forward_to_pool", "conditions": [{ "type": "httpUri", "path": { "operand": "starts-with", "values": ["/test1"] } }], "actions": [{ "type": "forward", "event": "request", "select": { "pool": { "use": "example_pool" } } }] },{ "name": "forward_to_pool2", "conditions": [{ "type": "httpUri", "path": { "operand": "starts-with", "values": ["/test2"] } }], "actions": [{ "type": "forward", "event": "request", "select": { "pool": { "use": "example_pool2" } } }] } ], "strategy": "first-match" }

This can be used in a AS3 configuration