openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/DB6_HIS_TABLE_INDEX_HD:
    post:
      tags:
      - SDB6DB02
      summary: 'DB6: get table index history'
      operationId: /rfc/DB6_HIS_TABLE_INDEX_HD
      requestBody:
        content:
          application/json:
            schema:
              properties:
                CONNECTION:
                  type: string
                  maxLength: 30
                  description: Logical name for a database connection
                MAXOBJ:
                  type: integer
                  format: int32
                  description: 'DB6: max rows to return, if maxobj_active = ''X'''
                MAXOBJ_ACTIVE:
                  type: string
                  maxLength: 1
                  description: 'DB6: is maxobj relevant'
                OBJECTNAME:
                  type: string
                  maxLength: 18
                  description: 'DB2 Universal Database: Table Name'
                OBJECTTYPE:
                  type: string
                  maxLength: 1
                  description: 'DB6: type of object (T=table,I=Index)'
                RBGROWTH:
                  type: string
                  maxLength: 1
                  description: 'DB6: sorted by growth'
                RBSIZE:
                  type: string
                  maxLength: 1
                  description: 'DB6: sorted by size'
                SIZEKB:
                  type: integer
                  format: int64
                  description: 'DB6: size of object in KB'
                STATTYPE:
                  type: string
                  maxLength: 1
                  description: 'DB6: Type of statistics (D=daily,W=weekly,M=monthly)'
                TBSNAME:
                  type: string
                  maxLength: 30
                  description: 'DB2 Universal Database: Tablespace Name'
                IT_DB6PM_T_HD:
                  type: array
                  items:
                    type: object
                    properties:
                      STATTYPE:
                        type: string
                        maxLength: 1
                        description: 'DB6: Type of statistics (D=daily,W=weekly,M=monthly)'
                      OBJECTNAME:
                        type: string
                        maxLength: 18
                        description: 'DB6: Table Name'
                      OBJECTTYPE:
                        type: string
                        maxLength: 13
                        description: 'DB6: type of object (Table,Index)'
                      TBSNAME:
                        type: string
                        maxLength: 30
                        description: 'DB6: Tablespace Name'
                      SIZEKB:
                        type: integer
                        format: int64
                        description: 'DB6: size of object in KB'
                      C_SIZEKB:
                        type: integer
                        format: int64
                        description: 'DB6: size of changes/interval in KB'
                      RUNSTATDAT:
                        type: string
                        format: date
                        description: 'DB6: date of last runstats'
                      RUNSTATTIM:
                        type: string
                        maxLength: 6
                        description: 'DB6: time of last runstats'
              required:
              - OBJECTNAME
              - OBJECTTYPE
              - SIZEKB
              - STATTYPE
              - TBSNAME
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  IT_DB6PM_T_HD:
                    type: array
                    items:
                      type: object
                      properties:
                        STATTYPE:
                          type: string
                          maxLength: 1
                          description: 'DB6: Type of statistics (D=daily,W=weekly,M=monthly)'
                        OBJECTNAME:
                          type: string
                          maxLength: 18
                          description: 'DB6: Table Name'
                        OBJECTTYPE:
                          type: string
                          maxLength: 13
                          description: 'DB6: type of object (Table,Index)'
                        TBSNAME:
                          type: string
                          maxLength: 30
                          description: 'DB6: Tablespace Name'
                        SIZEKB:
                          type: integer
                          format: int64
                          description: 'DB6: size of object in KB'
                        C_SIZEKB:
                          type: integer
                          format: int64
                          description: 'DB6: size of changes/interval in KB'
                        RUNSTATDAT:
                          type: string
                          format: date
                          description: 'DB6: date of last runstats'
                        RUNSTATTIM:
                          type: string
                          maxLength: 6
                          description: 'DB6: time of last runstats'
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
