openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/DB6_PM_TABLE_REORGS:
    post:
      tags:
      - SDB6PMST04
      summary: 'DB6: Status of inplace table reorganizations'
      operationId: /rfc/DB6_PM_TABLE_REORGS
      requestBody:
        content:
          application/json:
            schema:
              properties:
                ACTION:
                  type: integer
                  format: int32
                CALLERFLAG:
                  type: string
                  maxLength: 1
                  description: 'DB6: Timestamp (Format: YYYYMMDDHHMMSS)'
                COMPLETED:
                  type: string
                  maxLength: 1
                  description: View also completed REORGs
                COMPTIME:
                  type: string
                  maxLength: 14
                  description: 'DB6: Timestamp (Format: YYYYMMDDHHMMSS)'
                CONNECTION:
                  type: string
                  maxLength: 30
                  description: Logical name for a database connection
                DBSTARTTIME:
                  type: string
                  maxLength: 14
                  description: 'DB6: Timestamp (Format: YYYYMMDDHHMMSS)'
                FROM_HIST_FILE:
                  type: string
                  maxLength: 1
                  description: read history file
                PARTITN:
                  type: integer
                  format: int32
                  description: Partition Number
                IT_DB6PMSR_ONL:
                  type: array
                  items:
                    type: object
                    properties:
                      COMPTIME:
                        type: string
                        maxLength: 14
                        description: 'DB6: Timestamp (Format: YYYYMMDDHHMMSS)'
                      PARTITN:
                        type: string
                        maxLength: 4
                        description: 'DB6: Partition Name for Listbox Element'
                      TAB_SCHEMA:
                        type: string
                        maxLength: 20
                        description: 'DB6: Schema Name'
                      TABLE_NAME:
                        type: string
                        maxLength: 128
                        description: 'DB6: long table name'
                      REORG_CURRENT_COUNTER:
                        type: integer
                        format: int64
                        description: 'DB6: Current amount of reorganization done'
                      REORG_MAX_COUNTER:
                        type: integer
                        format: int64
                        description: 'DB6: Total amount of reorganization to be done'
                      ACCESS_MODE:
                        type: string
                        maxLength: 10
                        description: 'DB6: READ/WRITE/NO ACCESS'
                      RECLUSTER:
                        type: string
                        maxLength: 10
                        description: 'DB6: Recluster via index scan YES/NO'
                      REORG_LOB:
                        type: string
                        maxLength: 10
                        description: 'DB6: LONGLOBDATA clause YES/NO'
                      NO_TRUNCATE:
                        type: string
                        maxLength: 10
                        description: 'DB6: NO TRUNCATE TABLE clause YES/NO'
                      REORG_STATUS:
                        type: string
                        maxLength: 50
                        description: reorg status of table
                      REORG_TBSPC:
                        type: string
                        maxLength: 30
                        description: 'DB6: The table space in which the table will be reorganized'
                      PROGRESS:
                        type: integer
                        format: int64
                        description: Progress of REORG in percentages
                      START_DATE:
                        type: string
                        format: date
                        description: Field of type DATS
                      START_TIME:
                        type: string
                        maxLength: 6
                        description: Field of type TIMS
                      PHASE_START_DATE:
                        type: string
                        format: date
                        description: Field of type DATS
                      PHASE_START_TIME:
                        type: string
                        maxLength: 6
                        description: Field of type TIMS
                      REORG_STATUS_FLAG:
                        type: integer
                        format: int32
                        description: ''
              required:
              - ACTION
              - CALLERFLAG
              - DBSTARTTIME
              - PARTITN
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  PAUSED:
                    type: integer
                    format: int32
                    description: 'DB6: Timestamp (Format: YYYYMMDDHHMMSS)'
                  RUNNING:
                    type: integer
                    format: int32
                    description: 'DB6: Timestamp (Format: YYYYMMDDHHMMSS)'
                  IT_DB6PMSR_ONL:
                    type: array
                    items:
                      type: object
                      properties:
                        COMPTIME:
                          type: string
                          maxLength: 14
                          description: 'DB6: Timestamp (Format: YYYYMMDDHHMMSS)'
                        PARTITN:
                          type: string
                          maxLength: 4
                          description: 'DB6: Partition Name for Listbox Element'
                        TAB_SCHEMA:
                          type: string
                          maxLength: 20
                          description: 'DB6: Schema Name'
                        TABLE_NAME:
                          type: string
                          maxLength: 128
                          description: 'DB6: long table name'
                        REORG_CURRENT_COUNTER:
                          type: integer
                          format: int64
                          description: 'DB6: Current amount of reorganization done'
                        REORG_MAX_COUNTER:
                          type: integer
                          format: int64
                          description: 'DB6: Total amount of reorganization to be done'
                        ACCESS_MODE:
                          type: string
                          maxLength: 10
                          description: 'DB6: READ/WRITE/NO ACCESS'
                        RECLUSTER:
                          type: string
                          maxLength: 10
                          description: 'DB6: Recluster via index scan YES/NO'
                        REORG_LOB:
                          type: string
                          maxLength: 10
                          description: 'DB6: LONGLOBDATA clause YES/NO'
                        NO_TRUNCATE:
                          type: string
                          maxLength: 10
                          description: 'DB6: NO TRUNCATE TABLE clause YES/NO'
                        REORG_STATUS:
                          type: string
                          maxLength: 50
                          description: reorg status of table
                        REORG_TBSPC:
                          type: string
                          maxLength: 30
                          description: 'DB6: The table space in which the table will be reorganized'
                        PROGRESS:
                          type: integer
                          format: int64
                          description: Progress of REORG in percentages
                        START_DATE:
                          type: string
                          format: date
                          description: Field of type DATS
                        START_TIME:
                          type: string
                          maxLength: 6
                          description: Field of type TIMS
                        PHASE_START_DATE:
                          type: string
                          format: date
                          description: Field of type DATS
                        PHASE_START_TIME:
                          type: string
                          maxLength: 6
                          description: Field of type TIMS
                        REORG_STATUS_FLAG:
                          type: integer
                          format: int32
                          description: ''
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
