openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/DB6_HIS_DBTBS_XT:
    post:
      tags:
      - SDB6DB02
      summary: 'DB6: get data for database and tablespace history (RFC Layer 1)'
      operationId: /rfc/DB6_HIS_DBTBS_XT
      requestBody:
        content:
          application/json:
            schema:
              properties:
                CONNECTION:
                  type: string
                  maxLength: 30
                  description: Logical name for a database connection
                OBJECTNAME:
                  type: string
                  maxLength: 30
                  description: type of data (Database, Tablespace)
                STATTYPE:
                  type: string
                  maxLength: 1
                  description: type of statistic (D, W, M)
                IT_DB6PM_XTHD:
                  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: 30
                        description: 'DB6: Tablespace Name'
                      TABLENUM:
                        type: integer
                        format: int64
                        description: 'DB6: number of tables located in object'
                      C_TABLENUM:
                        type: integer
                        format: int64
                        description: 'DB6: changes/interval for number of tables'
                      TABLEKB:
                        type: integer
                        format: int64
                        description: 'DB6: total size of tables located in object'
                      C_TABLEKB:
                        type: integer
                        format: int64
                        description: 'DB6: changes/interval for total size of tables'
                      INDEXNUM:
                        type: integer
                        format: int64
                        description: 'DB6: number of indexes located in object'
                      C_INDEXNUM:
                        type: integer
                        format: int64
                        description: 'DB6: changes/interval for number of indexes'
                      INDEXKB:
                        type: integer
                        format: int64
                        description: 'DB6: total size of indexes located in object'
                      C_INDEXKB:
                        type: integer
                        format: int64
                        description: 'DB6: changes/interval for total size of indexes'
              required:
              - OBJECTNAME
              - STATTYPE
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  IT_DB6PM_XTHD:
                    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: 30
                          description: 'DB6: Tablespace Name'
                        TABLENUM:
                          type: integer
                          format: int64
                          description: 'DB6: number of tables located in object'
                        C_TABLENUM:
                          type: integer
                          format: int64
                          description: 'DB6: changes/interval for number of tables'
                        TABLEKB:
                          type: integer
                          format: int64
                          description: 'DB6: total size of tables located in object'
                        C_TABLEKB:
                          type: integer
                          format: int64
                          description: 'DB6: changes/interval for total size of tables'
                        INDEXNUM:
                          type: integer
                          format: int64
                          description: 'DB6: number of indexes located in object'
                        C_INDEXNUM:
                          type: integer
                          format: int64
                          description: 'DB6: changes/interval for number of indexes'
                        INDEXKB:
                          type: integer
                          format: int64
                          description: 'DB6: total size of indexes located in object'
                        C_INDEXKB:
                          type: integer
                          format: int64
                          description: 'DB6: changes/interval for total size of indexes'
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
