Valid for nomad version >= 0.7.0
You must have nomad ENTERPRISE Edition
This endpoint lists all namespaces.
https://www.nomadproject.io/api/namespaces.html#list-namespaces
Exmaple:
import nomad
my_nomad = nomad.Nomad(host='192.168.33.10')
namespaces = my_nomad.namespaces.get_namespaces()
for namespace in namespaces:
print (token['Name'])