caterva2.get_roots#

caterva2.get_roots(urlbase='http://localhost:8002/', auth_cookie=None)#

Get the list of available roots.

Parameters:
  • urlbase (str) – The base of URLs (slash-terminated) of the subscriber to query.

  • auth_cookie (str) – An optional HTTP cookie for authorizing access.

Returns:

A mapping of available root names to their name, http endpoint and whether they are subscribed or not.

Return type:

dict