Orchestrator Function: Server Find All For Type ( SRM )

by Simon Sparks · 11 February 2026

To use this function add it to the class library file named OrchestratorPluginSRMService.ts

GitHub Repository: https://github.com/SimonSparksUK/Orchestrator

Filename: OrchestratorPluginSRMService.ts

Public Function: FindAllForType

publicFindAllForType<T>(strObjectType:"Command"|"ConfigurationSettings"|"FaultDomain"|"LocalDatacenter"|"LocalNetwork"|"LocalResourcePool"|"NetworkDevice"|"PlaceholderDatastore"|"Prompt"|"ProtectedDatastore"|"ProtectedVm"|"ProtectionFolder"|"ProtectionGroup"|"RecoveryFolder"|"RecoveryPlan"|"RecoveryPriority"|"RemoteDatacenter"|"RemoteNetwork"|"RemoteResourcePool"|"ReplicationGroup"|"Root"|"ScriptingObjectTask"|"Site"|"UnassignedReplicatedDatastore"|"UnassignedReplicatedVm"|"UnreplicatedDatastore"|"VirtualMachinePowerState"):T[]{

letstrObjectTypePrefix:string="SRM";

letstrObjectTypeName:string=`${strObjectTypePrefix}:${strObjectType}`;

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

returnarrObjectType;
}
TypeScript

Discover more from Cloud Build Tools

Subscribe to get the latest posts sent to your email.

You may also like