Hello!
Below is our delphix platform properties and we were leveraging python
delphixpy package to create an API Integration wrapper that communicate with underline delphix APIs. While calling dSource API (code as below), we end up with
TypeError: Object of type module is not JSON serializable. Kindly please advise
<dx-labeled-value _nghost-jye-c307="" ng-reflect-condensed="true" ng-reflect-label="Product" ng-reflect-value="Continuous Data" class="ng-star-inserted">
Continuous Data
Continuous Data 6.0.13.0
Mar 10, 2022 6:49:33 AM
Code:
_engine = dx_EngineLogin(_cookie['engine'], _cookie['user'], _cookie['password'], _cookie['domain'])
link_params = LinkParameters()
link_params.name = 'dScrc_API'
link_params.group = find_item_by_name(_engine, group, 'API Group').reference
link_params.link_data = MSSqlLinkData()
link_params.link_data.sync_parameters=MSSqlSyncParameters()
link_params.link_data.sync_parameters.type=MSSqlNewCopyOnlyFullBackupSyncParameters
link_params.link_data.config = find_item_by_name(_engine, sourceconfig, 'DB_API').reference
link_params.link_data.ppt_repository = find_dbrepo_envInstanceName(_engine,"MSSqlInstance",find_item_by_name(_engine, environment, <ENVNAME>).reference,'MSSQLSERVER').reference
link_params.link_data.sourcing_policy = SourcingPolicy()
link_params.link_data.db_user =<DBUSER>
link_params.link_data.db_credentials = {"type": "PasswordCredential",""password":<DBPWD>}
database.link(_engine, link_params)
</dx-labeled-value>
------------------------------
Arun