create-bucket
Create a new bucket in InfluxDB for storing time-series data, specifying the organization ID, bucket name, and optional retention period for data management.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
name | Yes | The bucket name | |
orgID | Yes | The organization ID | |
retentionPeriodSeconds | No | Retention period in seconds (optional) |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"name": {
"description": "The bucket name",
"type": "string"
},
"orgID": {
"description": "The organization ID",
"type": "string"
},
"retentionPeriodSeconds": {
"description": "Retention period in seconds (optional)",
"type": "number"
}
},
"required": [
"name",
"orgID"
],
"type": "object"
}