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;
}TypeScriptDiscover more from Cloud Build Tools
Subscribe to get the latest posts sent to your email.
