Restful Access to BIG-IP Subtables
Surely by now you have tasted the goodness that is tables. No? Stop now and go read up on the table command. No, really, right now! I’ll wait…
OK, now that you are a tables expert, it’s clear t...
Published Aug 11, 2010
Version 1.0JRahm
Admin
Joined January 20, 2005
JRahm
Admin
Joined January 20, 2005
Kevin_Davies_40
Sep 23, 2010Nacreous
Thats a lot of code when this will do...
when HTTP_REQUEST {
set page_header "Table data"
set page_footer ""
switch -regex [HTTP::URI] {
"^/keys" {
default {
table [getfield [HTTP::URI] "/" 2] -subtable [getfield [HTTP::URI] "/" 3] [getfield [HTTP::URI] "/" 4] [getfield [HTTP::URI] "/" 5]
}
http://127.0.0.1/add/mytable/hello/there
http://127.0.0.1/delete/mytable/hello/there
http://127.0.0.1/delete/mytable/hello/-all