예제 #1
0
        public void RebootInstance(ApRebootInstanceRequest request)
        {
            Log.Debug(this, "RebootInstance()");

            try
            {
                Authenticate(request);
                IaasClient.RebootInstance(request.InstanceId);
            }
            catch (Exception e)
            {
                Log.Error(this, e);
                throw e;
            }
        }
예제 #2
0
 //
 // GET: /applicationgrid/rebootinstance/{instanceId}
 public ActionResult RebootInstance(string instanceId)
 {
     try
     {
         ApRebootInstanceRequest request = new ApRebootInstanceRequest(Credentials);
         request.InstanceId = instanceId;
         EndPoints.ApDashboardService.RebootInstance(request);
         return RedirectToAction("Instances");
     }
     catch (Exception e)
     {
         return ShowError(e);
     }
 }