openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/REPORT_BACKUP_ARCHIVE_STATUS:
    post:
      tags:
      - SDBA
      operationId: /rfc/REPORT_BACKUP_ARCHIVE_STATUS
      requestBody:
        content:
          application/json:
            schema:
              properties:
                BACKUP_ARCHIVE_FLAG:
                  type: string
                  maxLength: 1
                  description: 'Archive: A   Backup: B'
                BEGIN:
                  type: string
                  maxLength: 14
                  description: Begin saving
                COMPLETE:
                  type: string
                  maxLength: 1
                  description: 'complete DB backup: Y / N'
                DEVICE:
                  type: string
                  maxLength: 1
                  description: Disk:D Tape:T remote tape:P back util:F Vol:V
                ENDE:
                  type: string
                  maxLength: 14
                  description: Ende of database action
                LOGS_DELETED:
                  type: string
                  maxLength: 1
                  description: Logs deleted after saving
                ONLINE:
                  type: string
                  maxLength: 1
                  description: 'Save Online/Offline: Y / N'
                RC:
                  type: integer
                  format: int64
                  description: 'Return code: 0 Successful,1 Warning, ottherwise errors'
                SAVE_TYPE:
                  type: string
                  maxLength: 1
                  description: 'Save: F Copy: S Delete: D Query: Q Compress: C'
                ARCHIVE_LINE:
                  type: array
                  items:
                    type: object
                    properties:
                      BR_VERS:
                        type: string
                        maxLength: 1
                        description: BRBACKUP/BRARCHIVE/RFC Version used
                      ARCH_FUNC:
                        type: string
                        maxLength: 1
                        description: Archive function(copy/save/delete)
                      REDO_NR:
                        type: string
                        maxLength: 8
                        description: current Redolognr
                      ARCH_TIME:
                        type: string
                        maxLength: 14
                        description: Timestamp of RedoLog
                      ARCH_END:
                        type: string
                        maxLength: 14
                        description: End of database operation
                      A_VOLUME:
                        type: string
                        maxLength: 10
                        description: Name of backup volume
                      FILE_POS:
                        type: integer
                        format: int64
                        description: Position of file on storage device
                      COMPR_RATE:
                        type: string
                        maxLength: 8
                        description: Compressionrate*100
                      BACKUP_ID:
                        type: string
                        maxLength: 16
                        description: SID of a backup file (using external backup program)
                      THREAD_NO:
                        type: string
                        maxLength: 4
                        description: 'RedoLog Thread # OPS'
                      ARCH_NAME:
                        type: string
                        maxLength: 128
                        description: Archive filename
                BACKUP_LINE:
                  type: array
                  items:
                    type: object
                    properties:
                      BR_VERS:
                        type: string
                        maxLength: 1
                        description: BRBACKUP/BRARCHIVE/RFC Version used
                      FILE_ID:
                        type: string
                        maxLength: 3
                        description: Oracle file ID
                      TS_NAME:
                        type: string
                        maxLength: 30
                        description: Name of tablespace
                      TS_STATUS:
                        type: string
                        maxLength: 1
                        description: Status of tablespace
                      DBF_STATUS:
                        type: string
                        maxLength: 1
                        description: Status of file
                      REDO_NR:
                        type: string
                        maxLength: 8
                        description: current Redolognr
                      TIME_END:
                        type: string
                        maxLength: 14
                        description: End of database operation
                      B_VOLUME:
                        type: string
                        maxLength: 10
                        description: Name of backup volume
                      FILE_POS:
                        type: integer
                        format: int64
                        description: Position of file on storage device
                      COMPR_RATE:
                        type: string
                        maxLength: 8
                        description: Compressionrate*100
                      BACKUP_ID:
                        type: string
                        maxLength: 16
                        description: SID of a backup file (using external backup program)
                      DBF_NAME:
                        type: string
                        maxLength: 128
                        description: Backup filename
              required:
              - BACKUP_ARCHIVE_FLAG
              - BEGIN
              - COMPLETE
              - DEVICE
              - ENDE
              - LOGS_DELETED
              - ONLINE
              - RC
              - SAVE_TYPE
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  LOG_NAME:
                    type: string
                    maxLength: 16
                    description: Name of DBA log
                  ARCHIVE_LINE:
                    type: array
                    items:
                      type: object
                      properties:
                        BR_VERS:
                          type: string
                          maxLength: 1
                          description: BRBACKUP/BRARCHIVE/RFC Version used
                        ARCH_FUNC:
                          type: string
                          maxLength: 1
                          description: Archive function(copy/save/delete)
                        REDO_NR:
                          type: string
                          maxLength: 8
                          description: current Redolognr
                        ARCH_TIME:
                          type: string
                          maxLength: 14
                          description: Timestamp of RedoLog
                        ARCH_END:
                          type: string
                          maxLength: 14
                          description: End of database operation
                        A_VOLUME:
                          type: string
                          maxLength: 10
                          description: Name of backup volume
                        FILE_POS:
                          type: integer
                          format: int64
                          description: Position of file on storage device
                        COMPR_RATE:
                          type: string
                          maxLength: 8
                          description: Compressionrate*100
                        BACKUP_ID:
                          type: string
                          maxLength: 16
                          description: SID of a backup file (using external backup program)
                        THREAD_NO:
                          type: string
                          maxLength: 4
                          description: 'RedoLog Thread # OPS'
                        ARCH_NAME:
                          type: string
                          maxLength: 128
                          description: Archive filename
                  BACKUP_LINE:
                    type: array
                    items:
                      type: object
                      properties:
                        BR_VERS:
                          type: string
                          maxLength: 1
                          description: BRBACKUP/BRARCHIVE/RFC Version used
                        FILE_ID:
                          type: string
                          maxLength: 3
                          description: Oracle file ID
                        TS_NAME:
                          type: string
                          maxLength: 30
                          description: Name of tablespace
                        TS_STATUS:
                          type: string
                          maxLength: 1
                          description: Status of tablespace
                        DBF_STATUS:
                          type: string
                          maxLength: 1
                          description: Status of file
                        REDO_NR:
                          type: string
                          maxLength: 8
                          description: current Redolognr
                        TIME_END:
                          type: string
                          maxLength: 14
                          description: End of database operation
                        B_VOLUME:
                          type: string
                          maxLength: 10
                          description: Name of backup volume
                        FILE_POS:
                          type: integer
                          format: int64
                          description: Position of file on storage device
                        COMPR_RATE:
                          type: string
                          maxLength: 8
                          description: Compressionrate*100
                        BACKUP_ID:
                          type: string
                          maxLength: 16
                          description: SID of a backup file (using external backup program)
                        DBF_NAME:
                          type: string
                          maxLength: 128
                          description: Backup filename
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
