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
privateVcClusterRuleUpdate(objVcClusterComputeResource:VcClusterComputeResource,objVcClusterRuleInfo:VcClusterVmHostRuleInfo|VcClusterAffinityRuleSpec|VcClusterAntiAffinityRuleSpec|VcClusterDependencyRuleInfo):boolean{
letobjVcClusterRuleSpec:VcClusterRuleSpec=newVcClusterRuleSpec();
objVcClusterRuleSpec.operation=VcArrayUpdateOperation.edit;
objVcClusterRuleSpec.info=objVcClusterRuleInfo;
letarrVcClusterRuleSpec:VcClusterRuleSpec[]= [];
arrVcClusterRuleSpec.push(objVcClusterRuleSpec);
letblnResult:boolean=this.Reconfigure(objVcClusterComputeResource,null,null,arrVcClusterRuleSpec);
returnblnResult;
}Discover more from Cloud Build Tools
Subscribe to get the latest posts sent to your email.
