openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/GET_BACKUP_HISTORY_SDB:
    post:
      tags:
      - SADE
      operationId: /rfc/GET_BACKUP_HISTORY_SDB
      requestBody:
        content:
          application/json:
            schema:
              properties:
                SYSTEM_STRUCT:
                  type: object
                  properties:
                    SYSID:
                      type: string
                      maxLength: 8
                      description: Database System ID
                    DBSYS:
                      type: string
                      maxLength: 10
                      description: 'Database System for DBA  enumValues: *=Valid for All DB Platforms,SDB/LVC=liveCache,INFORMIX=INFORMIX,MSSQL=Microsoft SQL Server,DB400=DB2/400,DB2=DB2/CS,SDB/ANY=MySQL MaxDB with no SAP ABAP, such as Content Server, ...,SDB=MySQL MaxDB with SAP ABAP,ORACLE=ORACLE,DB6=DB2 UDB'
                      enum:
                      - '*'
                      - SDB/LVC
                      - INFORMIX
                      - MSSQL
                      - DB400
                      - DB2
                      - SDB/ANY
                      - SDB
                      - ORACLE
                      - DB6
                    SAPREL:
                      type: string
                      maxLength: 4
                      description: Release Status of SAP System
                    DBREL:
                      type: string
                      maxLength: 10
                      description: Database release
                    RFCDEST:
                      type: string
                      maxLength: 32
                      description: Logical Destination (Specified in Function Call)
                    DBHOST:
                      type: string
                      maxLength: 30
                      description: Name of the server where the DBA action is to be executed
                    DBCNAME:
                      type: string
                      maxLength: 30
                      description: Logical name for a database connection
                BACKUP_HISTORY:
                  type: array
                  items:
                    type: object
                    properties:
                      CMD_ID:
                        type: string
                        maxLength: 12
                        description: Command ID (unique; link cnhist <-> cnreprt)
                      ADALABEL:
                        type: string
                        maxLength: 13
                        description: Backup label
                      ACTION:
                        type: string
                        maxLength: 11
                        description: Short name for the DBA action
                      STRTPNODAT:
                        type: string
                        format: date
                        description: Date stamp
                      STRTPNOTIM:
                        type: string
                        maxLength: 6
                        description: Time (24 hour clock) for DBA action to run
                      STOPPNODAT:
                        type: string
                        format: date
                        description: Date stamp
                      STOPPNOTIM:
                        type: string
                        maxLength: 6
                        description: Time (24 hour clock) for DBA action to run
                      BEGDAT:
                        type: string
                        format: date
                        description: Date stamp
                      BEGTIM:
                        type: string
                        maxLength: 6
                        description: Time (24 hour clock) for DBA action to run
                      ENDDAT:
                        type: string
                        format: date
                        description: Date stamp
                      ENDTIM:
                        type: string
                        maxLength: 6
                        description: Time (24 hour clock) for DBA action to run
                      STARTLPNO:
                        type: integer
                        format: int32
                        description: Log page number at start of action
                      STOPLPNO:
                        type: integer
                        format: int32
                        description: Log page number at stop action
                      LOGREQ:
                        type: string
                        maxLength: 3
                        description: Indicator whether log info required for consistency
                      MEDIANAME:
                        type: string
                        maxLength: 60
                        description: Logical name of backup volume
                      PAGECOUNT:
                        type: integer
                        format: int64
                        description: No. of pages backed up
                      ADAVOLUME:
                        type: integer
                        format: int64
                        description: Number of volumes used for backup
                      RETCOD:
                        type: string
                        maxLength: 13
                        description: Return code
                      RETTEXT:
                        type: string
                        maxLength: 40
                        description: Error message for return code
              required:
              - SYSTEM_STRUCT
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  BACKUP_HISTORY:
                    type: array
                    items:
                      type: object
                      properties:
                        CMD_ID:
                          type: string
                          maxLength: 12
                          description: Command ID (unique; link cnhist <-> cnreprt)
                        ADALABEL:
                          type: string
                          maxLength: 13
                          description: Backup label
                        ACTION:
                          type: string
                          maxLength: 11
                          description: Short name for the DBA action
                        STRTPNODAT:
                          type: string
                          format: date
                          description: Date stamp
                        STRTPNOTIM:
                          type: string
                          maxLength: 6
                          description: Time (24 hour clock) for DBA action to run
                        STOPPNODAT:
                          type: string
                          format: date
                          description: Date stamp
                        STOPPNOTIM:
                          type: string
                          maxLength: 6
                          description: Time (24 hour clock) for DBA action to run
                        BEGDAT:
                          type: string
                          format: date
                          description: Date stamp
                        BEGTIM:
                          type: string
                          maxLength: 6
                          description: Time (24 hour clock) for DBA action to run
                        ENDDAT:
                          type: string
                          format: date
                          description: Date stamp
                        ENDTIM:
                          type: string
                          maxLength: 6
                          description: Time (24 hour clock) for DBA action to run
                        STARTLPNO:
                          type: integer
                          format: int32
                          description: Log page number at start of action
                        STOPLPNO:
                          type: integer
                          format: int32
                          description: Log page number at stop action
                        LOGREQ:
                          type: string
                          maxLength: 3
                          description: Indicator whether log info required for consistency
                        MEDIANAME:
                          type: string
                          maxLength: 60
                          description: Logical name of backup volume
                        PAGECOUNT:
                          type: integer
                          format: int64
                          description: No. of pages backed up
                        ADAVOLUME:
                          type: integer
                          format: int64
                          description: Number of volumes used for backup
                        RETCOD:
                          type: string
                          maxLength: 13
                          description: Return code
                        RETTEXT:
                          type: string
                          maxLength: 40
                          description: Error message for return code
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
