def post(self, request): if apiAuth.auth(request.data['api_uname'], request.data['api_pass']) is False: return Response(status=status.HTTP_401_UNAUTHORIZED) response = register.unenroll_user(request.data['external_id'], request.data['image_name']) return Response(request.data, response)
def post(self, request): if apiAuth.auth(request.data['api_uname'], request.data['api_pass']) is False: return Response(status=status.HTTP_401_UNAUTHORIZED) this_ip = request.data['ipaddress'] my_instance = Instance.objects.get(ipaddr=this_ip) response = cloudAdapter.rebuild_vm(my_instance.computeId, my_instance.image.cloudId, my_instance.name, my_instance.cloud.name) return Response(response)
def post(self, request): if apiAuth.auth(request.data['api_uname'], request.data['api_pass']) is False: print request.data['api_uname'] + " " + request.data['api_pass'] return Response(status=status.HTTP_401_UNAUTHORIZED) status_response = register.registerUser(request.data['username'], request.data['email'], request.data['preferred_pass'], request.data['external_id']) return Response(status=status_response)
def post(self, request): if apiAuth.auth(request.data['api_uname'], request.data['api_pass']) is False: return Response(status=status.HTTP_401_UNAUTHORIZED) this_ip = request.data['ipaddress'] globalVars.init() my_token_id = cloudAuth.auth() my_instance = Instance.objects.get(ipaddr=this_ip) response = cloudCompute.rebuildVM(my_token_id, my_instance.computeId, my_instance.image.cloudId, my_instance.name) return Response(response)
def post(self, request): if apiAuth.auth(request.data['api_uname'], request.data['api_pass']) is False: return Response(status=status.HTTP_401_UNAUTHORIZED) this_ip = request.data['ipaddress'] globalVars.init() my_token_id = cloudAuth.auth() my_instance = Instance.objects.get(ipaddr=this_ip) response = cloudCompute.rebuildVM(my_token_id, my_instance.computeId, my_instance.image.cloudId, my_instance.name) return Response(response)
def post(self, request): if apiAuth.auth(request.data['api_uname'], request.data['api_pass']) is False: print request.data['api_uname'] + " " + request.data['api_pass'] return Response(status=status.HTTP_401_UNAUTHORIZED) globalVars.init() my_token_id = cloudAuth.auth() status_response = register.registerUser(request.data['username'], request.data['email'], request.data['preferred_pass'], request.data['external_id'], my_token_id) return Response(status=status_response)
def post(self, request): if apiAuth.auth(request.data['api_uname'], request.data['api_pass']) is False: return Response(status=status.HTTP_401_UNAUTHORIZED) labs = modelFunctions.get_labs(request.data['userid']) return Response(labs)
def post(self, request): if apiAuth.auth(request.data['api_uname'], request.data['api_pass']) is False: return Response(status=status.HTTP_401_UNAUTHORIZED) labs = modelFunctions.get_labs(request.data['userid']) return Response(labs)