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 Delete a vRA Block Device
Public Function: VraBlockDeviceDelete
public VraBlockDeviceDelete(objVcaBlockDevice: VraBlockDevice, blnPurge: boolean = false, blnForceDelete: boolean = false): VraRequestTracker {
let objVraHost: VraHost = objVcaBlockDevice.host;
let objVraInfrastructureClient: VraInfrastructureClient = objVraHost.createInfrastructureClient();
// @ts-ignore
let objVraDiskService: VraDiskService = objVraInfrastructureClient.createDiskService();
let objVraRequestTracker: VraRequestTracker = objVraDiskService.deleteBlockDevice(objVcaBlockDevice.id, blnPurge, blnForceDelete);
return objVraRequestTracker;
}TypeScriptDiscover more from Cloud Build Tools
Subscribe to get the latest posts sent to your email.
