openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/DB6_PM_CLPCOMMANDS:
    post:
      tags:
      - SDB6PM
      summary: 'DB6: Output of DB2 CLP Commands'
      operationId: /rfc/DB6_PM_CLPCOMMANDS
      requestBody:
        content:
          application/json:
            schema:
              properties:
                CONNECTION:
                  type: string
                  maxLength: 30
                  description: Logical name for a database connection
                FUNCTIONID:
                  type: integer
                  format: int32
                  description: Function ID of CLP Command
                PARTITN:
                  type: integer
                  format: int32
                  description: Partition Number
                EXEC_PROTOCOL:
                  type: array
                  items:
                    type: object
                    properties:
                      LENGTH:
                        type: string
                        maxLength: 3
                        description: Length of protocol message in external program
                      MESSAGE:
                        type: string
                        maxLength: 128
                        description: Log message from external program
              required:
              - FUNCTIONID
              - PARTITN
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  CLPCMDHOST:
                    type: string
                    maxLength: 32
                    description: Host on which the CLP command was executed
                  EXEC_PROTOCOL:
                    type: array
                    items:
                      type: object
                      properties:
                        LENGTH:
                          type: string
                          maxLength: 3
                          description: Length of protocol message in external program
                        MESSAGE:
                          type: string
                          maxLength: 128
                          description: Log message from external program
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
