Get connector status Run in API Explorer

GET /v1/kafka-connect/clusters/{cluster_name}/connectors/{name}/status

Gets the current status of the connector, including the state for each of its tasks, error information, etc.

Path parameters

  • cluster_name string Required

    Unique name of target Connect cluster. For Redpanda Cloud, use redpanda.

  • name string Required

    Name of connector.

Responses

  • 200 application/json

    OK

    Hide response attribute Show response attribute object
    • status object
      Hide status attributes Show status attributes object
      • connector object
        Hide connector attributes Show connector attributes object
        • state string

          State of the connector instance.

        • trace string

          String value of stack trace.

        • worker_id string

          ID of worker that the connector is assigned to.

      • errors array[object]

        List of parsed connectors' and tasks' errors.

        Hide errors attributes Show errors attributes object
        • content string

          Detailed description of the error.

        • title string

          Short description of the error.

        • type string

          Error level.

          Values are TYPE_ERROR or TYPE_WARNING.

      • holistic_state string

        State of a connector or one of its tasks, as described in the Kafka Connect documentation. Takes into account not just the state of the connector instance itself, but also the tasks within the connector.

        • CONNECTOR_HOLISTIC_STATE_PAUSED: The connector or task has been administratively paused.
        • CONNECTOR_HOLISTIC_STATE_RESTARTING: The connector or task is restarting.
        • CONNECTOR_HOLISTIC_STATE_DESTROYED: The connector is destroyed, regardless of any tasks.
        • CONNECTOR_HOLISTIC_STATE_STOPPED: The connector or task has been stopped.
        • CONNECTOR_HOLISTIC_STATE_UNASSIGNED: - The connector or task has not yet been assigned to a worker,
          • THe connector is running, but there are unassigned tasks.
        • CONNECTOR_HOLISTIC_STATE_HEALTHY: The connector is running, > 0 tasks, all of them in running state.
        • CONNECTOR_HOLISTIC_STATE_UNHEALTHY: - The connector has failed,
          • The connector is running, but has no tasks,
          • Connector is running and has tasks, but all tasks have failed.
        • CONNECTOR_HOLISTIC_STATE_DEGRADED: The connector is running and has tasks, and at least one task, but not all, have failed.
        • CONNECTOR_HOLISTIC_STATE_UNKNOWN: The connector or task state could not be determined.

        Values are CONNECTOR_HOLISTIC_STATE_PAUSED, CONNECTOR_HOLISTIC_STATE_RESTARTING, CONNECTOR_HOLISTIC_STATE_DESTROYED, CONNECTOR_HOLISTIC_STATE_STOPPED, CONNECTOR_HOLISTIC_STATE_UNASSIGNED, CONNECTOR_HOLISTIC_STATE_HEALTHY, CONNECTOR_HOLISTIC_STATE_UNHEALTHY, CONNECTOR_HOLISTIC_STATE_DEGRADED, or CONNECTOR_HOLISTIC_STATE_UNKNOWN.

      • name string

        Name of connector.

      • tasks array[object]
        Hide tasks attributes Show tasks attributes object
        • id integer(int32)

          The connector task ID.

        • state string

          State of connector task.

        • trace string

          String value of stack trace.

        • worker_id string

          ID of worker that the task is assigned to.

      • type string

        Type of connector (sink or source).

  • 401 application/json

    Unauthenticated.

    Hide response attributes Show response attributes object
    • code string(int32)

      RPC status code, as described here.

      Values are OK, CANCELLED, UNKNOWN, INVALID_ARGUMENT, DEADLINE_EXCEEDED, NOT_FOUND, ALREADY_EXISTS, PERMISSION_DENIED, UNAUTHENTICATED, RESOURCE_EXHAUSTED, FAILED_PRECONDITION, ABORTED, OUT_OF_RANGE, UNIMPLEMENTED, INTERNAL, UNAVAILABLE, or DATA_LOSS.

    • details array[object]

      A list of messages that carries the error details.

      Details of the error.

      Details of the error.

      One of:
    • message string

      Detailed error message. No compatibility guarantees are given for the text contained in this message.

  • 500 application/json

    Internal Server Error. Reach out to support.

    Hide response attributes Show response attributes object
    • code string(int32)

      RPC status code, as described here.

      Values are OK, CANCELLED, UNKNOWN, INVALID_ARGUMENT, DEADLINE_EXCEEDED, NOT_FOUND, ALREADY_EXISTS, PERMISSION_DENIED, UNAUTHENTICATED, RESOURCE_EXHAUSTED, FAILED_PRECONDITION, ABORTED, OUT_OF_RANGE, UNIMPLEMENTED, INTERNAL, UNAVAILABLE, or DATA_LOSS.

    • details array[object]

      A list of messages that carries the error details.

      Details of the error.

      Details of the error.

      One of:
    • message string

      Detailed error message. No compatibility guarantees are given for the text contained in this message.

  • default application/json

    An unexpected error response.

    Hide response attributes Show response attributes object
    • code string(int32)

      RPC status code, as described here.

      Values are OK, CANCELLED, UNKNOWN, INVALID_ARGUMENT, DEADLINE_EXCEEDED, NOT_FOUND, ALREADY_EXISTS, PERMISSION_DENIED, UNAUTHENTICATED, RESOURCE_EXHAUSTED, FAILED_PRECONDITION, ABORTED, OUT_OF_RANGE, UNIMPLEMENTED, INTERNAL, UNAVAILABLE, or DATA_LOSS.

    • details array[object]

      A list of messages that carries the error details.

      Details of the error.

      Details of the error.

      One of:
    • message string

      Detailed error message. No compatibility guarantees are given for the text contained in this message.

GET /v1/kafka-connect/clusters/{cluster_name}/connectors/{name}/status
curl \
 --request GET 'https://{dataplane_api_subdomain}.cloud.redpanda.com/v1/kafka-connect/clusters/{cluster_name}/connectors/{name}/status' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "status": {
    "connector": {
      "state": "string",
      "trace": "string",
      "worker_id": "string"
    },
    "errors": [
      {
        "content": "string",
        "title": "string",
        "type": "TYPE_ERROR"
      }
    ],
    "holistic_state": "CONNECTOR_HOLISTIC_STATE_PAUSED",
    "name": "string",
    "tasks": [
      {
        "id": 42,
        "state": "string",
        "trace": "string",
        "worker_id": "string"
      }
    ],
    "type": "string"
  }
}
Response examples (401)
{
  "code": "OK",
  "details": [
    {
      "@type": "type.googleapis.com/google.rpc.BadRequest",
      "field_violations": [
        {
          "description": "string",
          "field": "string"
        }
      ]
    }
  ],
  "message": "string"
}
Response examples (500)
{
  "code": "OK",
  "details": [
    {
      "@type": "type.googleapis.com/google.rpc.BadRequest",
      "field_violations": [
        {
          "description": "string",
          "field": "string"
        }
      ]
    }
  ],
  "message": "string"
}
Response examples (default)
{
  "code": "OK",
  "details": [
    {
      "@type": "type.googleapis.com/google.rpc.BadRequest",
      "field_violations": [
        {
          "description": "string",
          "field": "string"
        }
      ]
    }
  ],
  "message": "string"
}