Forum Discussion
hsq_324155
Nimbostratus
Aug 31, 2017add/modify the ZoneRunner /New Resource Record Interface API
hi: I want to add/modify the ZoneRunner record through the API interface. Are there any documents interface to add/remove/modify IP? The configuration interface is in Global Traffic/Zone Runner/New Resource Record. thanks
1 Reply
Hi Preet_pk,
You are probably getting a tcl error, you can see it in the ltm logs.
https://support.f5.com/csp/article/K23237429when HTTP_REQUEST { if {[HTTP::has_responded]} { return } if {[HTTP::host] equals "lab.com" and [HTTP::uri] equals "/"} { HTTP::redirect "https://lab.com/bluelab/login.html" return elseif {[HTTP::host] equals "uatlab.com" and [HTTP::uri] equals "/"} { HTTP::redirect "https://uatlab.com/bluelab/login.html"} return } }
shorter:
when HTTP_REQUEST { if { [HTTP::has_responded] } { return } if { [HTTP::uri] eq "/" and ([HTTP::host] eq "lab.com" or [HTTP::host] eq "uatlab.com") } { HTTP::redirect "https://[HTTP::host]/bluelab/login.html" return } }
- Ahmed_Galal
Cirrostratus
you can configure LTM policy condtion based on hostname and URI and action with redirection URL.
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