---
title: "List all debug sessions for a control plane"
url: "https://nov18-dev.movespot.fyi/apis/konnect-control-planes-configuration-dev-3/versions/76e259e8-9e78-4c0e-ab4a-3df25bddc4f1/operations/list-debug-sessions"
---

> Full API specification: https://nov18-dev.movespot.fyi/apis/konnect-control-planes-configuration-dev-3/versions/76e259e8-9e78-4c0e-ab4a-3df25bddc4f1.md

# List all debug sessions for a control plane (deprecated)

`GET` `/control-planes/{controlPlaneId}/observability/debug-sessions`

Operation ID: `list-debug-sessions`

## Path parameters

- `controlPlaneId` (string, uuid, required) - The UUID of your control plane. This variable is available in the Konnect manager.

## Query parameters

- `page[size]` (integer, optional) - The maximum number of items to include per page. The last page of a collection may include fewer items.
- `page[after]` (string, optional) - Request the next page of data, starting with the item after this parameter.

## Responses

- `200` - List of DebugSessions
- `400` - Bad Request
- `401` - Unauthorized
- `403` - Forbidden

## OpenAPI definition

```yaml
openapi: 3.1.0
info:
  title: Konnect Control Planes Configuration
  version: 3.14.0
servers:
  - url: https://us.api.konghq.com/v2
    description: United-States Production region
  - url: https://eu.api.konghq.com/v2
    description: Europe Production region
  - url: https://au.api.konghq.com/v2
    description: Australia Production region
  - url: https://me.api.konghq.com/v2
    description: Middle-East Production region
  - url: https://in.api.konghq.com/v2
    description: India Production region
  - url: https://sg.api.konghq.com/v2
    description: Singapore Production region
paths:
  /control-planes/{controlPlaneId}/observability/debug-sessions:
    get:
      operationId: list-debug-sessions
      summary: List all debug sessions for a control plane
      parameters:
        - $ref: "#/components/parameters/controlPlaneId"
        - $ref: "#/components/parameters/PageSize"
        - $ref: "#/components/parameters/PageAfter"
      responses:
        "200":
          $ref: "#/components/responses/ListDebugSessionsResponse"
        "400":
          description: Bad Request
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/BadRequestError"
        "401":
          $ref: "#/components/responses/DebugSessionUnauthorized"
        "403":
          $ref: "#/components/responses/Forbidden"
      deprecated: true
      tags:
        - Debug Sessions
security:
  - konnectAccessToken: []
  - personalAccessToken: []
components:
  parameters:
    controlPlaneId:
      name: controlPlaneId
      in: path
      required: true
      schema:
        type: string
        format: uuid
        example: 9524ec7d-36d9-465d-a8c5-83a3c9390458
      description: The UUID of your control plane. This variable is available in the
        Konnect manager.
    PageSize:
      name: page[size]
      description: The maximum number of items to include per page. The last page of a
        collection may include fewer items.
      required: false
      in: query
      allowEmptyValue: true
      schema:
        type: integer
        example: 10
    PageAfter:
      name: page[after]
      description: Request the next page of data, starting with the item after this
        parameter.
      required: false
      in: query
      allowEmptyValue: true
      schema:
        type: string
        example: ewogICJpZCI6ICJoZWxsbyB3b3JsZCIKfQ
  responses:
    ListDebugSessionsResponse:
      description: List of DebugSessions
      content:
        application/json:
          schema:
            type: object
            properties:
              meta:
                $ref: "#/components/schemas/CursorMeta"
              data:
                type: array
                items:
                  $ref: "#/components/schemas/DebugSession"
            required:
              - data
              - meta
            title: ListDebugSessionsResponse
          examples:
            Debug Sessions:
              value:
                data:
                  - id: e7a4f6c0-5777-4a37-bcb9-2d37d3b362ee
                    name: Debug Session 1
                    max_samples: 10
                    sampling_rule: http.path == "/my-path"
                    duration_secs: 300
                    capture_content:
                      - headers
                      - body
                    capture_log:
                      - error
                      - access
                    capture_traces: true
                    capture_profile:
                      cpu:
                        mode: time
                        sampling_interval: 1000
                    created_at: 2024-10-01T20:00:00.000Z
                    updated_at: 2024-10-01T20:00:00.000Z
                    targets:
                      - ae853602-23c7-4218-9071-82fdef3a1efe
                meta:
                  page:
                    size: 10
                    next: null
                    previous: null
    DebugSessionUnauthorized:
      description: Unauthorized
      content:
        application/problem+json:
          schema:
            $ref: "#/components/schemas/UnauthorizedError"
          examples:
            UnauthorizedExample:
              $ref: "#/components/examples/UnauthorizedExample"
    Forbidden:
      description: Forbidden
      content:
        application/problem+json:
          schema:
            $ref: "#/components/schemas/ForbiddenError"
          examples:
            UnauthorizedExample:
              $ref: "#/components/examples/ForbiddenExample"
  schemas:
    BadRequestError:
      allOf:
        - $ref: "#/components/schemas/BaseError"
        - type: object
          required:
            - invalid_parameters
          properties:
            invalid_parameters:
              $ref: "#/components/schemas/InvalidParameters"
    CursorMeta:
      description: Pagination metadata.
      type: object
      properties:
        page:
          $ref: "#/components/schemas/CursorMetaPage"
      required:
        - page
    DebugSession:
      type: object
      properties:
        id:
          $ref: "#/components/schemas/UUID"
        name:
          description: The optional session name.
          type: string
        max_samples:
          description: The maximum amount of samples to collect per data plane.
          type: integer
          example: 10
          default: 200
          maximum: 200
          minimum: 1
        sampling_rule:
          description: An expression used to filter the requests to sample.
          type: string
          example: http.path == "/my-path"
          nullable: true
        duration_secs:
          description: The duration of the debug session in seconds.
          type: integer
          example: 300
          default: 300
          maximum: 1800
          minimum: 10
        capture_content:
          type: array
          items:
            $ref: "#/components/schemas/CaptureContentType"
        capture_log:
          type: array
          items:
            $ref: "#/components/schemas/CaptureLogType"
        capture_traces:
          description: Determines if Traces should be captured for this session.
          type: boolean
          example: true
          default: true
        capture_profile:
          $ref: "#/components/schemas/CaptureProfileInfo"
        started_at:
          description: An ISO-8601 timestamp representation of start date.
          type: string
          format: date-time
          example: 2024-11-04T20:10:06.927Z
          readOnly: true
        stopped_at:
          description: An ISO-8601 timestamp representation of stop date.
          type: string
          format: date-time
          example: 2022-11-04T20:10:06.927Z
          readOnly: true
        completed_at:
          description: An ISO-8601 timestamp representation of completion date.
          type: string
          format: date-time
          example: 2022-11-04T20:10:06.927Z
          readOnly: true
        timed_out:
          description: Determines whether the target did not respond in time before the
            sampling time elapsed.
          type: boolean
          readOnly: true
        created_at:
          $ref: "#/components/schemas/CreatedAt"
        updated_at:
          $ref: "#/components/schemas/UpdatedAt"
        targets:
          description: The data plane nodes to collect samples from.
          type: array
          items:
            type: string
            format: uuid
            example: 5f9fd312-a987-4628-b4c5-bb4f4fddd5f7
            description: Unique identifier of the data plane node.
          minItems: 1
        payload_sanitization:
          $ref: "#/components/schemas/PayloadSanitizationConfig"
    BaseError:
      description: standard error
      type: object
      properties:
        status:
          description: >
            The HTTP status code of the error. Useful when passing the response

            body to child properties in a frontend UI. Must be returned as an
            integer.
          type: integer
          readOnly: true
        title:
          description: |
            A short, human-readable summary of the problem. It should not
            change between occurences of a problem, except for localization.
            Should be provided as "Sentence case" for direct use in the UI.
          type: string
          readOnly: true
        type:
          description: The error type.
          type: string
          readOnly: true
        instance:
          description: |
            Used to return the correlation ID back to the user, in the format
            kong:trace:<correlation_id>. This helps us find the relevant logs
            when a customer reports an issue.
          type: string
          readOnly: true
        detail:
          description: >
            A human readable explanation specific to this occurence of the
            problem.

            This field may contain request/entity data to help the user
            understand

            what went wrong. Enclose variable values in square brackets. Should
            be

            provided as "Sentence case" for direct use in the UI.
          type: string
          readOnly: true
      required:
        - status
        - title
        - instance
        - detail
      title: Error
    InvalidParameters:
      description: invalid parameters
      type: array
      items:
        oneOf:
          - $ref: "#/components/schemas/InvalidParameterStandard"
          - $ref: "#/components/schemas/InvalidParameterMinimumLength"
          - $ref: "#/components/schemas/InvalidParameterMaximumLength"
          - $ref: "#/components/schemas/InvalidParameterChoiceItem"
          - $ref: "#/components/schemas/InvalidParameterDependentItem"
      minItems: 1
      nullable: false
      uniqueItems: true
    UnauthorizedError:
      allOf:
        - $ref: "#/components/schemas/BaseError"
        - type: object
          properties:
            status:
              example: 401
            title:
              example: Unauthorized
            type:
              example: https://httpstatuses.com/401
            instance:
              example: kong:trace:1234567890
            detail:
              example: Invalid credentials
    ForbiddenError:
      allOf:
        - $ref: "#/components/schemas/BaseError"
        - type: object
          properties:
            status:
              example: 403
            title:
              example: Forbidden
            type:
              example: https://httpstatuses.com/403
            instance:
              example: kong:trace:1234567890
            detail:
              example: Forbidden
    CursorMetaPage:
      type: object
      properties:
        first:
          description: URI to the first page
          type: string
          format: path
        last:
          description: URI to the last page
          type: string
          format: path
        next:
          description: URI to the next page
          type: string
          format: path
          nullable: true
        previous:
          description: URI to the previous page
          type: string
          format: path
          nullable: true
        size:
          description: Requested page size
          type: number
          example: 10
      required:
        - size
        - next
        - previous
    UUID:
      description: Contains a unique identifier used for this resource.
      type: string
      format: uuid
      example: 5f9fd312-a987-4628-b4c5-bb4f4fddd5f7
      readOnly: true
    CaptureContentType:
      type: string
      enum:
        - headers
        - body
    CaptureLogType:
      type: string
      enum:
        - error
        - access
    CaptureProfileInfo:
      description: CaptureProfile contains the information around the profile that
        needs to be captured. Currently supports CPU profiling, with potential
        for memory profiling in the future.
      type: object
      properties:
        cpu:
          $ref: "#/components/schemas/CPUProfile"
    CreatedAt:
      description: An ISO-8601 timestamp representation of entity creation date.
      type: string
      format: date-time
      example: 2022-11-04T20:10:06.927Z
      readOnly: true
    UpdatedAt:
      description: An ISO-8601 timestamp representation of entity update date.
      type: string
      format: date-time
      example: 2022-11-04T20:10:06.927Z
      readOnly: true
    PayloadSanitizationConfig:
      description: Configuration for sanitizing sensitive data in captured payloads
      type: object
      properties:
        user_defined_rules:
          $ref: "#/components/schemas/UserDefinedRules"
    InvalidParameterStandard:
      type: object
      properties:
        field:
          type: string
          example: name
          readOnly: true
        rule:
          $ref: "#/components/schemas/InvalidRules"
        source:
          type: string
          example: body
        reason:
          type: string
          example: is a required field
          readOnly: true
      additionalProperties: false
      required:
        - field
        - reason
    InvalidParameterMinimumLength:
      type: object
      properties:
        field:
          type: string
          example: name
          readOnly: true
        rule:
          description: invalid parameters rules
          type: string
          enum:
            - min_length
            - min_digits
            - min_lowercase
            - min_uppercase
            - min_symbols
            - min_items
            - min
          nullable: false
          readOnly: true
        minimum:
          type: integer
          example: 8
        source:
          type: string
          example: body
        reason:
          type: string
          example: must have at least 8 characters
          readOnly: true
      additionalProperties: false
      required:
        - field
        - reason
        - rule
        - minimum
    InvalidParameterMaximumLength:
      type: object
      properties:
        field:
          type: string
          example: name
          readOnly: true
        rule:
          description: invalid parameters rules
          type: string
          enum:
            - max_length
            - max_items
            - max
          nullable: false
          readOnly: true
        maximum:
          type: integer
          example: 8
        source:
          type: string
          example: body
        reason:
          type: string
          example: must not have more than 8 characters
          readOnly: true
      additionalProperties: false
      required:
        - field
        - reason
        - rule
        - maximum
    InvalidParameterChoiceItem:
      type: object
      properties:
        field:
          type: string
          example: name
          readOnly: true
        rule:
          description: invalid parameters rules
          type: string
          enum:
            - enum
          nullable: false
          readOnly: true
        reason:
          type: string
          example: is a required field
          readOnly: true
        choices:
          type: array
          items: {}
          minItems: 1
          nullable: false
          readOnly: true
          uniqueItems: true
        source:
          type: string
          example: body
      additionalProperties: false
      required:
        - field
        - reason
        - rule
        - choices
    InvalidParameterDependentItem:
      type: object
      properties:
        field:
          type: string
          example: name
          readOnly: true
        rule:
          description: invalid parameters rules
          type: string
          enum:
            - dependent_fields
          nullable: true
          readOnly: true
        reason:
          type: string
          example: is a required field
          readOnly: true
        dependents:
          type: array
          items: {}
          nullable: true
          readOnly: true
          uniqueItems: true
        source:
          type: string
          example: body
      additionalProperties: false
      required:
        - field
        - rule
        - reason
        - dependents
    CPUProfile:
      description: CPUProfile contains parameters for cpu profile collection
      type: object
      properties:
        mode:
          description: The mode of cpu profile
          type: string
          example: time
          enum:
            - time
            - instruction
        sampling_interval:
          description: The interval for sampling. If the mode is 'time', this value is in
            microseconds. If the mode is 'instruction', this value is the step
            count.
          type: integer
          format: int64
          example: 1000
      required:
        - mode
    UserDefinedRules:
      description: User-defined payload sanitization rules
      type: object
      properties:
        headers:
          description: Rules for sanitizing HTTP headers
          type: array
          items:
            $ref: "#/components/schemas/HeaderSanitizationRule"
        body:
          description: Rules for sanitizing request/response body content
          type: array
          items:
            $ref: "#/components/schemas/BodySanitizationRule"
    InvalidRules:
      description: invalid parameters rules
      type: string
      enum:
        - required
        - is_array
        - is_base64
        - is_boolean
        - is_date_time
        - is_integer
        - is_null
        - is_number
        - is_object
        - is_string
        - is_uuid
        - is_fqdn
        - is_arn
        - unknown_property
        - missing_reference
        - is_label
        - matches_regex
        - invalid
        - is_supported_network_availability_zone_list
        - is_supported_network_cidr_block
        - is_supported_provider_region
        - type
      nullable: true
      readOnly: true
    HeaderSanitizationRule:
      type: object
      properties:
        name:
          description: Optional identifier for this rule
          type: string
          example: api-key
        header_name:
          description: HTTP header name to sanitize (case-insensitive)
          type: string
          example: auth-token
        scope:
          $ref: "#/components/schemas/SanitizationScope"
        action:
          $ref: "#/components/schemas/SanitizationAction"
      required:
        - header_name
        - scope
        - action
    BodySanitizationRule:
      type: object
      properties:
        name:
          description: Optional identifier for this rule
          type: string
          example: user-id
        strategy:
          $ref: "#/components/schemas/BodySanitizationStrategy"
        scope:
          $ref: "#/components/schemas/SanitizationScope"
        action:
          $ref: "#/components/schemas/SanitizationAction"
      required:
        - strategy
        - scope
        - action
    SanitizationScope:
      description: Where the rule applies
      type: array
      items:
        type: string
        enum:
          - request
          - response
      default:
        - request
        - response
    SanitizationAction:
      description: |
        - mask: Replace with "******"
      type: string
      default: mask
      enum:
        - mask
    BodySanitizationStrategy:
      description: Strategy for body content sanitization.
      oneOf:
        - $ref: "#/components/schemas/JsonPathStrategy"
        - $ref: "#/components/schemas/RegexStrategy"
    JsonPathStrategy:
      description: Strategy using JSONPath expression to locate content for sanitization.
      type: object
      properties:
        json_path:
          $ref: "#/components/schemas/JsonPathExpression"
      additionalProperties: false
      required:
        - json_path
    RegexStrategy:
      description: Strategy using regex pattern to locate content for sanitization.
      type: object
      properties:
        regex:
          $ref: "#/components/schemas/RegexPattern"
      additionalProperties: false
      required:
        - regex
    JsonPathExpression:
      description: JSONPath expression to locate the value.
      type: string
      example: $.user.email
    RegexPattern:
      description: Regex to match to locate the value.
      type: string
      format: regex
      example: \d{4}-\d{4}-\d{4}-\d{4}
  examples:
    UnauthorizedExample:
      value:
        status: 401
        title: Unauthorized
        instance: kong:trace:8347343766220159418
        detail: Unauthorized
    ForbiddenExample:
      value:
        status: 403
        title: Forbidden
        instance: kong:trace:2723154947768991354
        detail: You do not have permission to perform this action
  securitySchemes:
    konnectAccessToken:
      type: http
      scheme: bearer
      description: The Konnect access token is meant to be used by the Konnect
        dashboard and the decK CLI to authenticate with.
    personalAccessToken:
      type: http
      scheme: bearer
      description: The personal access token is meant to be used as an alternative to
        basic-auth when accessing Konnect via APIs. You can generate a Personal
        Access Token (PAT) from the personal access token page in the Konnect
        dashboard.
```
