def GET(self, rse):
"""
List dataset replicas replicas.
HTTP Success:
200 OK
HTTP Error:
401 Unauthorized
500 InternalError
:returns: A dictionary containing all replicas on the RSE.
"""
header('Content-Type', 'application/x-json-stream')
try:
for row in list_datasets_per_rse(rse=rse):
yield dumps(row, cls=APIEncoder) + '\n'
except RucioException, e:
raise generate_http_error(500, e.__class__.__name__, e.args[0][0])
except Exception, e:
print format_exc()
raise InternalError(e)
评论列表
文章目录