Forum Discussion

Ben_Newport_102's avatar
Ben_Newport_102
Icon for Nimbostratus rankNimbostratus
Dec 14, 2016

Username to Assigned IP

Our tier 1 and 2 support teams need to be able to get a mapping of username to assigned IP in our APM policy. Inversion 12 they have come along way with access-info showing logon user and client ip and sessionid. However they didn't implement the get operation on /mgmt/tm/apm/session just the delete operation. I need to query the logs to find that session id via rest to gather the missing information. I see there is /mgmt/tm/sys/log/ but have no idea what the ~resource id is nor how on a GET to pass JSON indicating the name, lines, or range and in what format date range is in.

 

Documentation for this rest api from F5 is sorely lacking on examples on this topic.

 

{ "kind": "tm:sys:log:logcollectionstats", "selfLink": ";, "items": [ { "propertyDescriptions": { "lines": "Specifies the maximum number of lines within the log that you want the system to display.", "range": "Specifies the date range for the log entries that you want the system to display." }, "naturalKeyPropertyNames": [ "name" ] } ] }

 

Ref: https://devcentral.i131.f5.com/wiki/iControlREST.APIRef_tm_sys_log.ashx

 

1 Reply

  • We can't have them logon to the GUI as to view APM Event Logs they need at least operator role so creating a rest api wrapper webservice is really our only option.