Create Database
create-databasePurpose: Create a database in a RawTree organization and cluster.
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 all tables in the database inherit. Destination paths are optional; data and backups (each with a bucket), plus roleArn are required inside s3Storage. The API reuses the cluster's saved External ID; do not supply an identity override.
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. |