openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/MSS_JOB_PREVIEW:
    post:
      tags:
      - SMSSJOB
      summary: 'MSS: Function to add sql job from new DB13'
      operationId: /rfc/MSS_JOB_PREVIEW
      requestBody:
        content:
          application/json:
            schema:
              properties:
                ACTION:
                  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
                COMMAND:
                  type: string
                  maxLength: 70
                  description: Function Code That Triggered PAI
                SYSTEM_DATA:
                  type: object
                  properties:
                    SYSID:
                      type: string
                      maxLength: 8
                      description: Name of the SAP System
                    SAPREL:
                      type: string
                      maxLength: 4
                      description: Release Status of SAP System
                    DBREL:
                      type: string
                      maxLength: 10
                      description: 'DB6: Database Release Level'
                    RFCDEST:
                      type: string
                      maxLength: 32
                      description: Logical Destination (Specified in Function Call)
                    DBHOST:
                      type: string
                      maxLength: 255
                      description: 'DBA Cockpit: Server Name'
                    SCHEMANAME:
                      type: string
                      maxLength: 20
                      description: 'DB6: Schema Name'
                    ENTRYSTATE:
                      type: integer
                      format: int32
                      description: 'State of entry: 1=INITIAL,2=COMPLETE,3=DISABLED'
                    ENTRYTYPE:
                      type: integer
                      format: int32
                      description: 'kind of system: 1=R/3 ,2=Non R/3'
                    DBCNAME:
                      type: string
                      maxLength: 30
                      description: Logical name for a database connection
                    DBSYS:
                      type: string
                      maxLength: 3
                      description: 'Database system  enumValues: DB2=DB2 UDB for OS/390,MSS=Microsoft SQL Server,ADA=SAP DB (ADABAS/D),INF=Informix,ORA=Oracle,DB4=DB2 UDB for AS/400,DB6=DB2 UDB for Unix and Windows'
                      enum:
                      - DB2
                      - MSS
                      - ADA
                      - INF
                      - ORA
                      - DB4
                      - DB6
                    DB_OPSYS:
                      type: string
                      maxLength: 10
                      description: Operating System of Application Server
                    COCKREL:
                      type: string
                      maxLength: 4
                      description: Release Status of SAP System
                    REALSID:
                      type: string
                      maxLength: 8
                      description: Name of the SAP System
                    DBSID:
                      type: string
                      maxLength: 128
                      description: 'DBA Cockpit: Database Name'
                    RZ20_MON:
                      type: string
                      maxLength: 1
                      description: Remote Alert Monitoring active ('X')/inactive (' ')
                    HIST_MON:
                      type: string
                      maxLength: 1
                      description: Remote History Collection active('X')/inactive(' ')
                    DESCRIPTION:
                      type: string
                      maxLength: 80
                      description: ''
                    CHANGEDATE:
                      type: string
                      format: date
                      description: Current Date of Application Server
                    CHANGETIME:
                      type: string
                      maxLength: 6
                      description: Current Time of Application Server
                    CHANGED_BY:
                      type: string
                      maxLength: 12
                      description: User Name
                    SYSTEMTYPE:
                      type: string
                      maxLength: 7
                      description: 'SAP DB: Instance Type  enumValues: CS=Content Server Database,LVC=liveCache,BW=Business Warehouse Database,OLTP=Online Transaction Processing Database'
                      enum:
                      - CS
                      - LVC
                      - BW
                      - OLTP
                    RFCDEST_2:
                      type: string
                      maxLength: 32
                      description: Logical Destination (Specified in Function Call)
                    REMOTE_COLL:
                      type: string
                      maxLength: 1
                      description: Collect data remote('X') or local (' ')
                    DBCON_VIA_RFC:
                      type: string
                      maxLength: 1
                      description: DB Connection via RFC Destination
                    PROMPT_USER_DATA:
                      type: string
                      maxLength: 1
                      description: Store password permanent
                    SLD_NAME:
                      type: string
                      maxLength: 255
                      description: ''
                    SLD_UPDATE:
                      type: string
                      maxLength: 14
                      description: 'DB6: Timestamp (Format: YYYYMMDDHHMMSS)'
                    DB13C_MON:
                      type: string
                      maxLength: 1
                      description: DB13C Integration active('X')/inactive('')
                TIMESTAMP:
                  type: object
                  properties:
                    DATE:
                      type: string
                      format: date
                      description: Current Date of Application Server
                    TIME:
                      type: string
                      maxLength: 6
                      description: Current Time of Application Server
                PARAMETERS:
                  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
                      POS:
                        type: integer
                        format: int64
                        description: Consecutive number for detail lines
                      RESTYPE:
                        type: string
                        maxLength: 1
                        description: Single-Character Flag
                      RESNAME:
                        type: string
                        maxLength: 50
                        description: Comment
                      RESNAME2:
                        type: string
                        maxLength: 50
                        description: Comment
                PREVIEW:
                  type: array
                  items:
                    type: object
                    properties:
                      LINE:
                        type: string
                        maxLength: 255
                        description: ''
              required:
              - ACTION
              - COMMAND
              - SYSTEM_DATA
              - TIMESTAMP
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  PARAMETERS:
                    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
                        POS:
                          type: integer
                          format: int64
                          description: Consecutive number for detail lines
                        RESTYPE:
                          type: string
                          maxLength: 1
                          description: Single-Character Flag
                        RESNAME:
                          type: string
                          maxLength: 50
                          description: Comment
                        RESNAME2:
                          type: string
                          maxLength: 50
                          description: Comment
                  PREVIEW:
                    type: array
                    items:
                      type: object
                      properties:
                        LINE:
                          type: string
                          maxLength: 255
                          description: ''
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
