Orchestrator Function: vCenter VAPI Plugin Content Libraries List

by Simon Sparks · 17 January 2026

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

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

Filename: vCenterVAPIService.ts

Function ContentLibraryList

privateContentLibraryList(objVAPIClient:VAPIClient):com_vmware_content_library__model[]{
letobjVAPIContentLibraryLocal:com_vmware_content_local__library=newcom_vmware_content_local__library(objVAPIClient);

letarrVAPIContentLibraryID:string[]=objVAPIContentLibraryLocal.list();

letarrVAPIContentLibraryModel:com_vmware_content_library__model[]=arrVAPIContentLibraryID.map((strVAPIContentLibraryID:string):com_vmware_content_library__model=>{

letobjVAPIContentLibraryModel:com_vmware_content_library__model=objVAPIContentLibraryLocal.get(strVAPIContentLibraryID);

returnobjVAPIContentLibraryModel;
});

objVAPIClient.close();

returnarrVAPIContentLibraryModel;
}

Discover more from Cloud Build Tools

Subscribe to get the latest posts sent to your email.

You may also like