Assuming your dSource name is "
winsrc1" and reference to dSource "
winsrc1" is "
MSSQL_LINKED_SOURCE-3",
Following API's can be used for the desired functionality.
Question 1 : rest api to enable or disable "Delphix Managed Backups"Solution:
You can use following api calls to "disable" Delphix Managed Backups on dSource
POST /resources/json/delphix/source/MSSQL_LINKED_SOURCE-3
{
"type": "MSSqlLinkedSource",
"ingestionStrategy": {
"type": "NoBackupIngestionStrategy"
}
}
You can use following api calls to "enable" Delphix Managed Backups on dSource
POST /resources/json/delphix/source/MSSQL_LINKED_SOURCE-3
{
"type": "MSSqlLinkedSource",
"ingestionStrategy": {
"type": "DelphixManagedBackupIngestionStrategy"
}
}
Question 2 : rest api to set Validated Sync mode to either Transaction Log, or Full or Differential, or FullSolution:This option is valid only for external backups. Delphix Managed Backups takes copy-only backup so transaction logs/differential option is not valid.
You can use following api calls to set Validated Sync mode on dSource
1) To set validatedSyncMode to FULL
POST /resources/json/delphix/source/MSSQL_LINKED_SOURCE-3
{
"type": "MSSqlLinkedSource",
"ingestionStrategy": {
"type": "ExternalBackupIngestionStrategy",
"validatedSyncMode": "FULL"
}
}
2) To set validatedSyncMode to FULL_OR_DIFFERENTIAL
POST /resources/json/delphix/source/MSSQL_LINKED_SOURCE-3
{
"type": "MSSqlLinkedSource",
"ingestionStrategy": {
"type": "ExternalBackupIngestionStrategy",
"validatedSyncMode": "FULL_OR_DIFFERENTIAL"
}
}
3) To set validatedSyncMode to Transaction Logs
POST /resources/json/delphix/source/MSSQL_LINKED_SOURCE-3
{
"type": "MSSqlLinkedSource",
"ingestionStrategy": {
"type": "ExternalBackupIngestionStrategy",
"validatedSyncMode": "TRANSACTION_LOG"
}
}
Question 3 : rest api to make dSource Active or Inactive
Solution:You can use following api calls to make dSource "Inactive"
POST /resources/json/delphix/source/MSSQL_LINKED_SOURCE-3/disable
{
"type": "SourceDisableParameters"
}
You can use following api calls to make dSource "Active"
POST /resources/json/delphix/source/MSSQL_LINKED_SOURCE-3/enable
{
"type": "SourceEnableParameters"
}
Note :Above is just snippet of code. You will still need to make session, authenticate user and then call desired API.
------------------------------
Ajay Thotangare
Senior Principal, Technical Services
Delphix
------------------------------
Original Message:
Sent: 06-28-2019 05:22:11 PM
From: Pierre Morel
Subject: dSource status
I would like to know if there is a way, using the REST API,
- to enable or disable "Delphix Managed Backups"
- to set Validated Sync mode to either Transaction Log, or Full or Differential, or Full, or None
The API calls, if they exist, could be used to make a dSource Active or Inactive.
Thanks,
------------------------------
Pierre Morel
Sr Software Engineer
Dell
------------------------------