To use this function add it to the class library file named PluginVRAService.ts
GitHub Repository: https://github.com/SimonSparksUK/Orchestrator
Filename: PluginVRAService.ts
Description: Orchestrator Function to Shutdown a Machine
Public Function: MachineShutdown
publicMachineShutdown(objVraMachine:VraMachine):VraRequestTracker{
letobjVraHost:VraHost=objVraMachine.host;
letobjVraInfrastructureClient:VraInfrastructureClient=objVraHost.createInfrastructureClient();
// @ts-ignore
letobjVraMachineService:VraMachineService=objVraInfrastructureClient.createMachineService();
letobjVraRequestTracker:VraRequestTracker=objVraMachineService.shutDown(objVraMachine.id);
returnobjVraRequestTracker;
}TypeScriptDiscover more from Cloud Build Tools
Subscribe to get the latest posts sent to your email.
