def cluster_list(self):
"""
Get the list of all the clusters created by this user
:return: A dictionary with all the clusters
"""
arguments = {
'method': 'clusters_list'
}
client = HTTPClient()
response = client.fetch('{}/cluster?{}'.format(
self.uri, parse.urlencode(arguments)),
headers={'Key': self.uk}
)
if response.code == 200:
return json.loads(response.body.decode('utf-8'))
else:
raise ValueError(response.body.decode('utf-8'))
评论列表
文章目录