hooleylist
Jun 13, 2006Cirrostratus
Using PROFILE::httpclass to get HTTP class configuration info
Hello,
I'm trying to understand how to access HTTP class characteristics and then use a rule to select between a set of HTTP classes based on the filters of the classes.
I found in the profile_base.conf that you can determine whether App Security is enabled on an HTTP class in the context of HTTP_CLASS_SELECTED, using:
[PROFILE::httpclass [HTTP::class] ts_enabled]
So now I'm trying to determine how to access the other parameters of a specific HTTP class. If I have an HTTP class with the following configuration, how can I access the filters like hosts, paths, headers, etc?
profile httpclass asm_httpclass_01 {
defaults from httpclass
hosts "my_host"
paths "/class1"
headers "my_header"
cookies "my_cookie"
pool http_pool
asm enable
}
I tried a few guesses, but wasn't able to parse anything:
[PROFILE::httpclass [HTTP::class] ts_uri]
[PROFILE::httpclass [HTTP::class] ts_uris]
[PROFILE::httpclass [HTTP::class] uri]
[PROFILE::httpclass [HTTP::class] uris]
The wiki page for PROFILE doesn't show examples. And the new iRule editor (while very handy) doesn't have any auto-complete info for this.
And while we're at it, could you also detail what options there are for HTTP::class? I believe you can set the HTTP class using:
HTTP::class my_class
but are there other options as well?
Thanks,
Aaron