openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/GET_BACKUP_LIST_MSQ:
    post:
      tags:
      - SFMSS_JOBS
      summary: MS SQL server function to get the list of SAP backups
      operationId: /rfc/GET_BACKUP_LIST_MSQ
      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
                TASKLIST:
                  type: array
                  items:
                    type: object
                    properties:
                      MEIDASETID:
                        type: integer
                        format: int32
                        description: Backup media set id
                      BACKSETID:
                        type: integer
                        format: int32
                        description: MS SQL server backup id for the backup task
                      NAME1:
                        type: string
                        maxLength: 128
                        description: MS sql server desciption of the nedia name.
                      NAME2:
                        type: string
                        maxLength: 128
                        description: Name of the backup set
                      DESC1:
                        type: string
                        maxLength: 128
                        description: MS Sql Server -  Backup media set description
                      DESC2:
                        type: string
                        maxLength: 255
                        description: Description of the backup set
                      SFTNAME:
                        type: string
                        maxLength: 128
                        description: MS SQL Server - Backup software Name
                      1FAMILYNUM:
                        type: integer
                        format: int32
                        description: MS SQL Server - Family num of media where the backup starts
                      BACKUPPOS:
                        type: integer
                        format: int32
                        description: MS SQL Server - Backup set position
                      EXP_DATE:
                        type: string
                        maxLength: 20
                        description: MS SQL server - backup expiration date
                      START_DATE:
                        type: string
                        maxLength: 20
                        description: 'MS SQL Server: Database starting time'
                      END_DATE:
                        type: string
                        maxLength: 20
                        description: MS SQL server backup finish date
                      TYPE:
                        type: string
                        maxLength: 1
                        description: MS SQL server - backup type ( full, differential, log)
                      DBNAME:
                        type: string
                        maxLength: 128
                        description: Database name
                      SERVERNAM:
                        type: string
                        maxLength: 30
                        description: MS SQL Server server to be used for a SQL task execution
                      MACHINENAM:
                        type: string
                        maxLength: 30
                        description: MS SQL server - server name
                      JOB_ID:
                        type: string
                        format: byte
                        description: MS SQL server job id
                      BACKUPTYPE:
                        type: string
                        maxLength: 30
                        description: MS SQL server - Backup Type description
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  TASKLIST:
                    type: array
                    items:
                      type: object
                      properties:
                        MEIDASETID:
                          type: integer
                          format: int32
                          description: Backup media set id
                        BACKSETID:
                          type: integer
                          format: int32
                          description: MS SQL server backup id for the backup task
                        NAME1:
                          type: string
                          maxLength: 128
                          description: MS sql server desciption of the nedia name.
                        NAME2:
                          type: string
                          maxLength: 128
                          description: Name of the backup set
                        DESC1:
                          type: string
                          maxLength: 128
                          description: MS Sql Server -  Backup media set description
                        DESC2:
                          type: string
                          maxLength: 255
                          description: Description of the backup set
                        SFTNAME:
                          type: string
                          maxLength: 128
                          description: MS SQL Server - Backup software Name
                        1FAMILYNUM:
                          type: integer
                          format: int32
                          description: MS SQL Server - Family num of media where the backup starts
                        BACKUPPOS:
                          type: integer
                          format: int32
                          description: MS SQL Server - Backup set position
                        EXP_DATE:
                          type: string
                          maxLength: 20
                          description: MS SQL server - backup expiration date
                        START_DATE:
                          type: string
                          maxLength: 20
                          description: 'MS SQL Server: Database starting time'
                        END_DATE:
                          type: string
                          maxLength: 20
                          description: MS SQL server backup finish date
                        TYPE:
                          type: string
                          maxLength: 1
                          description: MS SQL server - backup type ( full, differential, log)
                        DBNAME:
                          type: string
                          maxLength: 128
                          description: Database name
                        SERVERNAM:
                          type: string
                          maxLength: 30
                          description: MS SQL Server server to be used for a SQL task execution
                        MACHINENAM:
                          type: string
                          maxLength: 30
                          description: MS SQL server - server name
                        JOB_ID:
                          type: string
                          format: byte
                          description: MS SQL server job id
                        BACKUPTYPE:
                          type: string
                          maxLength: 30
                          description: MS SQL server - Backup Type description
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
