Buckets
Register bucket
EXPERIMENTAL
Use this API call to create a new bucket from an existing resource (schema or DB - depends on backend). Available for Snowflake and BigQuery backends only. Requires the external-buckets and input-mapping-read-only-storage project features and is available in the default branch only. The bucket is registered in a background job; to see the job detail use the Job Detail endpoint.
post/v2/storage/branch/{branchId}/buckets/register
Request
- Base URLhttps://connection.keboola.com
- Auth
- API key in header X-StorageApi-Token
- or API key in header X-KBC-ManageApiToken
- or HTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
branchIdstring required
Request body
Example request
{
"name": "my-bucket",
"displayName": "my-bucket",
"stage": "in",
"backend": "snowflake",
"description": "my bucket",
"path": [
"DATABASE",
"SCHEMA"
]
}Response
Bucket registration job enqueued; returns job details.
Example response
{
"id": "22077337",
"status": "waiting",
"url": "https://connection.keboola.com/v2/storage/jobs/22077337",
"tableId": null,
"operationName": "workspaceLoad",
"operationParams": {
"workspaceId": "78423",
"preserve": false,
"input": [
{
"source": "in.c-application-testing.cashier-data",
"destination": "my-table"
}
],
"queue": "main_fast"
},
"createdTime": "2017-02-13T16:41:18+0100",
"startTime": null,
"endTime": null,
"runId": null,
"results": null,
"creatorToken": {
"id": "27978",
"description": "john.doe@keboola.com"
},
"actor": {
"type": "token",
"id": "27978",
"name": "john.doe@keboola.com",
"adminId": 1234
},
"metrics": {
"inCompressed": false,
"inBytes": 0,
"inBytesUncompressed": 0,
"outCompressed": false,
"outBytes": 0,
"outBytesUncompressed": 0
}
}Changes
No recorded changes to this operation across all 1 revision of this API.