Apache Kafka (Confluent Cloud)

App · 14 actions

Manage a Confluent Cloud Kafka cluster: list, create and delete topics, read and change topic settings, produce records, and list consumer groups.

Actions

ActionWhat it does
Add partitions to topicRaise a topic's partition count.
Create topicCreate a topic, or check that it could be created without creating it.
Delete topicDelete a topic and every record in it.
Get clusterCheck the connection and get the cluster's id and Confluent resource name.
Get partitionGet one partition of a topic.
Get topicGet a topic's partition count and replication factor.
Get topic settingGet one setting of a topic.
List consumer groupsList the cluster's consumer groups, optionally by state or name.
List partitionsList a topic's partitions and the broker leading each.
List topic settingsList every setting of a topic with its value and whether it is the default.
List topicsList the cluster's topics, optionally only those whose name contains some text.
Produce recordWrite one record to a topic and get the partition and offset it landed at.
Reset topic settingPut one setting of a topic back to the cluster's default.
Set topic settingsChange one or more settings of a topic together.

Add partitions to topic

Raise a topic's partition count. Kafka never lowers it, and records already written stay where they are.

Inputs

Topictopic_nametextRequired
The topic. Pick one, or type or chain its name.
New partition countpartitions_countnumberRequired
The total to have, which must be more than it has now.From 1 to 100000.

Outputs

topicobject
The topic
Example output
{
  "topic": {
    "cluster_id": "lkc-abc123",
    "is_internal": false,
    "partitions_count": 12,
    "replication_factor": 3,
    "topic_name": "orders"
  }
}

Create topic

Create a topic, or check that it could be created without creating it. The cluster chooses the replication factor.

Inputs

Topic nametopic_nametextRequired
Letters, digits, '.', '_' and '-' only.
Partitionspartitions_countnumber
How many partitions. Leave empty for the cluster's default.From 1 to 100000.
Topic settingsconfigsobject
Settings for the new topic, each a name and a value, for example retention.ms = 604800000.
Only check, don't createvalidate_onlytrue/false
Run Confluent's checks and stop before creating the topic.Default: false.

Outputs

topicobject
The topic
validatedtrue/false
True if the topic was only checked, not created
Example output
{
  "topic": {
    "cluster_id": "lkc-abc123",
    "is_internal": false,
    "partitions_count": 6,
    "replication_factor": 3,
    "topic_name": "orders"
  },
  "validated": false
}

Delete topic

Delete a topic and every record in it. This cannot be undone.

Inputs

Topictopic_nametextRequired
The topic. Pick one, or type or chain its name.

Outputs

deletedtrue/false
Always true once deleted
topic_nametext
The topic deleted
Example output
{
  "deleted": true,
  "topic_name": "orders"
}

Get cluster

Check the connection and get the cluster's id and Confluent resource name.

Inputs

None.

Outputs

cluster_idtext
The cluster id
resource_nametext
The cluster's Confluent resource name
rest_endpointtext
The REST endpoint
Example output
{
  "cluster_id": "lkc-abc123",
  "resource_name": "crn://confluent.cloud/organization=1/environment=env-1/cloud-cluster=lkc-abc123/kafka=lkc-abc123",
  "rest_endpoint": "https://pkc-abc12.us-east-1.aws.confluent.cloud:443"
}

Get partition

Get one partition of a topic.

Inputs

Topictopic_nametextRequired
The topic. Pick one, or type or chain its name.
Partitionpartition_idnumberRequired
The partition number, starting at 0.From 0 to 100000.

Outputs

partitionobject
The partition
Example output
{
  "partition": {
    "leader_broker_id": 1,
    "partition_id": 0,
    "topic_name": "orders"
  }
}

Get topic

Get a topic's partition count and replication factor.

Inputs

Topictopic_nametextRequired
The topic. Pick one, or type or chain its name.

Outputs

topicobject
The topic
Example output
{
  "topic": {
    "cluster_id": "lkc-abc123",
    "is_internal": false,
    "partitions_count": 6,
    "replication_factor": 3,
    "topic_name": "orders"
  }
}

Get topic setting

Get one setting of a topic.

Inputs

Topictopic_nametextRequired
The topic. Pick one, or type or chain its name.
Setting nameconfig_nametextRequired
The topic setting, such as retention.ms or cleanup.policy.

Outputs

configobject
The setting
topic_nametext
The topic
Example output
{
  "config": {
    "is_default": true,
    "is_read_only": false,
    "is_sensitive": false,
    "name": "retention.ms",
    "source": "DEFAULT_CONFIG",
    "value": "604800000"
  },
  "topic_name": "orders"
}

List consumer groups

List the cluster's consumer groups, optionally by state or name.

Inputs

