Function: Server Find All For Type ( vCAC )

by Simon Sparks · 12 February 2026

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

public FindAllForType<T>(strObjectType: "virtualFolder_ProvisioningGroups" | "virtualFolder_VirtualMachines" | "virtualFolder_Reservations" | "virtualFolder_Hosts" | "virtualFolder_Endpoints" | "virtualFolder_Prefixes" | "Reservation" | "ProvisioningGroup" | "HostNamePrefixes" | "HostMachine" | "VCACHost" | "Entity" | "Endpoint" | "VirtualMachine"): T[] {

    let strObjectTypePrefix: string = "vCAC";

    let strObjectTypeName: string = `${strObjectTypePrefix}:${strObjectType}`;

    let arrObjectType: T[] = this.serverFindAllForType<T>(strObjectTypeName);

    return arrObjectType;
}
TypeScript

Discover more from Cloud Build Tools

Subscribe to get the latest posts sent to your email.

You may also like