Skip to content

Commit

Permalink
server: add http api for get ddl history (pingcap#8591)
Browse files Browse the repository at this point in the history
* add http api for get ddl history
  • Loading branch information
ciscoxll authored Dec 6, 2018
1 parent 68a6291 commit 68d0e20
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/tidb_http_api.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,4 +159,13 @@ timezone.*
curl -X POST http://{TiDBIP}:10080/ddl/owner/resign
```

1. Get all TiDB DDL job history information.
```shell
curl http://{TiDBIP}:10080/ddl/history
```

1. Get count {number} TiDB DDL job history information.
```shell
curl http://{TiDBIP}:10080/ddl/history?limit={number}
```
**Note**: If you request a tidb that is not ddl owner, the response will be `This node is not a ddl owner, can't be resigned.`

0 comments on commit 68d0e20

Please sign in to comment.