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.