Statestatetext
Only groups in this state. Leave empty for all.One of: STABLE (Stable (members are consuming)), EMPTY (Empty (no members)), PREPARING_REBALANCE (Preparing to rebalance), COMPLETING_REBALANCE (Completing a rebalance), ASSIGNING (Assigning partitions), RECONCILING, DEAD.
Name containsname_containstext
Only those whose name contains this text. Leave empty for all.

Outputs

consumer_groupslist
The consumer groups
countnumber
How many
Example output
{
  "consumer_groups": [
    {
      "consumer_group_id": "billing-service",
      "is_mixed_consumer_group": false,
      "is_simple": false,
      "partition_assignor": "uniform",
      "state": "STABLE",
      "type": "CLASSIC"
    }
  ],
  "count": 1
}

List partitions

List a topic's partitions and the broker leading each.

Inputs

Topictopic_nametextRequired
The topic. Pick one, or type or chain its name.

Outputs

countnumber
How many
partitionslist
The partitions
topic_nametext
The topic
Example output
{
  "count": 1,
  "partitions": [
    {
      "leader_broker_id": 1,
      "partition_id": 0,
      "topic_name": "orders"
    }
  ],
  "topic_name": "orders"
}

List topic settings

List every setting of a topic with its value and whether it is the default.

Inputs

Topictopic_nametextRequired
The topic. Pick one, or type or chain its name.
Name containsname_containstext
Only those whose name contains this text. Leave empty for all.

Outputs

configslist
The settings
countnumber
How many
topic_nametext
The topic
Example output
{
  "configs": [
    {
      "is_default": true,
      "is_read_only": false,
      "is_sensitive": false,
      "name": "retention.ms",
      "source": "DEFAULT_CONFIG",
      "value": "604800000"
    }
  ],
  "count": 1,
  "topic_name": "orders"
}

List topics

List the cluster's topics, optionally only those whose name contains some text.

Inputs

Name containsname_containstext
Only those whose name contains this text. Leave empty for all.
Include internal topicsinclude_internaltrue/false
Also list Kafka's own internal topics, such as __consumer_offsets.Default: false.

Outputs

countnumber
How many
topicslist
The topics
Example output
{
  "count": 1,
  "topics": [
    {
      "cluster_id": "lkc-abc123",
      "is_internal": false,
      "partitions_count": 6,
      "replication_factor": 3,
      "topic_name": "orders"
    }
  ]
}

Produce record

Write one record to a topic and get the partition and offset it landed at. Running it twice writes two records.

Inputs

Topictopic_nametextRequired
The topic. Pick one, or type or chain its name.
Valuevaluetext
The record's contents. Give a value, a key, or both.
Value formatvalue_formattext
How to read the value. JSON must be valid JSON; binary must be base64.One of: STRING (Text (default)), JSON, BINARY (Binary (as base64 text)). Default: STRING.
Keykeytext
The record's key. Records with the same key go to the same partition.
Key formatkey_formattext
How to read the key.One of: STRING (Text (default)), JSON, BINARY (Binary (as base64 text)). Default: STRING.
Partitionpartition_idnumber
Send to this partition. Leave empty to let Kafka choose from the key.From 0 to 100000.
Headersheadersobject
Your own header names and text values to attach to the record.
Timestamptimestampdate and time
The record's time. Leave empty to use the time it is received.

Outputs

key_sizenumber
Bytes in the key
offsetnumber
The record's offset
partition_idnumber
The partition
timestamptext
The record's time
topic_nametext
The topic written to
value_sizenumber
Bytes in the value
Example output
{
  "key_size": 5,
  "offset": 42,
  "partition_id": 0,
  "timestamp": "2026-11-03T12:00:00.000Z",
  "topic_name": "orders",
  "value_size": 17
}

Reset topic setting

Put one setting of a topic back to the cluster's default.

Inputs

Topictopic_nametextRequired
The topic. Pick one, or type or chain its name.
Setting nameconfig_nametextRequired
The topic setting, such as retention.ms or cleanup.policy.

Outputs

config_nametext
The setting reset
resettrue/false
Always true once reset
topic_nametext
The topic
Example output
{
  "config_name": "retention.ms",
  "reset": true,
  "topic_name": "orders"
}

Set topic settings

Change one or more settings of a topic together. Settings not named stay as they are.

Inputs

Topictopic_nametextRequired
The topic. Pick one, or type or chain its name.
Topic settingsconfigsobjectRequired
Settings to apply, each a name and a value, for example retention.ms = 604800000 or cleanup.policy = compact.

Outputs

countnumber
How many
topic_nametext
The topic
updatedlist
Names of the settings changed
Example output
{
  "count": 1,
  "topic_name": "orders",
  "updated": [
    "retention.ms"
  ]
}

On this page