Function: Server Find For Type ( vCAC )

by Simon Sparks · 16 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: FindForType

public FindForType<T>(strObjectType: "virtualFolder_ProvisioningGroups" | "virtualFolder_VirtualMachines" | "virtualFolder_Reservations" | "virtualFolder_Hosts" | "virtualFolder_Endpoints" | "virtualFolder_Prefixes" | "Reservation" | "ProvisioningGroup" | "HostNamePrefixes" | "HostMachine" | "VCACHost" | "Entity" | "Endpoint" | "VirtualMachine", strObjectID: string): T {

    let strObjectTypePrefix: string = "vCAC";

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

    let objObjectType: T = this.serverFindForType<T>(strObjectTypeName, strObjectID);

    return objObjectType;
}
TypeScript

Discover more from Cloud Build Tools

Subscribe to get the latest posts sent to your email.

You may also like