Forum Discussion
Mazen2006_14317
Nimbostratus
Mar 05, 2014Could i use a json page as an iFile to show when pool members are in maintenance?
Hello,
I have an LTM v 11.2.1. I need to show to clients a maintenance page in json format when nodes are in maintenance. Couls i use iFile for this? does it support json format? I will call the iFile in an iRule when active pool members is < 1.
please help!
Yours, Mazen
3 Replies
- Vitaliy_Savrans
Nacreous
Hello, I don't know about limitation of using json, you can try to use simple iRule:
when HTTP_REQUEST { if {[active_members [LB::server pool]] < 1} { HTTP::respond 200 content [ifile get ifile_name] } } - Kevin_Stewart
Employee
There should be no limitation on data types in an iFile. To further clarify your intentions, add a Content-Type header to the response:
HTTP::respond 200 content [ifile get ifile_name] "Content-Type" "application/json" - Mazen2006_14317
Nimbostratus
thanks, i will test and share my feeback
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