---
title: "fetch db collector task"
method: POST
path: "/inlong/manager/openapi/dbCollector/getTask"
tags: ["Open-DBCollector-API"]
deprecated: true
---

# fetch db collector task

`POST /inlong/manager/openapi/dbCollector/getTask`

## Request

- The document declares no server URL.
- Auth: none declared

> **Deprecated.**

## Request body

- DbCollectorRequest
  - `md5` string: md5
  - `version` string: version

## Response `200`

OK

- ResponseDbCollectorTaskInfo
  - `data` DbCollectorTaskInfo
    - `data` TaskInfo
      - `dbname` string
      - `dbport` integer
      - `dbtype` integer
      - `id` integer: task id
      - `inlongGroupId` string: inlong groupid
      - `inlongStreamId` string: inlong streamId
      - `ip` string: ip
      - `onceLimit` integer: the limit of one batch
      - `password` string: password
      - `retryTimes` integer: retry times if task failes
      - `sqlStatement` string: sql
      - `timeLimit` integer: task will be forced out after time limit
      - `totalLimit` integer: total limit of data lines
      - `type` integer: task type
      - `user` string: user
    - `md5` string: md5
    - `returnCode` integer: return code
    - `version` string: version
  - `errMsg` string
  - `success` boolean

## Other responses

- `201`: Created
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found

---

[API](https://skmtc.dev/apache/apis/the-apache-software-foundation-file-api.md) - [All operations](https://skmtc.dev/apache/apis/the-apache-software-foundation-file-api/llms.txt) - [OpenAPI document](https://skmtc.dev/apache/apis/the-apache-software-foundation-file-api/revisions/41c687f48683?raw)
