ClickHouse
- POST
- /workspaces
- /:workspace
- /targets
Create a new ClickHouse deployment target
Request example
curl -X POST "https://api.buddy.works/workspaces/:workspace/targets" \
-H "Authorization: Bearer <YOUR-TOKEN>" \
-H "Content-Type: application/json" \
-d '{
"type": "CLICKHOUSE",
"identifier": "production-clickhouse",
"name": "Production ClickHouse",
"host": "clickhouse.example.com",
"port": "9000",
"database": "myapp",
"secure": false,
"auth": {
"method": "PASSWORD",
"username": "deploy_user",
"password": "secured"
},
"tags": [
"clickhouse",
"production"
]
}'STATUS201 Created