To use this function add it to the class library file named PluginVCClusterComputeResourceService.ts
GitHub Repository: https://github.com/SimonSparksUK/Orchestrator
Filename: PluginVCClusterComputeResourceService.ts
Description: Orchestrator Function to Update a DRS Rule on a vCenter Cluster Compute Resource.
Private Function: VcClusterRuleUpdate
private VcClusterRuleUpdate(objVcClusterComputeResource: VcClusterComputeResource, objVcClusterRuleInfo: VcClusterVmHostRuleInfo | VcClusterAffinityRuleSpec | VcClusterAntiAffinityRuleSpec | VcClusterDependencyRuleInfo): boolean {
let objVcClusterRuleSpec: VcClusterRuleSpec = new VcClusterRuleSpec();
objVcClusterRuleSpec.operation = VcArrayUpdateOperation.edit;
objVcClusterRuleSpec.info = objVcClusterRuleInfo;
let arrVcClusterRuleSpec: VcClusterRuleSpec[] = [];
arrVcClusterRuleSpec.push(objVcClusterRuleSpec);
let blnResult: boolean = this.Reconfigure(objVcClusterComputeResource, null, null, arrVcClusterRuleSpec);
return blnResult;
}Discover more from Cloud Build Tools
Subscribe to get the latest posts sent to your email.
