You could also key off of "provisionContainer" in the /database json, as dSources would not have anything for this attribute:
{
"type": "ListResult",
"status": "OK",
"result": [
{
"type": "MSSqlDatabaseContainer",
"reference": "MSSQL_DB_CONTAINER-31",
"namespace": null,
"name": "Dev vDB",
"group": "GROUP-45",
"provisionContainer": "MSSQL_DB_CONTAINER-30",
"creationTime": "2017-08-07T15:00:06.323Z",
"currentTimeflow": "MSSQL_TIMEFLOW-59",
"previousTimeflow": null,
"description": null,
"runtime": {
"type": "MSSqlDBContainerRuntime",
"logSyncActive": false,
"preProvisioningStatus": null,
"lastRestoredBackupSetUUID": null
},
"restoration": false,
"transformation": false,
"masked": false,
"os": "Windows",
"processor": "x86",
"sourcingPolicy": {
"type": "SourcingPolicy",
"logsyncEnabled": false,
"loadFromBackup": false
},
"performanceMode": "DISABLED",
"delphixManaged": true
},
{
"type": "MSSqlDatabaseContainer",
"reference": "MSSQL_DB_CONTAINER-30",
"namespace": null,
"name": "AdventureWorksLT2008R2",
"group": "GROUP-49",
"provisionContainer": null,
"creationTime": "2017-08-07T14:30:06.555Z",
"currentTimeflow": "MSSQL_TIMEFLOW-56",
"previousTimeflow": null,
"description": null,
"runtime": {
"type": "MSSqlDBContainerRuntime",
"logSyncActive": true,
"preProvisioningStatus": {
"type": "PreProvisioningRuntime",
"preProvisioningState": "ACTIVE",
"lastUpdateTimestamp": "Mon Aug 07 09:27:06 PDT 2017",
"status": "Restoring source database backup with UUID \"C4F42D79-0B69-4957-A2AF-D374DC801E67\" onto the staging database on staging host \"10.0.1.60\".",
"response": null,
"pendingAction": null
},
"lastRestoredBackupSetUUID": "C8681119-05EA-4E32-81D2-2B766313BA5B"
},
"restoration": false,
"transformation": false,
"masked": false,
"os": "Windows",
"processor": "x86",
"sourcingPolicy": {
"type": "SourcingPolicy",
"logsyncEnabled": true,
"loadFromBackup": true
},
"performanceMode": "DISABLED",
"delphixManaged": false
},
{
"type": "MSSqlDatabaseContainer",
"reference": "MSSQL_DB_CONTAINER-32",
"namespace": null,
"name": "QA vDB",
"group": "GROUP-46",
"provisionContainer": "MSSQL_DB_CONTAINER-30",
"creationTime": "2017-08-07T15:10:02.358Z",
"currentTimeflow": "MSSQL_TIMEFLOW-58",
"previousTimeflow": null,
"description": null,
"runtime": {
"type": "MSSqlDBContainerRuntime",
"logSyncActive": false,
"preProvisioningStatus": null,
"lastRestoredBackupSetUUID": null
},
"restoration": false,
"transformation": false,
"masked": false,
"os": "Windows",
"processor": "x86",
"sourcingPolicy": {
"type": "SourcingPolicy",
"logsyncEnabled": false,
"loadFromBackup": false
},
"performanceMode": "DISABLED",
"delphixManaged": true
}
],
"job": null,
"action": null,
"total": 3,
"overflow": false
}