全部產品
Search
文件中心

Data Transmission Service:查詢校正報告的下載地址

更新時間:Feb 11, 2025

當源庫與目標庫的資料校正出不一致資訊時,您可以調用DescribeDataCheckReportUrl查詢校正報告的下載地址,以擷取源庫與目標庫不一致的具體資料。

調試

您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。

請求參數

名稱

類型

是否必選

樣本值

描述

Action String DescribeDataCheckReportUrl

系統規定參數。取值:DescribeDataCheckReportUrl

CheckType Integer 1

資料校正方式,當前僅支援取值為1,表示全量校正。

DbName String dtsdb

校正的來源資料庫名稱。

TbName String student

來源資料庫中校正的表名。

DtsJobId String f4612nr2182****

DTS任務ID,可以調用DescribeDtsJobs擷取。

ResourceGroupId String rg-acfmzawhxxc****

資源群組ID。

返回資料

名稱

類型

樣本值

描述

RequestId String AF2DE23-B692-5B85-90B7-44B6F4D8****

請求ID。

ErrCode String InternalError

調用出錯時返回的錯誤碼。

Success String true

請求是否成功。

ErrMessage String The Value of Input Parameter %s is not valid.

調用錯誤時返回的錯誤資訊。

DynamicMessage String https://check-result-file-sh.oss-cn-shanghai.aliyuncs.com/dw612cru18e****/dtsdb/diff/student.diff.zip?Expires=****

校正報告的下載地址。

HttpStatusCode Integer 200

狀態代碼。

樣本

請求樣本

http(s)://dts.aliyuncs.com/?Action=DescribeDataCheckReportUrl
&CheckType=1
&DbName=dtsdb
&TbName=student
&DtsJobId=f4612nr2182****
&公用請求參數

正常返回樣本

XML格式

HTTP/1.1 200 OK
Content-Type:application/xml

<DescribeDataCheckReportUrlResponse>
    <RequestId>7DF6862F-E666-5509-AE36-C5E745A1****</RequestId>
    <HttpStatusCode>200</HttpStatusCode>
    <DynamicMessage>https://check-result-file-sh.oss-cn-shanghai.aliyuncs.com/dw612cru18e****/dtsdb/diff/student.diff.zip?Expires=****</DynamicMessage>
    <ErrMessage/>
    <Success>true</Success>
    <ErrCode/>
</DescribeDataCheckReportUrlResponse>

JSON格式

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "7DF6862F-E666-5509-AE36-C5E745A1****",
  "HttpStatusCode" : 200,
  "DynamicMessage" : "https://check-result-file-sh.oss-cn-shanghai.aliyuncs.com/dw612cru18e****/dtsdb/diff/student.diff.zip?Expires=****",
  "ErrMessage" : "",
  "Success" : true,
  "ErrCode" : ""
}

錯誤碼

HttpCode

錯誤碼

錯誤資訊

描述

403 DTS.Msg.FileExistValidFailError The file has not been generated, please try again later. 檔案還未產生,請稍後再試。
403 InvalidSecurityToken.Expired Specified SecurityToken is expired. 簽名已經到期,請更新簽名
400 Throttling.User Request was denied due to user flow control. 由於請求頻次達到閾值,請求被拒絕,請稍後重試。
500 ServiceUnavailable The request has failed due to a temporary failure of the server. 由於服務端響應逾時或者不可用導致請求失敗,請重試,重試後仍失敗請聯絡支援人員。

訪問錯誤中心查看更多錯誤碼。