To use this function add it to the class library file named OrchestratorPluginF5Service.ts
GitHub Repository: https://github.com/SimonSparksUK/Orchestrator
Filename: OrchestratorPluginF5Service.ts
Description: Orchestrator Function to get an F5 Networks Generic Object Get by Name.
Public Function: ObjectGetByName
public ObjectGetByName<T>(objF5NetworksEndpoint: F5NetworksEndpoint, strObjectType: F5Types, strDisplayName: string): T {
let strBigIpEndpointId: string = System.getObjectId(objF5NetworksEndpoint);
let arrF5NetworksObject: T[] = this.FindAllForType<T>(strObjectType, strBigIpEndpointId, false);
let objF5NetworksObject: T = arrF5NetworksObject.find((objF5NetworksObject: T): boolean => {
//@ts-ignore
return objF5NetworksObject.displayName === strDisplayName;
});
return objF5NetworksObject;
}TypeScriptDiscover more from Cloud Build Tools
Subscribe to get the latest posts sent to your email.
