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 Get a DRS Group by Name from a vCenter Cluster Compute Resource.
Private Function: VcClusterGroupInfoGetByName
privateVcClusterGroupInfoGetByName(objVcClusterComputeResource:VcClusterComputeResource,strGroupName:string):VcClusterGroupInfo{
letarrVcClusterGroupInfo:VcClusterGroupInfo[]=this.VcClusterGroupInfoGetAll(objVcClusterComputeResource);
letobjVcClusterGroupInfo:VcClusterGroupInfo=arrVcClusterGroupInfo.find((objVcClusterGroupInfo:VcClusterGroupInfo):boolean=>{
returnobjVcClusterGroupInfo.name===strGroupName;
});
returnobjVcClusterGroupInfo;
}Discover more from Cloud Build Tools
Subscribe to get the latest posts sent to your email.
