guacamole-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Couchman <>
Subject Re: Killing a guacamole session programatically
Date Thu, 16 May 2019 18:24:46 GMT
On Thu, May 16, 2019 at 6:42 AM faris backer <>

> Is there any way to terminate/Kill guacamole existing session
> programmatically.

Yes - the entire user interface is REST API driven, so terminating a
session can also be done with the API.  If you go into the browser
Developer Console and watch network traffic while you do things within the
GUI you should be able to see the network calls.  For killing the sessions,
you basically PATCH to the following endpoint:

Within that call you need to put some data in the body of the PATCH request:
{op: "remove", path: "/<session-uuid>"}

You can do multiple operations concurrently - you can essentially feed it
an array of operations to do on different sessions.

I've also written a really basic python script that demonstrates some of
these items - see the following repo:


View raw message