openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/MSS_LOG_READ:
    post:
      tags:
      - SMSSJOB
      summary: 'DB6: get protocol list for a given time interval'
      operationId: /rfc/MSS_LOG_READ
      requestBody:
        content:
          application/json:
            schema:
              properties:
                CONNECTION:
                  type: string
                  maxLength: 30
                  description: Logical name for a database connection
                FROM_DATE:
                  type: string
                  format: date
                  description: 'SYSTEM: Current date'
                FROM_TIME:
                  type: string
                  maxLength: 6
                  description: 'SYSTEM: Time'
                SYSTEM_ID:
                  type: string
                  default: SY-SYSID
                  maxLength: 8
                  description: Name of SAP R/3 System
                TO_DATE:
                  type: string
                  format: date
                  description: 'SYSTEM: Current date'
                TO_TIME:
                  type: string
                  maxLength: 6
                  description: 'SYSTEM: Time'
                LOGS:
                  type: array
                  items:
                    type: object
                    properties:
                      PROGID:
                        type: string
                        maxLength: 5
                        description: Type of DBA action
                      STARTTIME:
                        type: string
                        maxLength: 14
                        description: 'DB6: Timestamp (Format: YYYYMMDDHHMMSS)'
                      PARTITN:
                        type: integer
                        format: int32
                        description: Partition Number
                      ENDTIME:
                        type: string
                        maxLength: 14
                        description: 'DB6: Timestamp (Format: YYYYMMDDHHMMSS)'
                      RETURNCODE:
                        type: integer
                        format: int32
                        description: Returncode of external program (0=ok,1=Warning,2=Error)
                      COMPTIME:
                        type: string
                        maxLength: 14
                        description: 'DB6: Timestamp (Format: YYYYMMDDHHMMSS)'
                      COMMNDLINE:
                        type: string
                        maxLength: 255
                        description: 'DB6: File Path'
                      LOGNAME:
                        type: string
                        maxLength: 255
                        description: 'DB6: File Path'
                      SYSTEM_ID:
                        type: string
                        maxLength: 8
                        description: Name of the SAP System
                      SQL_JOB_ID:
                        type: string
                        format: byte
                        description: ''
                      JOBCOUNT:
                        type: string
                        maxLength: 8
                        description: Job ID
                PLANNINGS:
                  type: array
                  items:
                    type: object
                    properties:
                      DAYE:
                        type: integer
                        format: int64
                        description: 'Day of the week for DBA action  enumValues: 1=Monday,4=Thursday,5=Friday,7=Sunday,3=Wednesday,2=Tuesday,6=Saturday'
                        enum:
                        - '1'
                        - '4'
                        - '5'
                        - '7'
                        - '3'
                        - '2'
                        - '6'
                      TIMEE:
                        type: string
                        maxLength: 6
                        description: Time (24 hour clock) for DBA action to run
                      CRETSTMP:
                        type: string
                        maxLength: 14
                        description: Date and time (timestamp) of schedule
                      SYSID:
                        type: string
                        maxLength: 8
                        description: Name of the SAP System
                      BTYPE:
                        type: string
                        maxLength: 5
                        description: Type of DBA action
                      PERIOD:
                        type: integer
                        format: int64
                        description: Duration (in days) of DBA action
                      DELTSTMP:
                        type: string
                        maxLength: 14
                        description: Timestamp for deletion of DBA action
                      STARTTSTMP:
                        type: string
                        maxLength: 14
                        description: Timestamp for first run of DBA action
                      MANDT:
                        type: string
                        maxLength: 3
                        description: Client ID of Current User
                      EXEHOST:
                        type: string
                        maxLength: 30
                        description: Name of the server where the DBA action is to be executed
              required:
              - FROM_DATE
              - FROM_TIME
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  LOGS:
                    type: array
                    items:
                      type: object
                      properties:
                        PROGID:
                          type: string
                          maxLength: 5
                          description: Type of DBA action
                        STARTTIME:
                          type: string
                          maxLength: 14
                          description: 'DB6: Timestamp (Format: YYYYMMDDHHMMSS)'
                        PARTITN:
                          type: integer
                          format: int32
                          description: Partition Number
                        ENDTIME:
                          type: string
                          maxLength: 14
                          description: 'DB6: Timestamp (Format: YYYYMMDDHHMMSS)'
                        RETURNCODE:
                          type: integer
                          format: int32
                          description: Returncode of external program (0=ok,1=Warning,2=Error)
                        COMPTIME:
                          type: string
                          maxLength: 14
                          description: 'DB6: Timestamp (Format: YYYYMMDDHHMMSS)'
                        COMMNDLINE:
                          type: string
                          maxLength: 255
                          description: 'DB6: File Path'
                        LOGNAME:
                          type: string
                          maxLength: 255
                          description: 'DB6: File Path'
                        SYSTEM_ID:
                          type: string
                          maxLength: 8
                          description: Name of the SAP System
                        SQL_JOB_ID:
                          type: string
                          format: byte
                          description: ''
                        JOBCOUNT:
                          type: string
                          maxLength: 8
                          description: Job ID
                  PLANNINGS:
                    type: array
                    items:
                      type: object
                      properties:
                        DAYE:
                          type: integer
                          format: int64
                          description: 'Day of the week for DBA action  enumValues: 1=Monday,4=Thursday,5=Friday,7=Sunday,3=Wednesday,2=Tuesday,6=Saturday'
                          enum:
                          - '1'
                          - '4'
                          - '5'
                          - '7'
                          - '3'
                          - '2'
                          - '6'
                        TIMEE:
                          type: string
                          maxLength: 6
                          description: Time (24 hour clock) for DBA action to run
                        CRETSTMP:
                          type: string
                          maxLength: 14
                          description: Date and time (timestamp) of schedule
                        SYSID:
                          type: string
                          maxLength: 8
                          description: Name of the SAP System
                        BTYPE:
                          type: string
                          maxLength: 5
                          description: Type of DBA action
                        PERIOD:
                          type: integer
                          format: int64
                          description: Duration (in days) of DBA action
                        DELTSTMP:
                          type: string
                          maxLength: 14
                          description: Timestamp for deletion of DBA action
                        STARTTSTMP:
                          type: string
                          maxLength: 14
                          description: Timestamp for first run of DBA action
                        MANDT:
                          type: string
                          maxLength: 3
                          description: Client ID of Current User
                        EXEHOST:
                          type: string
                          maxLength: 30
                          description: Name of the server where the DBA action is to be executed
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
