def METHOD_NAME(request):
  response = {
    'status': 0,
    'errors': None,
    'links': []
  }
  try:
    c = client.SqoopClient(conf.SERVER_URL.get(), request.user.username, request.LANGUAGE_CODE, ssl_cert_ca_verify=conf.SSL_CERT_CA_VERIFY.get())
    response['links'] = list_to_dict(c.METHOD_NAME())
  except RestException as e:
    response.update(handle_rest_exception(e, _('Could not get links.')))
  return JsonResponse(response)