Forum Discussion
Nikolay_Matveev
Mar 23, 2016Nimbostratus
APM: terminate active session via API
Is it possible to obtain a list of active APM session and then terminate one of them using an API?
I assumed this could be done using iControl REST API but failed to find any relevant informati...
Yann_Desmarest_
Mar 24, 2016Nacreous
Hello,
You can show active sessions using the following script :
for i in $(sessiondump -list | cut -f1 -d\ ); do sessiondump -delete $i; done
You should have a look at the sessiondump command to see if you can kill an active session.
- Nikolay_MatveevMar 24, 2016NimbostratusThank you Yann. I understand you refer to CLI which is not exactly what I asked about. I need to be able to obtain list of current sessions and terminate one of them using an API call (ideally using a REST API) from an external application (not on the BigIP itself). Is this possible?
- Yann_Desmarest_Mar 24, 2016NacreousUnfortunately, I think this is currently not available out of the box. But you may launch bash scripts from the rest api instead
- Nikolay_MatveevMar 24, 2016NimbostratusHmm... that's not very good... If a script is invoked via the REST API can its console output be returned as a result of that API call?
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