Thanks Michael.
Luckily, I was referring the same repo to create dSource , but later I figured it was created 2 years ago and there are lot of API configuration and design changes happened. Hence, I created below code based on my understanding the API documentation and attaching the error message here for your reference and suggestion if any correction.
_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').referencelink_params.link_data = MSSqlLinkData()link_params.link_data.sync_parameters=MSSqlSyncParameters()link_params.link_data.sync_parameters.type=MSSqlNewCopyOnlyFullBackupSyncParameterslink_params.link_data.config = find_item_by_name(_engine, sourceconfig, 'DB_API').referencelink_params.link_data.ppt_repository = find_dbrepo_envInstanceName(_engine,"MSSqlInstance",find_item_by_name(_engine, environment, <ENVNAME>).reference,'MSSQLSERVER').referencelink_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)------------------------------
ArunKumar Shanmugam
TDM Specialist
Cognizant Technology Solutions
------------------------------
Original Message:
Sent: 11-17-2022 09:30:16 AM
From: Michael Torok
Subject: Add dSource to MSSQL- delphixpy python library
Hi ArunKumar,
I think you'll find the command and example/syntax here in github: https://github.com/delphix/delphixpy-examples/blob/master/dx_provision_dsource.py
I hope this helps.
Michael
@Corey Brune
------------------------------
Michael Torok
Digital Customer Experience, Senior Director
Delphix
Original Message:
Sent: 11-17-2022 02:18:43 AM
From: ArunKumar Shanmugam
Subject: Add dSource to MSSQL- delphixpy python library
Hi,
We are building an API integration framework using delphixpy library and our engine version is 6.0.13. We want to integrate API to add dSource to the existing MSSQL environment. Kindly please help us with some sample code to integrate for our reference. Thanks in advance!
------------------------------
ArunKumar Shanmugam
TDM Specialist
Cognizant Technology Solutions
------------------------------