openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/GET_SQLERRORLOGS_MSQ:
    post:
      tags:
      - SFMSS_ERRORLOGS
      summary: retrieve text of SQLServer errorlogs and the sqlagent.out
      operationId: /rfc/GET_SQLERRORLOGS_MSQ
      requestBody:
        content:
          application/json:
            schema:
              properties:
                AGTSTARTLINE:
                  type: integer
                  format: int32
                  description: MS SQL server - size of the log file
                CON_NAME:
                  type: string
                  default: DEFAULT
                  maxLength: 30
                  description: Logical name for a database connection
                ERRSTARTLINE:
                  type: integer
                  format: int32
                  description: MS SQL server - size of the log file
                NUMAGTLINES:
                  type: integer
                  format: int32
                  description: MS SQL server - size of the log file
                NUMAGTLOG:
                  type: integer
                  format: int32
                  description: number of SQL Server sql error or sql agent log to display
                NUMERRORLINES:
                  type: integer
                  format: int32
                  description: MS SQL server - size of the log file
                NUMERRORLOG:
                  type: integer
                  format: int32
                  description: number of SQL Server sql error or sql agent log to display
                SCHEMA:
                  type: string
                  default: ' '
                  maxLength: 128
                  description: Schema name
                AGENTLIST:
                  type: array
                  items:
                    type: object
                    properties:
                      ERROUTPUT:
                        type: string
                        maxLength: 256
                        description: MS SQL server - output line of sql server error log
                AGTSTATS:
                  type: array
                  items:
                    type: object
                    properties:
                      NUMLOG:
                        type: integer
                        format: int32
                        description: number of SQL Server sql error or sql agent log to display
                      LOGDATE:
                        type: string
                        maxLength: 20
                        description: ''
                      NAMELOG:
                        type: string
                        maxLength: 520
                        description: MS SQL server database physical file name with full path
                      FLAG17:
                        type: string
                        maxLength: 1
                        description: SQL Server flag 'Y' if true , 'N' if false
                      FLAG20:
                        type: string
                        maxLength: 1
                        description: SQL Server flag 'Y' if true , 'N' if false
                      FILEKB:
                        type: integer
                        format: int32
                        description: Size of the database transaction log in MB.
                      NUMLINES:
                        type: integer
                        format: int32
                        description: Size of the database transaction log in MB.
                LOGLIST:
                  type: array
                  items:
                    type: object
                    properties:
                      ERROUTPUT:
                        type: string
                        maxLength: 256
                        description: MS SQL server - output line of sql server error log
                LOGSTATS:
                  type: array
                  items:
                    type: object
                    properties:
                      NUMLOG:
                        type: integer
                        format: int32
                        description: number of SQL Server sql error or sql agent log to display
                      LOGDATE:
                        type: string
                        maxLength: 20
                        description: ''
                      NAMELOG:
                        type: string
                        maxLength: 520
                        description: MS SQL server database physical file name with full path
                      FLAG17:
                        type: string
                        maxLength: 1
                        description: SQL Server flag 'Y' if true , 'N' if false
                      FLAG20:
                        type: string
                        maxLength: 1
                        description: SQL Server flag 'Y' if true , 'N' if false
                      FILEKB:
                        type: integer
                        format: int32
                        description: Size of the database transaction log in MB.
                      NUMLINES:
                        type: integer
                        format: int32
                        description: Size of the database transaction log in MB.
              required:
              - AGTSTARTLINE
              - ERRSTARTLINE
              - NUMAGTLINES
              - NUMAGTLOG
              - NUMERRORLINES
              - NUMERRORLOG
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  AGENTLIST:
                    type: array
                    items:
                      type: object
                      properties:
                        ERROUTPUT:
                          type: string
                          maxLength: 256
                          description: MS SQL server - output line of sql server error log
                  AGTSTATS:
                    type: array
                    items:
                      type: object
                      properties:
                        NUMLOG:
                          type: integer
                          format: int32
                          description: number of SQL Server sql error or sql agent log to display
                        LOGDATE:
                          type: string
                          maxLength: 20
                          description: ''
                        NAMELOG:
                          type: string
                          maxLength: 520
                          description: MS SQL server database physical file name with full path
                        FLAG17:
                          type: string
                          maxLength: 1
                          description: SQL Server flag 'Y' if true , 'N' if false
                        FLAG20:
                          type: string
                          maxLength: 1
                          description: SQL Server flag 'Y' if true , 'N' if false
                        FILEKB:
                          type: integer
                          format: int32
                          description: Size of the database transaction log in MB.
                        NUMLINES:
                          type: integer
                          format: int32
                          description: Size of the database transaction log in MB.
                  LOGLIST:
                    type: array
                    items:
                      type: object
                      properties:
                        ERROUTPUT:
                          type: string
                          maxLength: 256
                          description: MS SQL server - output line of sql server error log
                  LOGSTATS:
                    type: array
                    items:
                      type: object
                      properties:
                        NUMLOG:
                          type: integer
                          format: int32
                          description: number of SQL Server sql error or sql agent log to display
                        LOGDATE:
                          type: string
                          maxLength: 20
                          description: ''
                        NAMELOG:
                          type: string
                          maxLength: 520
                          description: MS SQL server database physical file name with full path
                        FLAG17:
                          type: string
                          maxLength: 1
                          description: SQL Server flag 'Y' if true , 'N' if false
                        FLAG20:
                          type: string
                          maxLength: 1
                          description: SQL Server flag 'Y' if true , 'N' if false
                        FILEKB:
                          type: integer
                          format: int32
                          description: Size of the database transaction log in MB.
                        NUMLINES:
                          type: integer
                          format: int32
                          description: Size of the database transaction log in MB.
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
