Publish an Existing Content Library

To make the library content available for other
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.
  1. Retrieve a reference to the
    LocalLibrary
    service.
  2. Retrieve an existing local library by using the library ID.
  3. Create a
    PublishInfo
    instance to define how the library is published.
  4. Specify the authentication method to be used by a subscribed library to authenticate to the local library. You can enable either basic authentication or no authentication. Basic authentication requires a user name and password.
  5. If you publish the library with basic authentication, you must specify a user name and password for the
    PublishInfo
    instance, which must be used for authentication.
    Use the predefined user name
    vcsp
    or leave the user name undefined. You must set only a password to protect the library.
  6. Specify that the library is published.
  7. Use the retrieved local library to configure it with the
    PublishInfo
    instance.
  8. Update the properties of the
    LibraryModel
    object returned for the local library.