Skip to contentManaged Kafka is live: Apache Kafka on AWS for half the cost of MSK

Kafka clusters

Get Kafka topic detail

GET/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

  • Authorizationstringheaderrequired

    API 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

  • topicstringrequired
  • uuidstringrequired

Query parameters

  • forceRefreshboolean

Responses

200OKapplication/json

  • managedobject

    The topic's replication and per-partition leader and offsets.

    Show child attributes
    • partitionsobject[]required
      Show child attributes
      • inSyncCountintegerrequired

        How many copies are caught up with the leader, the leader included.

      • latestOffsetinteger

        The offset the next message gets. Missing when the brokers didn't answer for it.

      • leaderIDinteger

        The 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
    • replicationFactorintegerrequired

      How many copies of each partition the brokers keep.

  • partitionSizesobject[] | nullrequired
    Show child attributes
    • partitioninteger<int32>required
    • sizeBytesinteger<int64>required
  • pipelinesobject[] | nullrequired
    Show child attributes
    • namestringrequired
    • uuidstringrequired
  • topicobjectrequired
    Show child attributes
    • artieManagedbooleanrequired

      Whether Artie manages this topic: a CDC topic under the company prefix outside the customer namespace, or a Kafka-internal __ topic.

    • localRetentionMSstring

      How 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.

    • partitionCountintegerrequired
    • retentionMSstringrequired
    • sourceNamestring
    • tableNamestring
    • tieredStorageobjectrequired
      Show child attributes
      • canTierbooleanrequired

        Whether 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.

      • statestringrequired

        off, on or paused, from the topic's remote.storage.enable and remote.log.copy.disable configs.

        Available options: off, on, paused

      • switchOnbooleanrequired

        Whether 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

200 OK
{
  "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?