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.
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.
|
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:
|
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.