openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/DB6_PM_BACKUPHISTORY:
    post:
      tags:
      - SDB6PM
      summary: 'DB6: List Entries of DB2 Backup History File'
      operationId: /rfc/DB6_PM_BACKUPHISTORY
      requestBody:
        content:
          application/json:
            schema:
              properties:
                ACTION:
                  type: integer
                  format: int32
                CALLERFLAG:
                  type: string
                  maxLength: 1
                  description: Who Has Called this Program
                CONNECTION:
                  type: string
                  maxLength: 30
                  description: Logical name for a database connection
                DAYS:
                  type: integer
                  format: int32
                  description: 'DB6: Days to retrieve from backup history (default one year)'
                PARTITN:
                  type: integer
                  format: int32
                  description: Partition Number
                IT_DB6PMCK:
                  type: array
                  items:
                    type: object
                    properties:
                      BACKUPTS:
                        type: string
                        maxLength: 14
                        description: 'DB6: Timestamp (Format: YYYYMMDDHHMMSS)'
                      BACKUPSEQ:
                        type: string
                        maxLength: 3
                        description: backup sequence
                      PARTITN:
                        type: integer
                        format: int32
                        description: Partition Number
                      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: Comment
                      BACKUPRC:
                        type: integer
                        format: int64
                        description: Return Code baclup
                      NUM_TBS:
                        type: integer
                        format: int64
                        description: Number of Tablespaces backuped
                      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'
                      STATUS:
                        type: string
                        maxLength: 20
                        description: 'DB6: General identifier'
                      EID:
                        type: integer
                        format: int32
                        description: ''
              required:
              - ACTION
              - CALLERFLAG
              - DAYS
              - PARTITN
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  IT_DB6PMCK:
                    type: array
                    items:
                      type: object
                      properties:
                        BACKUPTS:
                          type: string
                          maxLength: 14
                          description: 'DB6: Timestamp (Format: YYYYMMDDHHMMSS)'
                        BACKUPSEQ:
                          type: string
                          maxLength: 3
                          description: backup sequence
                        PARTITN:
                          type: integer
                          format: int32
                          description: Partition Number
                        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: Comment
                        BACKUPRC:
                          type: integer
                          format: int64
                          description: Return Code baclup
                        NUM_TBS:
                          type: integer
                          format: int64
                          description: Number of Tablespaces backuped
                        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'
                        STATUS:
                          type: string
                          maxLength: 20
                          description: 'DB6: General identifier'
                        EID:
                          type: integer
                          format: int32
                          description: ''
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
