create_database
Creates a new database in InfluxDB, with optional retention period, table, and column limits for cloud instances.
Instructions
Create a new database in InfluxDB. Database names must follow InfluxDB naming rules: alphanumeric characters, dashes (-), underscores (_), and forward slashes (/) are allowed. Must start with a letter or number. Maximum 64 characters. For Cloud Dedicated/Clustered: maxTables, maxColumnsPerTable, retentionPeriod. For Cloud Serverless: description, retentionPeriod.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name of the database to create (alphanumeric, -, _, / allowed; max 64 chars; must start with letter/number) | |
| maxTables | No | Maximum number of tables (Cloud Dedicated/Clustered only, default: 500) | |
| description | No | Description for the bucket/database (Cloud Serverless only) | |
| retentionPeriod | No | Retention period in nanoseconds (Cloud Dedicated/Clustered: default 0 = no expiration, Cloud Serverless: default 30 days) | |
| maxColumnsPerTable | No | Maximum columns per table (Cloud Dedicated/Clustered only, default: 200) |