Orchestrator Function: vCenter VAPI Plugin Content Library Item 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 ContentLibraryItemList

privateContentLibraryItemList(objVAPIClient:VAPIClient,objVAPIContentLibraryModel:com_vmware_content_library__model):com_vmware_content_library_item__model[]{
letobjVAPIContentLibraryItem:com_vmware_content_library_item=newcom_vmware_content_library_item(objVAPIClient);

letarrVAPIContentLibraryItemID:string[]=objVAPIContentLibraryItem.list(objVAPIContentLibraryModel.id);

letarrVAPIContentLibraryItemModel:com_vmware_content_library_item__model[]=arrVAPIContentLibraryItemID.map((strVAPIContentLibraryItem:string):com_vmware_content_library_item__model=>{

letobjVAPIContentLibraryItemModel:com_vmware_content_library_item__model=objVAPIContentLibraryItem.get(strVAPIContentLibraryItem);

returnobjVAPIContentLibraryItemModel;
});

returnarrVAPIContentLibraryItemModel;
}

Discover more from Cloud Build Tools

Subscribe to get the latest posts sent to your email.

You may also like