JupyterHub Rest API: Retrieve list of non-running named servers

Hi,

I’m trying to retrieve the list of named servers that are not running, but neither the /user nor the /users/<name> endpoints return this list.

These two endpoints are able to retrieve the named servers that are currently running, but I’m looking for the ones that aren’t running.

Any ideas?

Thanks

Have a look at this for example: kube_orphans.py · GitHub (its not what you are asking for, but similar)

And check out the REST API docs:

1 Like

Thanks, the kube_orphans.py script helped a lot. I completely missed the include_stopped_servers parameter from the /users endpoint. I was expecting /user and /users/<name> to return all active and inactive servers

1 Like