List Connect cluster secrets Run in API Explorer

GET /v1/kafka-connect/clusters/{cluster_name}/secrets

List Kafka Connect cluster secrets. Optional: filter based on secret name and labels.

Path parameters

  • cluster_name string Required

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

Query parameters

  • filter.name_contains string

    Substring match on secret name. Case-sensitive.

  • filter.labels[string][string] string

    This is a request variable of the map type. The query format is "map_name[key]=value", e.g. If the map name is Age, the key type is string, and the value type is integer, the query parameter is expressed as Age["bob"]=18

  • filter.scopes array[string]

    Secret scopes to search for

    Values are SCOPE_REDPANDA_CONNECT or SCOPE_REDPANDA_CLUSTER.

  • page_token string

    Value of the next_page_token field returned by the previous response. If not provided, the system assumes the first page is requested.

  • page_size integer(int32)

    Limit the paginated response to a number of items. Defaults to 100. Use -1 to disable pagination.

Responses

  • 200 application/json

    OK

    Hide response attributes Show response attributes object
    • next_page_token string

      Token to retrieve the next page.

    • secrets array[object]

      Secrets retrieved.

      Defines the secret resource.

      Hide secrets attributes Show secrets attributes object
      • id string

        Secret identifier.

      • labels object

        Secret labels.

        Hide labels attribute Show labels attribute object
        • * string Additional properties
      • scopes array[string]

        Defines the scope of a secret.

        Values are SCOPE_REDPANDA_CONNECT or SCOPE_REDPANDA_CLUSTER.

  • 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}/secrets
curl \
 --request GET 'https://{dataplane_api_subdomain}.cloud.redpanda.com/v1/kafka-connect/clusters/{cluster_name}/secrets' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "next_page_token": "string",
  "secrets": [
    {
      "id": "string",
      "labels": {
        "additionalProperty1": "string",
        "additionalProperty2": "string"
      },
      "scopes": [
        "SCOPE_REDPANDA_CONNECT"
      ]
    }
  ]
}
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"
}