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