curl -X POST \ https://api.upstash.com/v2/kafka/topic \ -u 'EMAIL:API_KEY' \ -d '{"name":"test-kafka-topic","partitions":1,"retention_time":1234,"retention_size":4567,"max_message_size":8912,"cleanup_policy":"delete","cluster_id":"9bc0e897-cbd3-4997-895a-fd77ad00aec9"}'
{ "topic_id": "0f458c88-2dc6-4f69-97bb-05060e0be934", "topic_name": "test-kafka-topic", "cluster_id": "9bc0e897-cbd3-4997-895a-fd77ad00aec9", "region": "eu-west-1", "creation_time": 1643981720, "state": "active", "partitions": 1, "multizone": true, "tcp_endpoint": "sharing-mastodon-12819-eu1-kafka.upstashdev.com", "rest_endpoint": "sharing-mastodon-12819-eu1-rest-kafka.upstashdev.com", "username": "c2hhcmluZy1tYXN0b2Rvbi0xMjgxOSRV1ipriSBOwd0PHzw2KAs_cDrTXzvUKIs", "password": "eu8K3rYRS-ma0AsINDo7MMemmHjjRSldHJcG3c1LUMZkFfdSf9u_Kd4xCWO9_oQc", "cleanup_policy": "delete", "retention_size": 4567, "retention_time": 1234, "max_message_size": 8912 }
This endpoint gets details of a kafka topic.
active
deleted
compact
delete
Was this page helpful?