API Stability Long-Term

The testKafkaEventForwarderV2() GraphQL mutation is used to test that a Kafka event forwarder can connect to the specified Kafka server and topic. This may create the topic on the broker if the Kafka broker is configured to create topics, automatically.

Syntax

Below is the syntax for the testKafkaEventForwarderV2() mutation field:

graphql
testKafkaEventForwarderV2(
      input: TestKafkaEventForwarder!
   ): TestResult!

Below is an example of how this mutation field might be used:

Show:
graphql
mutation {
  testKafkaEventForwarderV2( input: 
    { name: "react",
      properties: "bootstrap.servers=localhost:3456",
      description: "Kafkaesk Event",
      topic: "tester"
      } )
  { success }
}

Given Datatypes

For TestKafkaEventForwarder, there are a few parameters. Below is a list of them along with a description of each:

Table: TestKafkaEventForwarder

ParameterTypeRequiredDefaultStabilityDescription
Some arguments may be required, as indicated in the Required column. For some fields, this column indicates that a result will always be returned for this column.
Table last updated: Mar 28, 2025
descriptionstringyes  The description of the event forwarder.
enabledboolean true Whether the event forwarder is enabled.
namestringyes  The name of the event forwarder.
propertiesstringyes  The Kafka producer configuration used to forward events in the form of properties (x.y.z=abc). See Kafka Configuration.
topicstringyes  The Kafka topic to where the events should be forwarded.

Returned Datatypes

The returned datatype, TestResult has two parameters. They're listed in the table below with descriptions of each:

Table: TestResult

ParameterTypeRequiredDefaultStabilityDescription
Some arguments may be required, as indicated in the Required column. For some fields, this column indicates that a result will always be returned for this column.
Table last updated: Oct 3, 2024
messagestringyes Long-TermA message explaining the test result.
successbooleanyes Long-TermTrue if the test was a success, false otherwise.