Orchestrator Function: AVI vRO Client Get by Object Url

by Simon Sparks · 11 March 2026

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

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

Filename: PluginAVIService.ts

Description: Orchestrator Function to Get an AVI vRO Client by Object Url.

Private Function: AviVroClientGetByAviObjectUrl

publicAviVroClientGetByAviObjectUrl(strAviObjectUrl:string):AviVroClient{

letstrController:string=strAviObjectUrl.substring(strAviObjectUrl.indexOf("//")+2,strAviObjectUrl.indexOf("/api"));

letarrAviVroClient:AviVroClient[]=this.FindAllForType<AviVroClient>("AviVroClient");

letobjAviVroClient:AviVroClient=arrAviVroClient.find((objAviVroClient:AviVroClient):boolean=>{

letobjAviCredentials:AviCredentials=objAviVroClient.cred;

returnobjAviCredentials.controller===strController;
});

returnobjAviVroClient;
}

Discover more from Cloud Build Tools

Subscribe to get the latest posts sent to your email.

You may also like