Recovers a deleted table. If the parent database is also deleted, with proper permissions it will be recovered automatically.
Security
ApiKeyAuth
- https://api.treasuredata.com/v3https://api.treasuredata.com/v3/table/recover/{table_id}
- https://api.treasuredata.co.jp/v3https://api.treasuredata.co.jp/v3/table/recover/{table_id}
- https://api.ap02.treasuredata.com/v3https://api.ap02.treasuredata.com/v3/table/recover/{table_id}
- https://api.eu01.treasuredata.com/v3https://api.eu01.treasuredata.com/v3/table/recover/{table_id}
curl -i -X POST \
https://api.treasuredata.com/v3/table/recover/11 \
-H 'Authorization: TD1 <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"table_name": "Bravo",
"database_name": "Alpha"
}'OK
Any of:
string or null
Datetime in custom format (2020-12-31 11:22:33 -0500 or 2020-12-31 11:22:33 UTC for UTC)
Example:"2020-12-31 11:22:33 UTC"
Datetime in custom format (2020-12-31 11:22:33 -0500 or 2020-12-31 11:22:33 UTC for UTC)
Example:"2020-12-31 11:22:33 UTC"
Response
{ "id": 11, "name": "Bravo", "count": 1000, "counter_updated_at": "string", "created_at": "2020-12-31 11:22:33 UTC", "updated_at": "2020-12-31 11:22:33 UTC", "estimated_storage_size": 1073741824, "expire_days": 30, "include_v": false, "last_log_timestamp": 1356998400, "delete_protected": true, "type": "log" }