Orchestrator Function: vCenter VAPI Plugin Content Library Item List By Type

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 ContentLibraryItemListByType

privateContentLibraryItemListByType(objVAPIClient:VAPIClient,objVAPIContentLibraryModel:com_vmware_content_library__model,strType:string):com_vmware_content_library_item__model[]{
letarrVAPIContentLibraryItemModel:com_vmware_content_library_item__model[]=this.ContentLibraryItemList(objVAPIClient,objVAPIContentLibraryModel);

arrVAPIContentLibraryItemModel=arrVAPIContentLibraryItemModel.filter((objVAPIContentLibraryItemModel:com_vmware_content_library_item__model):boolean=>{
returnobjVAPIContentLibraryItemModel.type===strType;
});

returnarrVAPIContentLibraryItemModel;
}

Discover more from Cloud Build Tools

Subscribe to get the latest posts sent to your email.

You may also like