DigitalOcean-public.v2-new_Databases
List Topics for a Kafka Cluster
To list all of a Kafka cluster's topics, send a GET request to /v2/databases/$DATABASE_ID/topics.
The result will be a JSON object with a topics key.
get/v2/databases/{database_cluster_uuid}/topics
Path parameters
database_cluster_uuidstring uuid required
A unique identifier for a database cluster.
Response
A JSON object with a key of topics.
Example response
{
"topics": [
{
"name": "events",
"replication_factor": 2,
"partition_count": 3,
"state": "active"
}
]
}