Kafka clusters
Get Kafka topic detail
/kafka-clusters/{uuid}/topics/{topic}Retrieves topic metadata and partition sizes. Includes the owning source reader name, table name, and pipeline names and UUIDs when the topic belongs to an Artie pipeline.
Authorizations
AuthorizationstringheaderrequiredAPI key passed as a Bearer token in the Authorization header.
Request
curl --request GET \
--url https://api.artie.com/kafka-clusters/{uuid}/topics/{topic} \
--header 'Authorization: Bearer <token>'Path parameters
topicstringrequireduuidstringrequired
Query parameters
forceRefreshboolean
Responses
200OKapplication/json
managedobjectThe topic's replication and per-partition leader and offsets.
Show child attributes
partitionsobject[]requiredShow child attributes
inSyncCountintegerrequiredHow many copies are caught up with the leader, the leader included.
latestOffsetintegerThe offset the next message gets. Missing when the brokers didn't answer for it.
leaderIDintegerThe broker that serves the partition. Missing while it has no leader, except that a leaderless partition whose last in-sync copy was broker 0 still shows 0.
partitionintegerrequired
replicationFactorintegerrequiredHow many copies of each partition the brokers keep.
partitionSizesobject[] | nullrequiredShow child attributes
partitioninteger<int32>requiredsizeBytesinteger<int64>required
pipelinesobject[] | nullrequiredShow child attributes
namestringrequireduuidstringrequired
topicobjectrequiredShow child attributes
artieManagedbooleanrequiredWhether Artie manages this topic: a CDC topic under the company prefix outside the customer namespace, or a Kafka-internal __ topic.
localRetentionMSstringHow long a tiered topic keeps data on broker disks (local.retention.ms). -2 means the same as retention. Left out when the brokers don't report it.
partitionCountintegerrequiredretentionMSstringrequiredsourceNamestringtableNamestringtieredStorageobjectrequiredShow child attributes
canTierbooleanrequiredWhether tiered storage can be on for this topic. Kafka refuses it on compacted topics, and Artie keeps it off Kafka's and Cruise Control's own topics and topics whose retention can't be read.
statestringrequiredoff, on or paused, from the topic's remote.storage.enable and remote.log.copy.disable configs.
switchOnbooleanrequiredWhether the topic's tiered storage switch is on. On a Managed Kafka cluster it's the topic's own switch, else the cluster's tierAllTopics; elsewhere it's whether the topic is tiered (on or paused).
topicstringrequired
404Not Found
500Internal Server Error
{
"managed": {
"partitions": [
{
"inSyncCount": 123,
"latestOffset": 123,
"leaderID": 123,
"partition": 123
}
],
"replicationFactor": 123
},
"partitionSizes": [
{
"partition": 123,
"sizeBytes": 123
}
],
"pipelines": [
{
"name": "<string>",
"uuid": "<string>"
}
],
"topic": {
"artieManaged": true,
"localRetentionMS": "<string>",
"partitionCount": 123,
"retentionMS": "<string>",
"sourceName": "<string>",
"tableName": "<string>",
"tieredStorage": {
"canTier": true,
"state": "off",
"switchOn": true
},
"topic": "<string>"
}
}Was this page helpful?
- Need help? Message us on Slack or email [email protected].
- Want a walkthrough? Book a demo.
- LLM? Read llms.txt.