Function: Get vSphere Update Manager Host Baselines

by Simon Sparks · 4 February 2026

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

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

Filename: OrchestratorService.ts

Description: Orchestrator Function to Get vSphere Update Manager Host Baselines

Private Function: getHostBaselines

private getHostBaselines(objVcHostSystem: VcHostSystem): VumBaseline[] {
    let strVCenterUri: string = `https://${objVcHostSystem.sdkConnection.id}/sdk`;

    let objVumBaselineSearchSpec: VumBaselineSearchSpec = new VumBaselineSearchSpec(strVCenterUri);
    objVumBaselineSearchSpec.setTargetTypesByStringArray(["HOST"]);

    let arrVumBaseline: VumBaseline[] = VumObjectManager.getFilteredBaselines(objVumBaselineSearchSpec);

    return arrVumBaseline || [];
}

Discover more from Cloud Build Tools

Subscribe to get the latest posts sent to your email.

You may also like