Forum Discussion
APM: terminate active session via API
This may be an easier way.
To get a list of Active access sessions:
curl -sk -u admin:<password> -H "Content-Type: application/json" -X GET https://<apm ip address>/mgmt/tm/apm/access-info | jq -M .
{
"kind": "tm:apm:access-info:access-infostats",
"selfLink": "https://localhost/mgmt/tm/apm/access-info?ver=15.1.0",
"entries": {
"https://localhost/mgmt/tm/apm/access-info/9c0a5b2d": {
"nestedStats": {
"entries": {
"clientIp": {
"description": "192.168.1.72"
},
"logonUser": {
"description": "user1"
}
}
}
},
"https://localhost/mgmt/tm/apm/access-info/b7c5ede0": {
"nestedStats": {
"entries": {
"clientIp": {
"description": "192.168.1.72"
},
"logonUser": {
"description": "user2"
}
}
}
}
}
}
To delete a specific Access session:
Locate the logonUser name and the URL ending with the session id.
curl -sk -u admin:<password> -X DELETE https://<apm ip address>/mgmt/tm/apm/session/<session id>
Recent Discussions
Related Content
* 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