def GET(self, rse):
"""
Get account usage and limit for one RSE.
:param rse: the RSE name.
"""
header('Content-Type', 'application/json')
try:
usage = get_rse_account_usage(rse=rse)
for row in usage:
yield dumps(row, cls=APIEncoder) + '\n'
except RSENotFound, error:
raise generate_http_error(404, 'RSENotFound', error[0][0])
except RucioException, error:
raise generate_http_error(500, error.__class__.__name__, error.args[0][0])
except Exception, error:
print format_exc()
raise InternalError(error)
评论列表
文章目录