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.
Note: If you subscribe to libraries created with basic authentication on a
vCenter Serverinstance, make sure that you pass
vcsp as an argument for the user name.
Procedure
- Create a StorageBacking instance to define the location where the content of the subscribed library is stored.
- Create a SubscriptionInfo instance to define the subscription behavior of the library.
- Provide the mechanism to be used by the subscribed library to authenticate to the published library.
You can choose between no authentication and basic authentication depending on the settings of the published library you subscribe to. If the library is published with basic authentication, you must set basic authentication in the SubscriptionInfo instance. Set the user name and the password of the SubscriptionInfo instance to match the credentials of the published library.
- Provide the URL to the endpoint where the metadata of the published library is stored.
- Define the synchronization mechanism of the subscribed library.
You can choose between two synchronization modes: automatic and on demand. If you enable automatic synchronization for a subscribed library, both the content and the metadata are synchronized with the published library. To save storage space, you can synchronize the subscribed library on demand and update only the metadata for the published library content.
- Set the thumbprint that is used for validating the certificate of the published library.
- Provide the mechanism to be used by the subscribed library to authenticate to the published library.
- Create a LibraryModel instance and set the library type to subscribed (LibraryModel.LibraryType.SUBSCRIBED).
- Access the SubscribedLibrary service and create the subscribed library instance.