Orchestrator Function: Un-Deploy a vApp ( Power Off to You and Me )

by Simon Sparks · 5 September 2013

To use this function add it to the class library file named vCloudService.ts

GitHub Repository: https://github.com/SimonSparksUK/Orchestrator

Filename: vCloudService.ts

Description: Orchestrator Function to undeploy a VclVApp.

Function VclVAppUndeploy

publicVclVAppUndeploy(objVclVApp:VclVApp):void{
if (objVclVApp.deployed==true){
letobjVclTask:VclTask=objVclVApp.undeploy(VclUndeployPowerActionType.SHUTDOWN);

this.WaitForVclTask(objVclTask,1);
}
}

Discover more from Cloud Build Tools

Subscribe to get the latest posts sent to your email.

You may also like