Note: the DWH Integration will not automatically create the TD database and tables. You need to create the TD database and tables before creating the DWH Integration.
Security
apiKey
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/
- 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 -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"
}
}'DWH Integration Created
The schedule value for the schedule_type. For example, if schedule_type is daily, schedule_option should be a time string like 10:00.
Response
{ "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" }