openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/DB6_PM_ARCHIVE_HISTORY:
    post:
      tags:
      - SDB6PM
      summary: 'DB6: Get Log Archiving History'
      operationId: /rfc/DB6_PM_ARCHIVE_HISTORY
      requestBody:
        content:
          application/json:
            schema:
              properties:
                ACTION:
                  type: integer
                  format: int32
                CALLERFLAG:
                  type: string
                  maxLength: 1
                  description: Who Has Called this Program
                COMPTIME:
                  type: string
                  maxLength: 14
                  description: 'DB6: Timestamp (Format: YYYYMMDDHHMMSS)'
                CONNECTION:
                  type: string
                  maxLength: 30
                  description: Logical name for a database connection
                DAYS:
                  type: integer
                  format: int32
                  description: Logical name for a database connection
                PARTITN:
                  type: integer
                  format: int32
                  description: Partition Number
                IT_DB6PMCG:
                  type: array
                  items:
                    type: object
                    properties:
                      PROGID:
                        type: string
                        maxLength: 5
                        description: Program ID as defined in table SDBAC
                      MOVETIME:
                        type: string
                        maxLength: 14
                        description: 'DB6: Timestamp (Format: YYYYMMDDHHMMSS)'
                      PARTITN:
                        type: integer
                        format: int32
                        description: Partition Number
                      LOGNAME:
                        type: string
                        maxLength: 20
                        description: 'DB6: General identifier'
                      RETURNCODE:
                        type: integer
                        format: int32
                        description: Returncode of operation(0=ok,1=Warning,2=Error)
                      COMPTIME:
                        type: string
                        maxLength: 14
                        description: 'DB6: Timestamp (Format: YYYYMMDDHHMMSS)'
                      TARGET:
                        type: string
                        maxLength: 20
                        description: 'DB6: General identifier'
                      LOCATION:
                        type: string
                        maxLength: 255
                        description: 'DB6: File Path'
                      CHAIN:
                        type: string
                        maxLength: 20
                        description: 'DB6: General identifier'
                      ARCHTYPE:
                        type: string
                        maxLength: 20
                        description: 'DB6: General identifier'
                      DOUBLSTORLOC:
                        type: string
                        maxLength: 32
                        description: 'DB6: Long 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_DB6PMCG:
                    type: array
                    items:
                      type: object
                      properties:
                        PROGID:
                          type: string
                          maxLength: 5
                          description: Program ID as defined in table SDBAC
                        MOVETIME:
                          type: string
                          maxLength: 14
                          description: 'DB6: Timestamp (Format: YYYYMMDDHHMMSS)'
                        PARTITN:
                          type: integer
                          format: int32
                          description: Partition Number
                        LOGNAME:
                          type: string
                          maxLength: 20
                          description: 'DB6: General identifier'
                        RETURNCODE:
                          type: integer
                          format: int32
                          description: Returncode of operation(0=ok,1=Warning,2=Error)
                        COMPTIME:
                          type: string
                          maxLength: 14
                          description: 'DB6: Timestamp (Format: YYYYMMDDHHMMSS)'
                        TARGET:
                          type: string
                          maxLength: 20
                          description: 'DB6: General identifier'
                        LOCATION:
                          type: string
                          maxLength: 255
                          description: 'DB6: File Path'
                        CHAIN:
                          type: string
                          maxLength: 20
                          description: 'DB6: General identifier'
                        ARCHTYPE:
                          type: string
                          maxLength: 20
                          description: 'DB6: General identifier'
                        DOUBLSTORLOC:
                          type: string
                          maxLength: 32
                          description: 'DB6: Long identifier'
                        STATUS:
                          type: string
                          maxLength: 20
                          description: 'DB6: General identifier'
                        EID:
                          type: integer
                          format: int32
                          description: ''
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
