openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/DB6_PM_BACKUPHISTORY_ENTRY:
    post:
      tags:
      - SDB6PM
      summary: 'DB6: List Entries of DB2 Backup History File'
      operationId: /rfc/DB6_PM_BACKUPHISTORY_ENTRY
      requestBody:
        content:
          application/json:
            schema:
              properties:
                ACTION:
                  type: integer
                  format: int32
                BACKUPTS:
                  type: string
                  maxLength: 14
                  description: 'DB6: Days to retrieve from backup history (default one year)'
                CALLERFLAG:
                  type: string
                  maxLength: 1
                  description: Who Has Called this Program
                CONNECTION:
                  type: string
                  maxLength: 30
                  description: Logical name for a database connection
                PARTITN:
                  type: integer
                  format: int32
                  description: Partition Number
                IT_DB6PMHIS_BACKUP:
                  type: array
                  items:
                    type: object
                    properties:
                      BACKUPTS:
                        type: string
                        maxLength: 14
                        description: 'DB6: Timestamp (Format: YYYYMMDDHHMMSS)'
                      BACKUPSEQ:
                        type: string
                        maxLength: 3
                        description: ''
                      PARTITN:
                        type: integer
                        format: int32
                        description: ''
                      COMPTIME:
                        type: string
                        maxLength: 14
                        description: 'DB6: Timestamp (Format: YYYYMMDDHHMMSS)'
                      BACKUPEND:
                        type: string
                        maxLength: 14
                        description: 'DB6: Timestamp (Format: YYYYMMDDHHMMSS)'
                      FIRSTLOG:
                        type: string
                        maxLength: 20
                        description: 'DB6: General identifier'
                      LASTLOG:
                        type: string
                        maxLength: 20
                        description: 'DB6: General identifier'
                      LOCATION:
                        type: string
                        maxLength: 255
                        description: 'DB6: File Path'
                      COMMENTS:
                        type: string
                        maxLength: 30
                        description: ''
                      BACKUPRC:
                        type: integer
                        format: int64
                        description: ''
                      TBS_NAME:
                        type: string
                        maxLength: 30
                        description: 'DB6: Tablespace Name'
                      GRANULAITY:
                        type: string
                        maxLength: 20
                        description: 'DB6: General identifier'
                      BACKUPTYPE:
                        type: string
                        maxLength: 20
                        description: 'DB6: General identifier'
                      BACKUPDEV:
                        type: string
                        maxLength: 20
                        description: 'DB6: General identifier'
                      ERRORTEXT:
                        type: string
                        maxLength: 1024
                        description: ''
                      STATUS:
                        type: string
                        maxLength: 20
                        description: 'DB6: General identifier'
                      EID:
                        type: integer
                        format: int32
                        description: ''
              required:
              - ACTION
              - BACKUPTS
              - CALLERFLAG
              - PARTITN
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  IT_DB6PMHIS_BACKUP:
                    type: array
                    items:
                      type: object
                      properties:
                        BACKUPTS:
                          type: string
                          maxLength: 14
                          description: 'DB6: Timestamp (Format: YYYYMMDDHHMMSS)'
                        BACKUPSEQ:
                          type: string
                          maxLength: 3
                          description: ''
                        PARTITN:
                          type: integer
                          format: int32
                          description: ''
                        COMPTIME:
                          type: string
                          maxLength: 14
                          description: 'DB6: Timestamp (Format: YYYYMMDDHHMMSS)'
                        BACKUPEND:
                          type: string
                          maxLength: 14
                          description: 'DB6: Timestamp (Format: YYYYMMDDHHMMSS)'
                        FIRSTLOG:
                          type: string
                          maxLength: 20
                          description: 'DB6: General identifier'
                        LASTLOG:
                          type: string
                          maxLength: 20
                          description: 'DB6: General identifier'
                        LOCATION:
                          type: string
                          maxLength: 255
                          description: 'DB6: File Path'
                        COMMENTS:
                          type: string
                          maxLength: 30
                          description: ''
                        BACKUPRC:
                          type: integer
                          format: int64
                          description: ''
                        TBS_NAME:
                          type: string
                          maxLength: 30
                          description: 'DB6: Tablespace Name'
                        GRANULAITY:
                          type: string
                          maxLength: 20
                          description: 'DB6: General identifier'
                        BACKUPTYPE:
                          type: string
                          maxLength: 20
                          description: 'DB6: General identifier'
                        BACKUPDEV:
                          type: string
                          maxLength: 20
                          description: 'DB6: General identifier'
                        ERRORTEXT:
                          type: string
                          maxLength: 1024
                          description: ''
                        STATUS:
                          type: string
                          maxLength: 20
                          description: 'DB6: General identifier'
                        EID:
                          type: integer
                          format: int32
                          description: ''
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
