create_kafka_topic
Create a Kafka topic with configurable partitions, replication, and retention settings for Vultr-managed Kafka databases.
Instructions
Create a Kafka topic (Kafka databases only).
Args: database_id: The Kafka database ID or label name: Topic name partitions: Number of partitions replication: Replication factor retention_hours: Retention time in hours retention_bytes: Retention size in bytes
Returns: Created topic information
Input Schema
Name | Required | Description | Default |
---|---|---|---|
database_id | Yes | ||
name | Yes | ||
partitions | No | ||
replication | No | ||
retention_bytes | No | ||
retention_hours | No |
Input Schema (JSON Schema)
{
"properties": {
"database_id": {
"title": "Database Id",
"type": "string"
},
"name": {
"title": "Name",
"type": "string"
},
"partitions": {
"default": 3,
"title": "Partitions",
"type": "integer"
},
"replication": {
"default": 2,
"title": "Replication",
"type": "integer"
},
"retention_bytes": {
"default": 1073741824,
"title": "Retention Bytes",
"type": "integer"
},
"retention_hours": {
"default": 168,
"title": "Retention Hours",
"type": "integer"
}
},
"required": [
"database_id",
"name"
],
"type": "object"
}