QueryFormationInstsByTaskID - 查询元数据发现任务实例列表

更新时间:
复制 MD 格式

查询元数据发现任务实例列表

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

调试

授权信息

当前API暂无授权信息透出。

请求参数

名称

类型

必填

描述

示例值

RegionId

string

地域 id,您可通过 describeregions 查看可用的地域 id。

cn-hangzhou

TaskId

string

任务 id。

123

DBClusterId

string

实例 id。

am-bp1r053byu48p****

返回参数

名称

类型

描述

示例值

object

HttpStatusCode

integer

http 状态码。

200

Data

array<object>

返回任务列表。

object

已废弃。详细信息在 Items。

LastTaskInstID

string

最近一次任务的实例 id。

1223

Schema

string

系统为实例分配的 schemaid。

default

CreateTime

string

任务的创建时间。

2023-05-15T07:24:58Z

TaskName

string

任务名称。

doc_test_daily

SourceType

string

任务来源,取值如下:-system:系统。-custom:自定义。

shareScreen

LastTaskInstState

string

最近一次任务实例状态。

FINISH

TaskType

string

任务类型。

Update\"'

SyncTime

string

同步时间,精确到毫秒,格式:yyyy-mm-ddthh:mm:ssz。

2026-01-20t10:01:01z

LastTaskInstMessage

string

最近一次任务的错误信息。

error

LastTaskInstCostTime

string

最近一次任务的执行时间。

8

TaskId

string

任务 id。

10

ScheduleState

string

任务状态。

NORMAL

RequestId

string

请求 id。

1AD222E9-E606-4A42-BF6D-8A4442913CEF

Success

boolean

是否成功。

true

Code

string

状态码,200 表示成功。

200

Message

string

提示信息,成功时为 OK

OK

PageNumber

string

页码。

1

PageSize

string

总页数。

30

TotalCount

string

总记录数。

1

Items

array<object>

任务列表。

object

任务列表。

{ "gmtModified":"2026-07-08T12:00:43.000+00:00", "gmtCreated":"2026-07-08T12:00:33.000+00:00", "type":"CRAWLER", "message":"{\"summary\":\"Table created:1; Table updated:0; add partition num:0; invalid dir num:0; source list warned:0; can not infer file:0; generate ddl failed:0; syncMeta failed:0.\",\"reportDetail\":[]}", "content":"{\"scheduleState\":\"STOP\",\"stat\":{\"actualStartTime\":\"2026-07-08 20:00:40\",\"stage\":\"SUCCESS\",\"isKilled\":false,\"timeCost\":2},\"configuration\":{\"adb.crawler.csv.columns.specify.delimiter.char\":\"auto\",\"adb.crawler.csv.columns.specify.quote.char\":\"auto\"},\"gmtCreated\":1783501525000,\"dbName\":\"sales_db\",\"schemaChangePolicy\":{\"deleteRule\":\"IGNORE\",\"updateRule\":\"ONLY_ADD_COLUMN\"},\"frequency\":{\"cron\":\"\",\"type\":\"run_on_demand\"},\"uid\":\"***\",\"sourceInfo\":{\"ossSourceInfo\":{\"sourceMode\":\"WAREHOUSE\",\"ossLocations\":[\"oss://crawler-test/***/***/\"],\"exclusions\":[],\"inclusions\":[]}},\"failedCount\":0,\"dbClusterId\":\"amv-bp***\",\"sourceType\":\"OSSWAREHOUSE\",\"classifiers\":[\"csv\"],\"taskName\":\"[\\\"oss://crawler-test/***/***/\\\"] -> sales_db\",\"id\":36}", "parentId":-1, "retryTimes":0, "uid":"***", "dbClusterId":"amv-bp***", "sourceType":"OSSWAREHOUSE", "name":"[\"oss://crawler-test/***/***/\"] -> sales_db", "timeCostInSeconds":2, "startTime":"2026-07-08T12:00:33.000+00:00", "id":46872, "state":"SUCCESS", "operatorUid":"***", "taskId":36 }

示例

正常返回示例

JSON格式

{
  "HttpStatusCode": 200,
  "Data": [
    {
      "LastTaskInstID": "1223",
      "Schema": "default",
      "CreateTime": "2023-05-15T07:24:58Z",
      "TaskName": "doc_test_daily",
      "SourceType": "shareScreen",
      "LastTaskInstState": "FINISH",
      "TaskType": "Update\\\"'",
      "SyncTime": "2026-01-20t10:01:01z",
      "LastTaskInstMessage": "error",
      "LastTaskInstCostTime": "8",
      "TaskId": "10",
      "ScheduleState": "NORMAL"
    }
  ],
  "RequestId": "1AD222E9-E606-4A42-BF6D-8A4442913CEF",
  "Success": true,
  "Code": "200",
  "Message": "OK",
  "PageNumber": "1",
  "PageSize": "30",
  "TotalCount": "1",
  "Items": [
    {
      "gmtModified": "2026-07-08T12:00:43.000+00:00",
      "gmtCreated": "2026-07-08T12:00:33.000+00:00",
      "type": "CRAWLER",
      "message": "{\"summary\":\"Table created:1; Table updated:0; add partition num:0; invalid dir num:0; source list warned:0; can not infer file:0; generate ddl failed:0; syncMeta failed:0.\",\"reportDetail\":[]}",
      "content": "{\"scheduleState\":\"STOP\",\"stat\":{\"actualStartTime\":\"2026-07-08 20:00:40\",\"stage\":\"SUCCESS\",\"isKilled\":false,\"timeCost\":2},\"configuration\":{\"adb.crawler.csv.columns.specify.delimiter.char\":\"auto\",\"adb.crawler.csv.columns.specify.quote.char\":\"auto\"},\"gmtCreated\":1783501525000,\"dbName\":\"sales_db\",\"schemaChangePolicy\":{\"deleteRule\":\"IGNORE\",\"updateRule\":\"ONLY_ADD_COLUMN\"},\"frequency\":{\"cron\":\"\",\"type\":\"run_on_demand\"},\"uid\":\"***\",\"sourceInfo\":{\"ossSourceInfo\":{\"sourceMode\":\"WAREHOUSE\",\"ossLocations\":[\"oss://crawler-test/***/***/\"],\"exclusions\":[],\"inclusions\":[]}},\"failedCount\":0,\"dbClusterId\":\"amv-bp***\",\"sourceType\":\"OSSWAREHOUSE\",\"classifiers\":[\"csv\"],\"taskName\":\"[\\\"oss://crawler-test/***/***/\\\"] -> sales_db\",\"id\":36}",
      "parentId": -1,
      "retryTimes": 0,
      "uid": "***",
      "dbClusterId": "amv-bp***",
      "sourceType": "OSSWAREHOUSE",
      "name": "[\"oss://crawler-test/***/***/\"] -> sales_db",
      "timeCostInSeconds": 2,
      "startTime": "2026-07-08T12:00:33.000+00:00",
      "id": 46872,
      "state": "SUCCESS",
      "operatorUid": "***",
      "taskId": 36
    }
  ]
}

错误码

访问错误中心查看更多错误码。

变更历史

更多信息,参考变更详情