public ApGetConsoleOutputResponse GetConsoleOutput(ApGetConsoleOutputRequest request) { Log.Debug(this, "GetConsoleOutput()"); try { Authenticate(request); ApGetConsoleOutputResponse response = new ApGetConsoleOutputResponse(); response.ConsoleOutput = IaasClient.GetConsoleOutput(request.InstanceId); return response; } catch (Exception e) { Log.Error(this, e); throw e; } }
// // GET: /applicationgrid/consoleoutput/{instanceId} public ActionResult ConsoleOutput(string instanceId) { try { ApGetConsoleOutputRequest request = new ApGetConsoleOutputRequest(Credentials); request.InstanceId = instanceId; ApGetConsoleOutputResponse response = EndPoints.ApDashboardService.GetConsoleOutput(request); ConsoleOutput output = new ConsoleOutput(); output.InstanceId = response.ConsoleOutput.InstanceId; output.Output = ApCloudControllerUtil.DecodeConsoleOutput(response.ConsoleOutput.Output); output.Timestamp = response.ConsoleOutput.Timestamp; return View(output); } catch (Exception e) { return ShowError(e); } }