fraandres
Mar 17, 2023Nimbostratus
iRule Sideband datagroup
Hello pretty new to creating iRules specially sidebands, what I want to accomplish is get an IP from an APM session and drop it on a datagroup with a sideband. This is what I have below not sure if I'm in the right path
when ACCESS_POLICY_COMPLETED {
set clientip [ACCESS::session data get "session.user.clientip"]
set send_info [send -timeout 1000 -status send_status $conn_id $clientip]
send data [send"/mgmt/tm/ltm/datagroup/internal/active_visitor_ips\?options=\/"$clientip/""]
#set data [send PATCH {"op": "add", "path": "/mgmt/tm/ltm/datagroup/internal/active_visitor_ips\&options\=$clientip/-", "value": "$clientip" }]
}
when ACCESS_SESSION_CLOSED {
set clientip [ACCESS::session data get "session.user.clientip"]
}