Create Database
create-databaseCreates a database in a RawTree organization and cluster for storing unstructured data, optionally with customer-owned S3 storage for data and backups.
Instructions
Purpose: Create a database in a RawTree organization and cluster.
Returns: The created database and organization context.
Behavior: s3Storage is optional. Omit it to use the cluster's default storage. When provided, it configures customer-owned database storage that tables inherit unless they specify their own storage. Destination paths are optional; the buckets, roleArn, and externalId are required inside s3Storage.
Safety: You MUST first call list-databases and confirm the exact organization, cluster, database name, and optional S3 configuration with the user. If s3Storage is provided, first call verify-database-s3-access with the identical configuration. Never reuse a successful verification after changing any s3Storage field.
Auth: Organization-admin access is required. Authorization is enforced by the RawTree API.
Reliability: This operation is not idempotent. If the response is ambiguous, call list-databases to reconcile by organization, cluster, and database name before retrying.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name of the database to create. | |
| cluster | No | RawTree cluster to use for this operation. | |
| s3Storage | No | Optional customer-owned S3 configuration. Omit to use the cluster's default storage. | |
| organization | No | RawTree organization containing the target cluster. |