/
Create a bulk load sessio...
Creates a bulk load session.
Security
ApiKeyAuth
- https://api.treasuredata.com/v3https://api.treasuredata.com/v3/bulk_loads
- https://api.treasuredata.co.jp/v3https://api.treasuredata.co.jp/v3/bulk_loads
- https://api.ap02.treasuredata.com/v3https://api.ap02.treasuredata.com/v3/bulk_loads
- https://api.eu01.treasuredata.com/v3https://api.eu01.treasuredata.com/v3/bulk_loads
curl -i -X POST \
https://api.treasuredata.com/v3/bulk_loads \
-H 'Authorization: TD1 <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/x-www-form-urlencoded' \
-d '{
"config": {
"in": {
"type": "postgresql",
"host": "127.0.0.1",
"port": 3306,
"user": "testuser",
"table": "table",
"password": "password",
"schema": "test_schema",
"database": "database",
"column_options": {
"id": {
"type": "long"
},
"name": {
"type": "string"
}
}
},
"out": {
"database": "database_out",
"endpoint": "api.treasuredata.com",
"mode": "append",
"table": "table_out",
"type": "td"
},
"filters": [
],
"exec": {
}
},
"cron": "@daily",
"name": "test",
"timezone": "UTC",
"database": "aa100bjt5",
"table": "av03w9klv",
"time_column": "test"
}'OK
Response
- string or null
- DateTimeISO8601
{ "id": 43, "name": "string", "cron": "string", "timezone": "UTC", "delay": 0, "start_at": "string", "database": "Alpha", "table": "Bravo", "config": { "in": { … }, "filters": [ … ], "exec": { … }, "out": { … } }, "config_diff": {} }