You can update the settings of content library types in your virtual environment by using the vSphere Automation API.

Table 1. Options for Updating a Content Library
Content Library Types Option
Local content library You can change the settings of a local library before calling the update function on the LocalLibrary object: Before a library is published, you can edit the name, description, version, and so on.
After a library is published, you must first retrieve the PublishInfo instance of the published library you want. You can use the instance to configure the following settings.
  • Unpublish the local library.
  • Change the authentication method of the library.
  • Change the password that must be used for authentication.
Subscribed content library You can edit the settings of a subscribed library if you retrieve the SubscriptionInfo instance associated with it. To apply the changes, you must update the library by using the SubscribedLibrary object.

You can configure the following settings:

  • The authentication method required by the local library
  • The user name and password of the subscribed library for authentication to the local library
  • The method for synchronizing the metadata and the content of the subscribed library
  • The thumbprint used for validating the SSL certificate of the local library
Note: Starting with vSphere 7.0 Update 3, you can use the Security Policies service to secure a content library. You can set, update, or remove a security policy when you update a local or subscribed content library.
  • To update or set a security policy, pass false to the unset_security_policy_id / setUnsetSecurityPolicyId(java.lang.Boolean unsetSecurityPolicyId) parameter and then use security_policy_id / setSecurityPolicyId(java.lang.String securityPolicyId) to pass the security policy identifier.
  • To remove a security policy, pass true to the unset_security_policy_id / setUnsetSecurityPolicyId(java.lang.Boolean unsetSecurityPolicyId) parameter of the LibraryModel update specification.