vCenter

 View Only
  • 1.  External Replication of Content Library

    Posted Aug 16, 2018 02:58 PM

    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.



  • 2.  RE: External Replication of Content Library

    Posted Aug 16, 2018 03:01 PM

    What is the error ?

    Please provide screen shot ?

    regards

    Gayathri



  • 3.  RE: External Replication of Content Library

    Posted Aug 16, 2018 03:02 PM



  • 4.  RE: External Replication of Content Library

    Posted Aug 17, 2018 08:01 AM

    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