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.
- Retrieve a reference to theLocalLibraryservice.
- Retrieve an existing local library by using the library ID.
- Create aPublishInfoinstance to define how the library is published.
- 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.
- If you publish the library with basic authentication, you must specify a user name and password for thePublishInfoinstance, which must be used for authentication.Use the predefined user namevcspor leave the user name undefined. You must set only a password to protect the library.
- Specify that the library is published.
- Use the retrieved local library to configure it with thePublishInfoinstance.
- Update the properties of theLibraryModelobject returned for the local library.