Function: vCenter Datastore Cluster Get Space Utilization Threshold

by Simon Sparks · 23 January 2026

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

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

Filename: PluginVCStoragePodService.ts

Function GetSpaceUtilizationThreshold

Description: Orchestrator Function to Get the Datastore Cluster Space Utilization Threshold


public GetSpaceUtilizationThreshold(objVcStoragePod: VcStoragePod): number {

    let objVcPodStorageDrsEntry: VcPodStorageDrsEntry = objVcStoragePod.podStorageDrsEntry;

    let objVcStorageDrsConfigInfo: VcStorageDrsConfigInfo = objVcPodStorageDrsEntry.storageDrsConfig;

    let objVcStorageDrsPodConfigInfo: VcStorageDrsPodConfigInfo = objVcStorageDrsConfigInfo.podConfig;

    let objVcStorageDrsSpaceLoadBalanceConfig: VcStorageDrsSpaceLoadBalanceConfig = objVcStorageDrsPodConfigInfo.spaceLoadBalanceConfig;

    // let intFreeSpaceThresholdGB: number = objVcStorageDrsSpaceLoadBalanceConfig.freeSpaceThresholdGB;

    let intSpaceUtilizationThreshold: number = objVcStorageDrsSpaceLoadBalanceConfig.spaceUtilizationThreshold;

    return intSpaceUtilizationThreshold;
}

Discover more from Cloud Build Tools

Subscribe to get the latest posts sent to your email.

You may also like