To use this function add it to the class library file named PluginVCACService.ts
GitHub Repository: https://github.com/SimonSparksUK/Orchestrator
Filename: PluginVCACService.ts
Public Function: FindAllForType
publicFindAllForType<T>(strObjectType:"virtualFolder_ProvisioningGroups"|"virtualFolder_VirtualMachines"|"virtualFolder_Reservations"|"virtualFolder_Hosts"|"virtualFolder_Endpoints"|"virtualFolder_Prefixes"|"Reservation"|"ProvisioningGroup"|"HostNamePrefixes"|"HostMachine"|"VCACHost"|"Entity"|"Endpoint"|"VirtualMachine"):T[]{
letstrObjectTypePrefix:string="vCAC";
letstrObjectTypeName:string=`${strObjectTypePrefix}:${strObjectType}`;
letarrObjectType:T[]=this.serverFindAllForType<T>(strObjectTypeName);
returnarrObjectType;
}TypeScriptDiscover more from Cloud Build Tools
Subscribe to get the latest posts sent to your email.
