查看目標資料來源所關聯的資料整合同步任務。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| ProjectId |
integer |
是 |
DataWorks 工作空間的 ID。您可以登入 DataWorks 控制台,進入工作空間設定頁面取得工作空間 ID。 |
10000 |
| DatasourceName |
string |
是 |
需要查看的目標資料來源名稱。您可以呼叫 ListDataSources 介面取得資料來源名稱。 |
mysql_datasource |
| TaskType |
string |
是 |
目標資料來源所關聯的資料整合同步任務的任務類型。取值如下:
|
DI_OFFLINE |
| RefType |
string |
是 |
選擇目標資料來源作為資料整合同步任務的源端或目的端。取值如下:
|
from |
| PageNumber |
integer |
否 |
頁碼數。最小值 1,最大值 100 |
1 |
| PageSize |
integer |
否 |
每頁顯示的資料筆數。 |
100 |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
|||
| Success |
boolean |
請求是否成功。取值如下:
|
true |
| RequestId |
string |
請求 ID。用於定位日誌,排查問題。 |
0bc1411515937635973**** |
| Data |
object |
返回的資料結果。 |
|
| DISyncTasks |
array<object> |
返回資料結果的陣列資訊。 通常,目標資料來源會關聯多個資料整合同步任務,呼叫 ListRefDISyncTasks 介面查詢目標資料來源關聯的同步任務時,返回的結果為目標資料來源所關聯的同步任務的陣列。如下資訊為陣列中一個同步任務的資訊範例。 |
|
|
object |
返回資料結果的陣列資訊。 通常,目標資料來源會關聯多個資料整合同步任務,呼叫 ListRefDISyncTasks 介面查詢目標資料來源關聯的同步任務時,返回的結果為目標資料來源所關聯的同步任務的陣列。如下資訊為陣列中一個同步任務的資訊範例。 |
||
| DiSourceDatasource |
string |
The source of the synchronization task. If the synchronization task has multiple sources, the return value is a JSON array, such as \"odps_writer\", \"mysql\". If the RefType parameter is set to from, the synchronization tasks that use the specified data source as the source are returned. In this case, the value of this parameter indicates the specified data source. |
[\"odps_writer\"] |
| TaskType |
string |
The type of the synchronization task. Valid values:
|
DI_OFFLINE |
| DiDestinationDatasource |
string |
The destination of the synchronization task. If the synchronization task has multiple destinations, the return value is a JSON array, such as \"odps_writer\", \"mysql\". If the RefType parameter is set to to, the synchronization tasks that use the specified data source as the destination are returned. In this case, the value of this parameter indicates the specified data source. |
[\"qcc_polardb2\"] |
| NodeName |
string |
The name of the synchronization task. |
abcd1234 |
| NodeId |
integer |
The ID of the synchronization task. |
100000 |
樣本
正常返回樣本
JSON格式
{
"Success": true,
"RequestId": "0bc1411515937635973****",
"Data": {
"DISyncTasks": [
{
"DiSourceDatasource": "[\\\"odps_writer\\\"]",
"TaskType": "DI_OFFLINE",
"DiDestinationDatasource": "[\\\"qcc_polardb2\\\"]",
"NodeName": "abcd1234",
"NodeId": 100000
}
]
}
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | Invalid.DI.Parameter | The parameter is invalid. | |
| 400 | Invalid.DI.Parameter.File.Existed | The file name already exists. | |
| 500 | InternalError.DI.Parameter | A DI internal error occurred. | |
| 403 | Forbidden.DI.NoPrivilege | No access. |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。