恢复tablet

Request

POST /api/restore_tablet?tablet_id={int}&schema_hash={int}"

Description

该功能用于恢复trash目录中被误删的tablet数据。

Query parameters

  • tablet_id 需要恢复的table的id

  • schema_hash schema hash

Request body

Response

  1. ```
  2. {
  3. msg: "OK",
  4. code: 0
  5. }
  6. ```

Examples

  1. ```
  2. curl -X POST "http://127.0.0.1:8040/api/restore_tablet?tablet_id=123456&schema_hash=1111111"
  3. ```