Orchestrator Function: vCenter VAPI Plugin Content Library Subscription Update

by Simon Sparks · 18 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 ContentLibrarySubscriptionUpdate

private ContentLibrarySubscriptionUpdate(objVAPIContentLibrary: com_vmware_content_library__model, objVAPIContentLibrarySubscriptionUpdateSpecVCenter: com_vmware_content_library_subscriptions_update__spec__vcenter, objVAPIContentLibrarySubscriptionUpdateSpecPlacement: com_vmware_content_library_subscriptions_update__spec__placement): void {

    let objVAPIContentLibrarySubscriptions: com_vmware_content_library_subscriptions = new com_vmware_content_library_subscriptions(this.objVAPIClient);

    let objVAPIContentLibrarySubscriptionUpdateSpec: com_vmware_content_library_subscriptions_update__spec = {
        subscribed_library_vcenter: objVAPIContentLibrarySubscriptionUpdateSpecVCenter,
        subscribed_library_placement: objVAPIContentLibrarySubscriptionUpdateSpecPlacement
    };

    objVAPIContentLibrarySubscriptions.update(null, objVAPIContentLibrary.id, objVAPIContentLibrarySubscriptionUpdateSpec);
}

Discover more from Cloud Build Tools

Subscribe to get the latest posts sent to your email.

You may also like