PingCAP Task API

task

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 21

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /api/v1/tasks Create a data migration task · create a task #
Ask an LLM
“How do I create a new data migration task?”
“What do I need to configure a new task, like the source and target databases?”
Tell an agent
Create a data migration task {task}.
Set up a new task with source {source} and target {target}.
GET /api/v1/tasks List data migration tasks · get task list #
Ask an LLM
“Which data migration tasks are configured in DM?”
“Can I list tasks that are in a particular stage?”
Tell an agent
List all data migration tasks.
List tasks in stage {stage}.
GET /api/v1/tasks/{task-name} Get a data migration task · get a task #
Ask an LLM
“What are the settings of one data migration task?”
“Can I fetch a task's configuration by its name?”
Tell an agent
Get data migration task {task_name}.
Show the configuration of task {task_name}.
DELETE /api/v1/tasks/{task-name} Delete a data migration task · delete a task #
Ask an LLM
“How do I delete a data migration task?”
“Can I force-delete a task that still has running subtasks?”
Tell an agent destructive · confirm first
Delete data migration task {task_name}.
Force delete task {task_name} with force {force}.
PUT /api/v1/tasks/{task-name} Update a data migration task · update a task #
Ask an LLM
“How do I change the configuration of an existing data migration task?”
“Can I edit a task's settings after it's created?”
Tell an agent
Update data migration task {task_name} with {task}.
Change the settings of existing task {task_name}.
GET /api/v1/tasks/{task-name}/status Get a data migration task's status · get task status #
Ask an LLM
“Is my data migration task running, paused or stopped?”
“Can I check the status of a task for specific source databases?”
Tell an agent
Get the status of data migration task {task_name}.
Show task {task_name} status for sources {source_name_list}.
POST /api/v1/tasks/{task-name}/start Start a data migration task · start a task #
Ask an LLM
“How do I start a data migration task?”
“Can I remove the downstream meta database when starting a task?”
Tell an agent
Start data migration task {task_name}.
Start task {task_name} and remove its downstream meta database: {remove_meta}.
POST /api/v1/tasks/{task-name}/stop Stop a data migration task · stop a task #
Ask an LLM
“How do I stop a data migration task?”
“Can I wait a certain time before a task is stopped?”
Tell an agent
Stop data migration task {task_name}.
Stop task {task_name} with a timeout of {timeout_duration}.
GET /api/v1/tasks/{task-name}/sources/{source-name}/migrate_targets Get source-to-target table routes for a task · get task source table and target table route relation #
Ask an LLM
“Which source tables are mapped to which target tables in a task?”
“Can I filter the table route mapping for one schema pattern?”
Tell an agent
Get the source-to-target table route mapping for task {task_name} on source {source_name}.
Show task {task_name} source {source_name} table routes matching {schema_pattern}.
GET /api/v1/tasks/{task-name}/sources/{source-name}/schemas List source schemas for a task · get task source schema list #
Ask an LLM
“What schemas are being migrated in a task from a given source?”
“Can I list the source database schemas a task is pulling from?”
Tell an agent
List source schemas for task {task_name} on source {source_name}.
Show the schemas in task {task_name} from source {source_name}.
GET /api/v1/tasks/{task-name}/sources/{source-name}/schemas/{schema-name} List tables in a source schema · get task source table list #
Ask an LLM
“Which tables exist in a source database schema for a task?”
“Can I see the table list for one source of a task?”
Tell an agent
List tables in source {source_name}, schema {schema_name}, task {task_name}.
Show the tables of {schema_name} in task {task_name} source {source_name}.
GET /api/v1/tasks/{task-name}/sources/{source-name}/schemas/{schema-name}/{table-name} Get a source table's structure in a task · get task source table structure #
Ask an LLM
“What are the column definitions of a source table in a task?”
“Can I see the source table structure for one task and source?”
Tell an agent
Get the structure of source table {table_name} in task {task_name} on source {source_name} schema {schema_name}.
Show source table {table_name} structure for task {task_name}, source {source_name}, schema {schema_name}.
PUT /api/v1/tasks/{task-name}/sources/{source-name}/schemas/{schema-name}/{table-name} Alter a source table's structure in a task · operate task source table structure #
Ask an LLM
“How do I run a DDL on a source table while a task is running?”
“Can I flush the schema change to the checkpoint right away?”
Tell an agent
Run SQL {sql_content} on source table {table_name} in task {task_name} on source {source_name} schema {schema_name}.
Apply {sql_content} to source table {table_name} in task {task_name}, source {source_name}, schema {schema_name}, flush {flush}.
DELETE /api/v1/tasks/{task-name}/sources/{source-name}/schemas/{schema-name}/{table-name} Drop a source table's structure in a task · delete task source table structure #
Ask an LLM
“How do I remove a source table's structure from a task?”
“Can I drop a source table's structure without touching the task itself?”
Tell an agent destructive · confirm first
Delete the structure of source table {table_name} in task {task_name} on source {source_name} schema {schema_name}.
Drop source table {table_name} structure for task {task_name}, source {source_name}, schema {schema_name}.
POST /api/v1/tasks/converters Convert a task between config file and object · Turn task into the format of a configuration file or vice versa #
Ask an LLM
“How do I turn a task configuration file into a task object?”
“Can I convert a task object back into a YAML config file?”
Tell an agent
Convert task {task} to a configuration file.
Parse the YAML config file {task_config_file} into a task object.
POST /api/v1/tasks/templates Create a data migration task template · create task template #
Ask an LLM
“How do I create a reusable task template with a source and target config?”
“Can I set a task template to use optimistic sharding and online DDL?”
Tell an agent
Create task template {name} in mode {task_mode} with target {target_config}.
Create a {task_mode} task template {name} with source config {source_config}, target {target_config}, online DDL {enhance_online_schema_change}, on duplicate {on_duplicate}, table rules {table_migrate_rule}.
GET /api/v1/tasks/templates List data migration task templates · get task template list #
Ask an LLM
“What task templates are available for creating new data migration tasks?”
“Can I see all the task template names?”
Tell an agent
List data migration task templates.
Show every task template available.
POST /api/v1/tasks/templates/import Import task templates from configuration · import task template #
Ask an LLM
“How do I bring task templates into DM from configuration, replacing ones that already exist?”
“Can I import task templates without overwriting the ones I already have?”
Tell an agent
Import task templates with overwrite set to {overwrite}.
Bulk import task templates into DM and set whether to replace existing ones: {overwrite}.
GET /api/v1/tasks/templates/{task-name} Get a data migration task template · get task template template #
Ask an LLM
“What are the settings of one task template?”
“Can I fetch a task template by its name?”
Tell an agent
Get data migration task template {task_name}.
Show the configuration of task template {task_name}.
PUT /api/v1/tasks/templates/{task-name} Update a data migration task template · update task template template #
Ask an LLM
“How do I change an existing task template?”
“Can I edit a task template after it's created?”
Tell an agent
Update task template {task_name}.
Edit the existing task template {task_name}.
DELETE /api/v1/tasks/templates/{task-name} Delete a task template · delete task template template #
Ask an LLM
“How do I delete a task template I no longer use?”
“Can I remove a task template by its name?”
Tell an agent destructive · confirm first
Delete task template {task-name}.
Remove the unused task template {task-name}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/pingcap:pingcap-task-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

pingcap-task-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: DM OpenAPI DOC Task API
  version: 6.0.0
  description: task
servers:
- url: https://you.domain.com/
tags:


# --- truncated at 32 KB (38 KB total) ---
# Full source: https://artifacts.apis.io/pingcap/openapi/pingcap-task-api-openapi.yml