To use this function add it to the class library file named vCenterServerService.ts
GitHub Repository: https://github.com/SimonSparksUK/Orchestrator
Filename: vCenterServerService.ts
public serverFindAllForType<T>(strObjectTypeName: string, strXPathQuery?: string): T[] {
if (strXPathQuery) {
strXPathQuery = `xpath:${strXPathQuery}`;
}
let arrObjectType: T[] = Server.findAllForType(strObjectTypeName, strXPathQuery) as T[];
return arrObjectType;
}Discover more from Cloud Build Tools
Subscribe to get the latest posts sent to your email.
