VMware Cloud Community
PaulFreedman
Enthusiast
Enthusiast

External Replication of Content Library

Trying to follow this blog but hitting issues when changing the persist_json_enabled setting, has anybody got this to work?

https://www.virtuallyghetto.com/2017/11/external-replication-of-vsphere-content-library.html

Also tried updating via the API but although the request completes without errors, the persist_json_enabled setting remains unchanged.

0 Kudos
3 Replies
GayathriS
Expert
Expert

What is the error ?

Please provide screen shot ?

regards

Gayathri

0 Kudos
PaulFreedman
Enthusiast
Enthusiast

pastedImage_0.png

0 Kudos
PaulFreedman
Enthusiast
Enthusiast

Managed to get rid of initial errors by editing module with to createexample

$updateSpec = $localLibraryService.Help.update.update_spec.CreateExample()

But i'm still getting this? lamw​ - would you be able to assist?

PowerCLI C:\> Set-ContentLibrary -LibraryName "SDC Master CL" -JSONPersistenceEnabled

Updating JSON Persistence configuration setting for SDC Master CL  ...

A server error occurred: 'com.vmware.vapi.std.errors.invalid_argument': Invalid URL schema protocol. (Server error id:

'com.vmware.vdcs.cls-main.invalid_url_schema'). Check $Error[0].Exception.ServerError for more details.

At C:\temp\ContentLibraryedit.psm1:547 char:9

+         $localLibraryService.update($library.id,$updateSpec)

+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo          : OperationStopped: (:) [], CisServerException

    + FullyQualifiedErrorId : VMware.VimAutomation.Cis.Core.Types.V1.CisServerException

0 Kudos