logo
开发者文档
搜索
查询添加状态

查询添加状态

通过该 API 接口,发送请求以查询添加表数据任务的处理状态。

请求方式

GET

调用地址

https://api-${endpoint}/v1/database/query/import-results

调用验证

详情参见 API 概述的鉴权方式说明。

请求

请求示例

curl -X GET 'https://api-${endpoint}/v1/database/query/import-results?ids=id1&ids=id2' \ -H 'Authorization: Bearer ${API Key}'
                      
                      curl -X GET 'https://api-${endpoint}/v1/database/query/import-results?ids=id1&ids=id2' \
-H 'Authorization: Bearer ${API Key}'

                    
此代码块在浮窗中显示

请求头

字段 类型 描述
Authorization Bearer ${API Key} 使用Authorization: Bearer ${API Key}进行调用验证,请在 API 密钥页面获取密钥作为API Key

查询参数

字段 类型 必填 描述
ids list 添加数据任务id集合。

响应

响应示例

{ "code": 0, "message": "OK", "progress": 0, "data": [ { "id": "673e9cda9f7bc178002dbd9c", "progress": 1, "status": "FAIL", "success_count": 0, "fail_count": 2, "fail_detail": [ {"row_number_start":1,"row_number_end":10,"fail_reason":"fail reason"}, {"row_number_start":31,"row_number_end":40,"fail_reason":"fail reason"} ] } ] }
                      
                      {
    "code": 0,
    "message": "OK",
    "progress": 0,
    "data": [
        {
            "id": "673e9cda9f7bc178002dbd9c",
            "progress": 1,
            "status": "FAIL",
            "success_count": 0,
            "fail_count": 2,
            "fail_detail": [
              {"row_number_start":1,"row_number_end":10,"fail_reason":"fail reason"},
              {"row_number_start":31,"row_number_end":40,"fail_reason":"fail reason"}
            ]
        }
    ]
}

                    
此代码块在浮窗中显示

系统默认将10 行划分为一个 chunk,错误原因为该 chunk 中第一行失败的原因。

成功响应

字段 类型 描述
code int 消息的类型编码。
message string 消息描述。
progress int 进度值。
data list 数据结果。
id string 查询任务id。
success_count int 成功数量。
fail_count int 失败数量。
fail_detail list 添加对象与失败原因,系统默认将10行划分为一个chunk,错误原因为该chunk中第一行失败的原因

失败响应

字段 类型 描述
code int 错误码。
message string 错误详情。

错误码

Code Message
50000 系统内部错误