Forum Discussion
Glen_Pekarcsik_
Nimbostratus
Apr 04, 2019Using icontrolrest api to configure dos profile in ASM
I am trying to write a icontrolrest API call to configure the dos profile within ASM. When I post the JSON to /mgmt/tm/security/dos/profile it creates the dos profile but I can't find a way to confi...
CraigM_17826
Altocumulus
Dec 21, 2009Hi Bhattman,
thanks for the reply. Actually I rejigged the rule slightly and put in some log statements to see what was going on. It goes somthing like this
switch -glob [string tolower [HTTP::uri]] {
"/sometext" {
log "Using pool1 for URI [HTTP::uri]"
pool pool1
}
"/sometext2" {
log "Using pool2 for URI [HTTP::uri]"
pool pool2
}
}
log local0. "URI: [HTTP::uri]"
What I noticed was that the cases were not matching yet the last log statement was inidcating the specified URI should have matched. For example if I entered http://webserv.com/sometext the switch would not match byt the log statement would indicate the URI was in fact /sometext. The same applied to all the cases in the switch statement, they all failed yet the log statement indicated they should have matched.
Craig
- Feb 05, 2019
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