Reset Search
 

 

Article

KB45662 - How to delete Active users session on PCS/ICS with Rest API?

« Go Back

Information

 
Last Modified Date1/19/2023 4:35 PM
Synopsis
This article explains how to delete "Active users" session with Rest API
Problem or Goal
Administrators can use Rest API to delete All Active user sessions or a particular Active user session by following this article.
Cause
Solution
Deleting a Particular Active Session:

Request -

curl -k -u <api-key>: https://<pcs-ip>/api/v1/system/active-users/session/sid6dc167193b66fef812ef3fdba62729e53f8499f0c25df3be -X DELETE

Example:

curl -k -u K7Z7xA54AKnv1++kcViamCCiUrEBgMSP+sHKar4EcKY=: https://10.209.125.4/api/v1/system/active-users/session/sid6dc167193b66fef812ef3fdba62729e53f8499f0c25df3be -X DELETE

Response

HTTP/1.1 204 NO CONTENT

Content-Length: 0

Content-Type: application/json

Deleting All Active Sessions:

Request -

curl -k -u <api-key>: https://<pcs-ip>/api/v1/system/active-users?all -X DELETE

Example:

curl -k -u K7Z7xA54AKnv1++kcViamCCiUrEBgMSP+sHKar4EcKY=: https://10.209.125.4/api/v1/system/active-users?all -X DELETE

Response

HTTP/1.1 204 NO CONTENT

Content-Length: 0

Content-Type: application/json


>>> For further details on how to use Rest API feature on PCS/ICS refer the following article,
https://help.ivanti.com/ps/help/en_US/ICS/22.x/apig/landingpage.htm
 


 
Related Links
Attachment 1 
Created ByRahul Sukumaran

Feedback

 

Was this article helpful?


   

Feedback

Please tell us how we can make this article more useful.

Characters Remaining: 255