openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/MSS_GET_JOB_INFO_AND_LOG:
    post:
      tags:
      - SFMSS_JOBS
      summary: Function to get job and history info of a job
      operationId: /rfc/MSS_GET_JOB_INFO_AND_LOG
      requestBody:
        content:
          application/json:
            schema:
              properties:
                CON_NAME:
                  type: string
                  default: DEFAULT
                  maxLength: 30
                  description: Logical name for a database connection
                LJOBID:
                  type: string
                  format: byte
                  description: MS SQL server job id
                SCHEMA:
                  type: string
                  default: ''
                  maxLength: 128
                  description: Schema name
                BASJOBLST:
                  type: array
                  items:
                    type: object
                    properties:
                      JOBID:
                        type: string
                        format: byte
                        description: MS SQL server job id
                      SERVER:
                        type: string
                        maxLength: 30
                        description: MS SQL Server server to be used for a SQL task execution
                      JOBNAME:
                        type: string
                        maxLength: 128
                        description: MS SQL Server task name
                      ENABLED:
                        type: integer
                        format: int32
                        description: MS SQL Server task enabled status bit
                      DESCRIPT:
                        type: string
                        maxLength: 255
                        description: MS SQL Server task description
                      STARSTEPID:
                        type: integer
                        format: int32
                        description: MS SQL server Start Step ID
                      CREATEDATE:
                        type: string
                        maxLength: 20
                        description: MS SQL Server task creation date and time
                      MODIFYDATE:
                        type: string
                        maxLength: 20
                        description: MS SQL Server task modification date and time
                JBHISTDETS:
                  type: array
                  items:
                    type: object
                    properties:
                      JOBID:
                        type: string
                        format: byte
                        description: MS SQL server job id
                      MSSTEPID:
                        type: integer
                        format: int32
                        description: MS SQL server Start Step ID
                      MSGID:
                        type: integer
                        format: int32
                        description: MS SQL Server message ID
                      SEVERITY:
                        type: integer
                        format: int32
                        description: MS SQL Server severity
                      MESSAGE1:
                        type: string
                        maxLength: 255
                        description: MS SQL Server task execution comments
                      STATUS:
                        type: integer
                        format: int32
                        description: MS SQL Server task run status
                      RUNDATE:
                        type: integer
                        format: int32
                        description: MS SQL Server task run date
                      RUNTIME:
                        type: integer
                        format: int32
                        description: MS SQL Server task runtime
                      RUNDURATE:
                        type: integer
                        format: int32
                        description: MS SQL Server task run duration
                      RETRIES:
                        type: integer
                        format: int32
                        description: MS SQL Server task execution retries
                      ACTSTTIME:
                        type: integer
                        format: int32
                        description: ''
                JBSCHEDULE:
                  type: array
                  items:
                    type: object
                    properties:
                      SCHEDID:
                        type: integer
                        format: int32
                        description: MS SQL server - schedule id of the job
                      JOBID:
                        type: string
                        format: byte
                        description: MS SQL server job id
                      NAME:
                        type: string
                        maxLength: 128
                        description: MS SQL Server task name
                      ENABLED:
                        type: integer
                        format: int32
                        description: MS SQL Server task enabled status bit
                      FREQTYPE:
                        type: integer
                        format: int32
                        description: MS SQL Server task frequency type
                      FREQINTER:
                        type: integer
                        format: int32
                        description: MS SQL Server frequency interval
                      FREQSUBTYP:
                        type: integer
                        format: int32
                        description: MS SQL Server frequency sub type of a SQL task
                      FREQSUBINT:
                        type: integer
                        format: int32
                        description: MS SQL Server task frequency sub interval
                      FREQRELINT:
                        type: integer
                        format: int32
                        description: MS SQL Server frequency relative interval of a SQL task
                      FREQRECFAC:
                        type: integer
                        format: int32
                        description: MS SQL Server task frequency recurrence factor
                      ACTSTRTDAT:
                        type: integer
                        format: int32
                        description: MS SQL Server task active start date
                      ACTENDDATE:
                        type: integer
                        format: int32
                        description: MS SQL Server task active end date
                      ACTSTRTTOD:
                        type: integer
                        format: int32
                        description: MS SQL Server task active start time of day
                      ACTENDTTOD:
                        type: integer
                        format: int32
                        description: MS SQL Server task active start time of day
                      NEXTRUNDAT:
                        type: integer
                        format: int32
                        description: MS SQL Server next task run date
                      NEXTRUNTIM:
                        type: integer
                        format: int32
                        description: MS SQL Server next task run time
                      CREATEDATE:
                        type: string
                        maxLength: 20
                        description: MS SQL Server task creation date and time
                JBSTEPDETS:
                  type: array
                  items:
                    type: object
                    properties:
                      JOBID:
                        type: string
                        format: byte
                        description: MS SQL server job id
                      STEPID:
                        type: integer
                        format: int32
                        description: MS SQL server - the id of the step in the job
                      STEPNAME:
                        type: string
                        maxLength: 100
                        description: MS SQL server - the name of the step
                      SUBSYSTEM:
                        type: string
                        maxLength: 60
                        description: MS SQL server - Name of the subsystem used for job execution
                      JOBCOMMAND:
                        type: string
                        maxLength: 520
                        description: MS SQL server - command executed by the subsytem
                      SUCCESSCDE:
                        type: integer
                        format: int32
                        description: MS SQL server - success code returned by cmdexe subsystem
                      SUCCESSACT:
                        type: integer
                        format: int32
                        description: MS SQL server - action to be performed after job success
                      SUCCESSSTP:
                        type: integer
                        format: int32
                        description: MS SQL server - the next step id in job after job success
                      FAILACT:
                        type: integer
                        format: int32
                        description: MS SQL server - action to be perfor. after job step failure
                      FAILSTP:
                        type: integer
                        format: int32
                        description: MS SQL server - next step after the failure of job step
                      DBASENAME:
                        type: string
                        maxLength: 64
                        description: MS SQL server - name of the database in which job is exec.
                      DBASEUNAME:
                        type: string
                        maxLength: 64
                        description: MS SQL server - name of db user executing the step
                      RETRY:
                        type: integer
                        format: int32
                        description: MS SQL server - retry attempts for the job or step
                      RETRYINT:
                        type: integer
                        format: int32
                        description: MS SQL server - wait interval between retry attempts
                      OUTPUTFILE:
                        type: string
                        maxLength: 255
                        description: MS SQL server - the name of the job step's output file
                      LSTRUNSTA:
                        type: integer
                        format: int32
                        description: MS SQL server  - status of the previous exec. job step.
                      LSTRUNDU:
                        type: integer
                        format: int32
                        description: MS SQL server - time taken for the previous exec of the job
                      LSTRUNRET:
                        type: integer
                        format: int32
                        description: MS SQL server - retry attempts of the last exec. of the job
                      LSTRUNDT:
                        type: integer
                        format: int32
                        description: MS SQL server - date of the job step's prev execution
                      LSTRUNTI:
                        type: integer
                        format: int32
                        description: MS SQL server - time of the job step's previous execution
                TASKLIST:
                  type: array
                  items:
                    type: object
                    properties:
                      JOBID:
                        type: string
                        format: byte
                        description: MS SQL server job id
                      MSSTEPID:
                        type: integer
                        format: int32
                        description: Natural number
                      MSGID:
                        type: integer
                        format: int32
                        description: MS SQL Server message ID
                      LINENUMBER:
                        type: integer
                        format: int32
                        description: Natural number
                      MESSAGE:
                        type: string
                        maxLength: 100
                        description: Comment
                      RUNDATE:
                        type: integer
                        format: int32
                        description: ''
                      RUNTIME:
                        type: integer
                        format: int32
                        description: ''
              required:
              - LJOBID
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  BASJOBLST:
                    type: array
                    items:
                      type: object
                      properties:
                        JOBID:
                          type: string
                          format: byte
                          description: MS SQL server job id
                        SERVER:
                          type: string
                          maxLength: 30
                          description: MS SQL Server server to be used for a SQL task execution
                        JOBNAME:
                          type: string
                          maxLength: 128
                          description: MS SQL Server task name
                        ENABLED:
                          type: integer
                          format: int32
                          description: MS SQL Server task enabled status bit
                        DESCRIPT:
                          type: string
                          maxLength: 255
                          description: MS SQL Server task description
                        STARSTEPID:
                          type: integer
                          format: int32
                          description: MS SQL server Start Step ID
                        CREATEDATE:
                          type: string
                          maxLength: 20
                          description: MS SQL Server task creation date and time
                        MODIFYDATE:
                          type: string
                          maxLength: 20
                          description: MS SQL Server task modification date and time
                  JBHISTDETS:
                    type: array
                    items:
                      type: object
                      properties:
                        JOBID:
                          type: string
                          format: byte
                          description: MS SQL server job id
                        MSSTEPID:
                          type: integer
                          format: int32
                          description: MS SQL server Start Step ID
                        MSGID:
                          type: integer
                          format: int32
                          description: MS SQL Server message ID
                        SEVERITY:
                          type: integer
                          format: int32
                          description: MS SQL Server severity
                        MESSAGE1:
                          type: string
                          maxLength: 255
                          description: MS SQL Server task execution comments
                        STATUS:
                          type: integer
                          format: int32
                          description: MS SQL Server task run status
                        RUNDATE:
                          type: integer
                          format: int32
                          description: MS SQL Server task run date
                        RUNTIME:
                          type: integer
                          format: int32
                          description: MS SQL Server task runtime
                        RUNDURATE:
                          type: integer
                          format: int32
                          description: MS SQL Server task run duration
                        RETRIES:
                          type: integer
                          format: int32
                          description: MS SQL Server task execution retries
                        ACTSTTIME:
                          type: integer
                          format: int32
                          description: ''
                  JBSCHEDULE:
                    type: array
                    items:
                      type: object
                      properties:
                        SCHEDID:
                          type: integer
                          format: int32
                          description: MS SQL server - schedule id of the job
                        JOBID:
                          type: string
                          format: byte
                          description: MS SQL server job id
                        NAME:
                          type: string
                          maxLength: 128
                          description: MS SQL Server task name
                        ENABLED:
                          type: integer
                          format: int32
                          description: MS SQL Server task enabled status bit
                        FREQTYPE:
                          type: integer
                          format: int32
                          description: MS SQL Server task frequency type
                        FREQINTER:
                          type: integer
                          format: int32
                          description: MS SQL Server frequency interval
                        FREQSUBTYP:
                          type: integer
                          format: int32
                          description: MS SQL Server frequency sub type of a SQL task
                        FREQSUBINT:
                          type: integer
                          format: int32
                          description: MS SQL Server task frequency sub interval
                        FREQRELINT:
                          type: integer
                          format: int32
                          description: MS SQL Server frequency relative interval of a SQL task
                        FREQRECFAC:
                          type: integer
                          format: int32
                          description: MS SQL Server task frequency recurrence factor
                        ACTSTRTDAT:
                          type: integer
                          format: int32
                          description: MS SQL Server task active start date
                        ACTENDDATE:
                          type: integer
                          format: int32
                          description: MS SQL Server task active end date
                        ACTSTRTTOD:
                          type: integer
                          format: int32
                          description: MS SQL Server task active start time of day
                        ACTENDTTOD:
                          type: integer
                          format: int32
                          description: MS SQL Server task active start time of day
                        NEXTRUNDAT:
                          type: integer
                          format: int32
                          description: MS SQL Server next task run date
                        NEXTRUNTIM:
                          type: integer
                          format: int32
                          description: MS SQL Server next task run time
                        CREATEDATE:
                          type: string
                          maxLength: 20
                          description: MS SQL Server task creation date and time
                  JBSTEPDETS:
                    type: array
                    items:
                      type: object
                      properties:
                        JOBID:
                          type: string
                          format: byte
                          description: MS SQL server job id
                        STEPID:
                          type: integer
                          format: int32
                          description: MS SQL server - the id of the step in the job
                        STEPNAME:
                          type: string
                          maxLength: 100
                          description: MS SQL server - the name of the step
                        SUBSYSTEM:
                          type: string
                          maxLength: 60
                          description: MS SQL server - Name of the subsystem used for job execution
                        JOBCOMMAND:
                          type: string
                          maxLength: 520
                          description: MS SQL server - command executed by the subsytem
                        SUCCESSCDE:
                          type: integer
                          format: int32
                          description: MS SQL server - success code returned by cmdexe subsystem
                        SUCCESSACT:
                          type: integer
                          format: int32
                          description: MS SQL server - action to be performed after job success
                        SUCCESSSTP:
                          type: integer
                          format: int32
                          description: MS SQL server - the next step id in job after job success
                        FAILACT:
                          type: integer
                          format: int32
                          description: MS SQL server - action to be perfor. after job step failure
                        FAILSTP:
                          type: integer
                          format: int32
                          description: MS SQL server - next step after the failure of job step
                        DBASENAME:
                          type: string
                          maxLength: 64
                          description: MS SQL server - name of the database in which job is exec.
                        DBASEUNAME:
                          type: string
                          maxLength: 64
                          description: MS SQL server - name of db user executing the step
                        RETRY:
                          type: integer
                          format: int32
                          description: MS SQL server - retry attempts for the job or step
                        RETRYINT:
                          type: integer
                          format: int32
                          description: MS SQL server - wait interval between retry attempts
                        OUTPUTFILE:
                          type: string
                          maxLength: 255
                          description: MS SQL server - the name of the job step's output file
                        LSTRUNSTA:
                          type: integer
                          format: int32
                          description: MS SQL server  - status of the previous exec. job step.
                        LSTRUNDU:
                          type: integer
                          format: int32
                          description: MS SQL server - time taken for the previous exec of the job
                        LSTRUNRET:
                          type: integer
                          format: int32
                          description: MS SQL server - retry attempts of the last exec. of the job
                        LSTRUNDT:
                          type: integer
                          format: int32
                          description: MS SQL server - date of the job step's prev execution
                        LSTRUNTI:
                          type: integer
                          format: int32
                          description: MS SQL server - time of the job step's previous execution
                  TASKLIST:
                    type: array
                    items:
                      type: object
                      properties:
                        JOBID:
                          type: string
                          format: byte
                          description: MS SQL server job id
                        MSSTEPID:
                          type: integer
                          format: int32
                          description: Natural number
                        MSGID:
                          type: integer
                          format: int32
                          description: MS SQL Server message ID
                        LINENUMBER:
                          type: integer
                          format: int32
                          description: Natural number
                        MESSAGE:
                          type: string
                          maxLength: 100
                          description: Comment
                        RUNDATE:
                          type: integer
                          format: int32
                          description: ''
                        RUNTIME:
                          type: integer
                          format: int32
                          description: ''
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
