DWH Integrations
- API Reference
First class Data Warehouse Integration API (1.0.0)
- Production AWS serverhttps://dwh-integration-api.treasuredata.com/v1/dwh/
- Production EU01 serverhttps://dwh-integration-api.eu01.treasuredata.com/v1/dwh/
- Production AP02 serverhttps://dwh-integration-api.ap02.treasuredata.com/v1/dwh/
- Production AP03 serverhttps://dwh-integration-api.ap03.treasuredata.com/v1/dwh/
- Production AWS Tokyo serverhttps://dwh-integration-api.treasuredata.co.jp/v1/dwh/
- cURL
- Java
- Go
- Ruby
- Python
- Node.js
curl -i -X GET \
https://dwh-integration-api.treasuredata.com/v1/dwh/ \
-H 'Authorization: YOUR_API_KEY_HERE'{ "items": [ { … } ], "pagination": { "page": 0, "size": 0, "total_pages": 0 } }
The schedule value for the schedule_type. For example, if schedule_type is daily, schedule_option should be a time string like 10:00.
The basic configs of the DWH Integration.
The Snowflake data Warehouse to use for the connection, e.g. "COMPUTE_WH"
The DWH Integration advanced configs. The configs contain array of of table configs which combine with the basic configs will be used to create Connector Bulkload Session.
Config for how data will be imported into TD.
The name of the TD database to import data into. The database must be created before the DWH Integration is created.
- Production AWS serverhttps://dwh-integration-api.treasuredata.com/v1/dwh/
- Production EU01 serverhttps://dwh-integration-api.eu01.treasuredata.com/v1/dwh/
- Production AP02 serverhttps://dwh-integration-api.ap02.treasuredata.com/v1/dwh/
- Production AP03 serverhttps://dwh-integration-api.ap03.treasuredata.com/v1/dwh/
- Production AWS Tokyo serverhttps://dwh-integration-api.treasuredata.co.jp/v1/dwh/
- cURL
- Java
- Go
- Ruby
- Python
- Node.js
curl -i -X POST \
https://dwh-integration-api.treasuredata.com/v1/dwh/ \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"name": "test",
"schedule_type": "daily",
"schedule_option": "10:00",
"timezone": "Asia/Tokyo",
"basic_configs": {
"td_authentication_id": 11,
"database": "database",
"table": "table",
"schema": "test"
},
"advanced_configs": [
{
"target_table": "test",
"config": {
"select": "1",
"table": "test",
"source_type": "presto"
}
}
],
"output_config": {
"type": "td",
"database": "test",
"table": "test",
"schema": "test"
}
}'{ "schedule_type": "none", "schedule_option": "string", "timezone": "string", "id": 0, "name": "string", "user_id": 0, "account_id": 0, "workflow_project_id": 0, "workflow_project_name": "string", "dwh_config_id": 0, "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z" }
- Production AWS serverhttps://dwh-integration-api.treasuredata.com/v1/dwh/{dwh_id}
- Production EU01 serverhttps://dwh-integration-api.eu01.treasuredata.com/v1/dwh/{dwh_id}
- Production AP02 serverhttps://dwh-integration-api.ap02.treasuredata.com/v1/dwh/{dwh_id}
- Production AP03 serverhttps://dwh-integration-api.ap03.treasuredata.com/v1/dwh/{dwh_id}
- Production AWS Tokyo serverhttps://dwh-integration-api.treasuredata.co.jp/v1/dwh/{dwh_id}
- cURL
- Java
- Go
- Ruby
- Python
- Node.js
curl -i -X GET \
'https://dwh-integration-api.treasuredata.com/v1/dwh/{dwh_id}' \
-H 'Authorization: YOUR_API_KEY_HERE'{ "schedule_type": "none", "schedule_option": "string", "timezone": "string", "id": 0, "name": "string", "user_id": 0, "account_id": 0, "workflow_project_id": 0, "workflow_project_name": "string", "dwh_config_id": 0, "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z" }
The schedule value for the schedule_type. For example, if schedule_type is daily, schedule_option should be a time string like 10:00.
The DWH Integration advanced configs. The configs contain array of of table configs which combine with the basic configs will be used to create Connector Bulkload Session.
- Production AWS serverhttps://dwh-integration-api.treasuredata.com/v1/dwh/{dwh_id}
- Production EU01 serverhttps://dwh-integration-api.eu01.treasuredata.com/v1/dwh/{dwh_id}
- Production AP02 serverhttps://dwh-integration-api.ap02.treasuredata.com/v1/dwh/{dwh_id}
- Production AP03 serverhttps://dwh-integration-api.ap03.treasuredata.com/v1/dwh/{dwh_id}
- Production AWS Tokyo serverhttps://dwh-integration-api.treasuredata.co.jp/v1/dwh/{dwh_id}
- cURL
- Java
- Go
- Ruby
- Python
- Node.js
curl -i -X PUT \
'https://dwh-integration-api.treasuredata.com/v1/dwh/{dwh_id}' \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"name": "test",
"schedule_type": "daily",
"schedule_option": "11:00",
"timezone": "Asia/Tokyo",
"basic_configs": {
"td_authentication_id": 11,
"database": "database",
"table": "table",
"schema": "test"
},
"advanced_configs": [
{
"target_table": "test",
"config": {
"select": "1",
"table": "test",
"source_type": "presto"
}
}
],
"output_config": {
"type": "td",
"database": "test",
"table": "test",
"schema": "test"
}
}'{ "schedule_type": "none", "schedule_option": "string", "timezone": "string", "id": 0, "name": "string", "user_id": 0, "account_id": 0, "workflow_project_id": 0, "workflow_project_name": "string", "dwh_config_id": 0, "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z" }
- Production AWS serverhttps://dwh-integration-api.treasuredata.com/v1/dwh/{dwh_id}
- Production EU01 serverhttps://dwh-integration-api.eu01.treasuredata.com/v1/dwh/{dwh_id}
- Production AP02 serverhttps://dwh-integration-api.ap02.treasuredata.com/v1/dwh/{dwh_id}
- Production AP03 serverhttps://dwh-integration-api.ap03.treasuredata.com/v1/dwh/{dwh_id}
- Production AWS Tokyo serverhttps://dwh-integration-api.treasuredata.co.jp/v1/dwh/{dwh_id}
- cURL
- Java
- Go
- Ruby
- Python
- Node.js
curl -i -X DELETE \
'https://dwh-integration-api.treasuredata.com/v1/dwh/{dwh_id}' \
-H 'Authorization: YOUR_API_KEY_HERE'{ "schedule_type": "none", "schedule_option": "string", "timezone": "string", "id": 0, "name": "string", "user_id": 0, "account_id": 0, "workflow_project_id": 0, "workflow_project_name": "string", "dwh_config_id": 0, "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z" }
- Production AWS serverhttps://dwh-integration-api.treasuredata.com/v1/dwh/{dwh_id}/bulkload_sessions
- Production EU01 serverhttps://dwh-integration-api.eu01.treasuredata.com/v1/dwh/{dwh_id}/bulkload_sessions
- Production AP02 serverhttps://dwh-integration-api.ap02.treasuredata.com/v1/dwh/{dwh_id}/bulkload_sessions
- Production AP03 serverhttps://dwh-integration-api.ap03.treasuredata.com/v1/dwh/{dwh_id}/bulkload_sessions
- Production AWS Tokyo serverhttps://dwh-integration-api.treasuredata.co.jp/v1/dwh/{dwh_id}/bulkload_sessions
- cURL
- Java
- Go
- Ruby
- Python
- Node.js
curl -i -X GET \
'https://dwh-integration-api.treasuredata.com/v1/dwh/{dwh_id}/bulkload_sessions' \
-H 'Authorization: YOUR_API_KEY_HERE'[ { "name": "string", "bulkload_session_id": 0, "target_table": "string", "configs_digest": "string" } ]
- Production AWS serverhttps://dwh-integration-api.treasuredata.com/v1/dwh/{dwh_id}/configs
- Production EU01 serverhttps://dwh-integration-api.eu01.treasuredata.com/v1/dwh/{dwh_id}/configs
- Production AP02 serverhttps://dwh-integration-api.ap02.treasuredata.com/v1/dwh/{dwh_id}/configs
- Production AP03 serverhttps://dwh-integration-api.ap03.treasuredata.com/v1/dwh/{dwh_id}/configs
- Production AWS Tokyo serverhttps://dwh-integration-api.treasuredata.co.jp/v1/dwh/{dwh_id}/configs
- cURL
- Java
- Go
- Ruby
- Python
- Node.js
curl -i -X GET \
'https://dwh-integration-api.treasuredata.com/v1/dwh/{dwh_id}/configs' \
-H 'Authorization: YOUR_API_KEY_HERE'{ "id": 0, "config_digest": "string", "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z", "basic_configs": { "type": "string", "td_authentication_id": "string", "role": "string", "warehouse": "string", "db": "string", "schema": "string", "incremental": false }, "advanced_configs": [ { … } ], "output_config": { "database": "string", "mode": "string", "time_column": "string" }, "filter_configs": [ { … } ] }
- Production AWS serverhttps://dwh-integration-api.treasuredata.com/v1/dwh/{dwh_id}/run_workflow
- Production EU01 serverhttps://dwh-integration-api.eu01.treasuredata.com/v1/dwh/{dwh_id}/run_workflow
- Production AP02 serverhttps://dwh-integration-api.ap02.treasuredata.com/v1/dwh/{dwh_id}/run_workflow
- Production AP03 serverhttps://dwh-integration-api.ap03.treasuredata.com/v1/dwh/{dwh_id}/run_workflow
- Production AWS Tokyo serverhttps://dwh-integration-api.treasuredata.co.jp/v1/dwh/{dwh_id}/run_workflow
- cURL
- Java
- Go
- Ruby
- Python
- Node.js
curl -i -X PUT \
'https://dwh-integration-api.treasuredata.com/v1/dwh/{dwh_id}/run_workflow' \
-H 'Authorization: YOUR_API_KEY_HERE'{ "status": "string", "id": "string", "index": 0, "project": { "id": "string", "name": "string" }, "workflow": { "name": "string", "id": "string" }, "sessionId": "string", "sessionUuid": "string", "sessionTime": "2019-08-24T14:15:22Z", "retryAttemptName": "string", "done": true, "success": true, "cancelRequested": true, "createdAt": "2019-08-24T14:15:22Z", "finishedAt": "2019-08-24T14:15:22Z" }
- Production AWS serverhttps://dwh-integration-api.treasuredata.com/v1/dwh/{dwh_id}/session_attempts
- Production EU01 serverhttps://dwh-integration-api.eu01.treasuredata.com/v1/dwh/{dwh_id}/session_attempts
- Production AP02 serverhttps://dwh-integration-api.ap02.treasuredata.com/v1/dwh/{dwh_id}/session_attempts
- Production AP03 serverhttps://dwh-integration-api.ap03.treasuredata.com/v1/dwh/{dwh_id}/session_attempts
- Production AWS Tokyo serverhttps://dwh-integration-api.treasuredata.co.jp/v1/dwh/{dwh_id}/session_attempts
- cURL
- Java
- Go
- Ruby
- Python
- Node.js
curl -i -X GET \
'https://dwh-integration-api.treasuredata.com/v1/dwh/{dwh_id}/session_attempts' \
-H 'Authorization: YOUR_API_KEY_HERE'{ "items": [ { … } ], "pagination": { "page": 0, "size": 0, "total_pages": 0 } }
- Production AWS serverhttps://dwh-integration-api.treasuredata.com/v1/guess
- Production EU01 serverhttps://dwh-integration-api.eu01.treasuredata.com/v1/guess
- Production AP02 serverhttps://dwh-integration-api.ap02.treasuredata.com/v1/guess
- Production AP03 serverhttps://dwh-integration-api.ap03.treasuredata.com/v1/guess
- Production AWS Tokyo serverhttps://dwh-integration-api.treasuredata.co.jp/v1/guess
- cURL
- Java
- Go
- Ruby
- Python
- Node.js
curl -i -X POST \
https://dwh-integration-api.treasuredata.com/v1/guess \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"basic_configs": {
"td_authentication_id": 11,
"type": "snowflake",
"warehouse": "test_wh",
"db": "database",
"schema": "test"
}
}'{ "basic_configs": { "type": "string", "td_authentication_id": "string", "role": "string", "warehouse": "string", "db": "string", "schema": "string", "incremental": false }, "advanced_configs": [ { … } ] }