f5-appsvcs-extension icon indicating copy to clipboard operation
f5-appsvcs-extension copied to clipboard

Provide AS3 support for HttpHost type in Policy_Condition

Open 21buckets opened this issue 3 years ago • 0 comments
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:

image

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

21buckets avatar Jul 13 '22 23:07 21buckets