Forum Discussion
rolf
May 12, 2020Cirrus
AS3 L7 Policy
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? Woul...
rolf
May 26, 2020Cirrus
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
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects