f5-appsvcs-extension
f5-appsvcs-extension copied to clipboard
Provide AS3 support for HttpHost type in Policy_Condition
trafficstars
Is your feature request related to a problem? Please describe.
When defining an ltm policy in AS3 (Endpoint_Policy), it would be nice to support a Policy_Condition of httpHost, to enable hostname matches for rules. Currently the only supported types are “httpHeader”, “httpMethod”, “httpUri”, “httpCookie”, “sslExtension”, “tcp”
Describe the solution you'd like
The resultant ltm policy should be able to look like this:

An example AS3 declaration for the Policy_Condition could look like this:
{
"rules":[
"name":"rule_1",
"conditions": [
{
"type":"httpHost",
"host":{
"values":["example.com"],
"operand":"contains"
}
}
]
]
}
Describe alternatives you've considered
I see from a previous issue comment that the http-host condition just matches against the host header, so it is technically possible to achieve the desired outcome with the current functionality. Therefore, this is just a nice to have, to allow AS3 configuration to replicate existing policy configuration