openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/MSS_GET_SCH_AGENT_JOBS:
    post:
      tags:
      - SFMSS_JOBS
      summary: To get the ist of schduled jobs in next XX days.
      operationId: /rfc/MSS_GET_SCH_AGENT_JOBS
      requestBody:
        content:
          application/json:
            schema:
              properties:
                CON_NAME:
                  type: string
                  default: DEFAULT
                  maxLength: 30
                  description: Logical name for a database connection
                NUM_OF_DAYS:
                  type: integer
                  format: int32
                  default: 30
                  description: MS SQL server - run time limit for dbcc commands
                SCHEMA:
                  type: string
                  default: ''
                  maxLength: 128
                  description: Schema name
                SCHAGENTJOBS:
                  type: array
                  items:
                    type: object
                    properties:
                      JOB_NAME:
                        type: string
                        maxLength: 100
                        description: MS SQl server - name of the job
                      NEXTRUNDT:
                        type: string
                        format: date
                        description: Sql agent job - Next run Date
                      NEXTRUNTM:
                        type: string
                        maxLength: 6
                        description: SQL Agent Job's Next Run Time
                      LASTRUNDUR:
                        type: integer
                        format: int32
                        description: MS SQL server - time taken for the previous exec of the job
                      LSTRUNSTUS:
                        type: integer
                        format: int32
                        description: MS SQL server  - status of the previous exec. job step.
                      STATUSDESC:
                        type: string
                        maxLength: 25
                        description: Sql Agent Job status description
                      SCHEDESC:
                        type: string
                        maxLength: 25
                        description: Sql Agent Job scheule Information
                      JOB_CLASS:
                        type: string
                        maxLength: 25
                        description: Sql Agent Job class(type)
                      LSTRUNDATE:
                        type: string
                        format: date
                        description: Sql agent job - Last run Date
                      LSTRUNTIME:
                        type: string
                        maxLength: 6
                        description: Agent job's last run time
                      JOB_DESC:
                        type: string
                        maxLength: 255
                        description: MS SQL server - description of the job
                      JOBCOMMAND:
                        type: string
                        maxLength: 520
                        description: MS SQL server - command executed by the subsytem
                      JOB_OWNER:
                        type: string
                        maxLength: 30
                        description: Database user name/ Owner of sql agent job
                      DBNAME:
                        type: string
                        maxLength: 128
                        description: Database name
                      ENABLED:
                        type: integer
                        format: int32
                        description: MS SQL server - job enable status for execution
                      JOB_ID:
                        type: string
                        format: byte
                        description: MS SQL server job id
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  SCHAGENTJOBS:
                    type: array
                    items:
                      type: object
                      properties:
                        JOB_NAME:
                          type: string
                          maxLength: 100
                          description: MS SQl server - name of the job
                        NEXTRUNDT:
                          type: string
                          format: date
                          description: Sql agent job - Next run Date
                        NEXTRUNTM:
                          type: string
                          maxLength: 6
                          description: SQL Agent Job's Next Run Time
                        LASTRUNDUR:
                          type: integer
                          format: int32
                          description: MS SQL server - time taken for the previous exec of the job
                        LSTRUNSTUS:
                          type: integer
                          format: int32
                          description: MS SQL server  - status of the previous exec. job step.
                        STATUSDESC:
                          type: string
                          maxLength: 25
                          description: Sql Agent Job status description
                        SCHEDESC:
                          type: string
                          maxLength: 25
                          description: Sql Agent Job scheule Information
                        JOB_CLASS:
                          type: string
                          maxLength: 25
                          description: Sql Agent Job class(type)
                        LSTRUNDATE:
                          type: string
                          format: date
                          description: Sql agent job - Last run Date
                        LSTRUNTIME:
                          type: string
                          maxLength: 6
                          description: Agent job's last run time
                        JOB_DESC:
                          type: string
                          maxLength: 255
                          description: MS SQL server - description of the job
                        JOBCOMMAND:
                          type: string
                          maxLength: 520
                          description: MS SQL server - command executed by the subsytem
                        JOB_OWNER:
                          type: string
                          maxLength: 30
                          description: Database user name/ Owner of sql agent job
                        DBNAME:
                          type: string
                          maxLength: 128
                          description: Database name
                        ENABLED:
                          type: integer
                          format: int32
                          description: MS SQL server - job enable status for execution
                        JOB_ID:
                          type: string
                          format: byte
                          description: MS SQL server job id
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
