The Content Library API provides services that allow you to create and manage content libraries programmatically. You can create a local library and publish it for the entire virtual environment. You can also subscribe to use the contents of a local library and enable automatic synchronization to ensure that you have the latest content.
What to read next
Create a Local Content Library You can create a local content library programmatically by using the vSphere Automation API. The API allows you to populate the content library with VM and vApp templates. You can use these templates to deploy virtual machines or vApps in your virtual environment.
Publish an Existing Content Library To make the library content available for other vCenter Server instances across the vSphere Automation environment, you must publish the library. Depending on your workflow, select a method for publishing the local library. You can publish a local library that already exists in your vSphere Automation environment.
Publish a Library at the Time of Creation You can publish a local library at the time of creation to enable other libraries to subscribe and use the library content.
Subscribe to a Content Library You can subscribe to public content libraries. The source objects for a public content library can be: a library created on a vCenter Server 6.0 instance, a catalog created on a vCloud Director 5.5 instance, or a third-party library. When you subscribe to a library, you must specify the backing storage for the library content. You must also provide the correct user name and password if the library requires basic authentication.
Synchronize a Subscribed Content Library When you subscribe to a published library, you can configure the settings for downloading and updating the library content.
Editing the Settings of a Content Library You can update the settings of content library types in your virtual environment by using the vSphere Automation API.
Removing the Content of a Subscribed Library You can free storage space in your virtual environment by removing the subscribed library content that you no longer need.
Delete a Content Library When you no longer need a content library, you can invoke the delete method on either the LocalLibrary or the SubscribedLibrary service depending on the library type.