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

public FindAllForType<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[] {

  let strObjectTypePrefix: string = "SRM";

  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