openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/DB6_HIS_DBTBS_DETAIL_XP:
    post:
      tags:
      - SDB6DB02
      summary: 'DB6: get details of space history'
      operationId: /rfc/DB6_HIS_DBTBS_DETAIL_XP
      requestBody:
        content:
          application/json:
            schema:
              properties:
                CONNECTION:
                  type: string
                  maxLength: 30
                  description: Logical name for a database connection
                OBJECTNAME:
                  type: string
                  maxLength: 30
                  description: 'DB2 Universal Database: Tablespace Name'
                PARTITN:
                  type: integer
                  format: int32
                  description: 'DB6: Partition Number'
                STATTYPE:
                  type: string
                  maxLength: 1
                  description: 'DB6: Type of statistics (D=daily,W=weekly,M=monthly)'
                IT_DB6PM_XP:
                  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'
                      PARTITN:
                        type: integer
                        format: int32
                        description: 'DB6: Partition Number'
                      BASEDATE:
                        type: string
                        format: date
                        description: 'DB6: reference date of the statistics'
                      TOTALKB:
                        type: integer
                        format: int64
                        description: 'DB6: size of object in KB'
                      D_TOTALKB:
                        type: integer
                        format: int64
                        description: 'DB6: size of object in KB delta'
                      USEDKB:
                        type: integer
                        format: int64
                        description: 'DB6: used size of object in KB'
                      D_USEDKB:
                        type: integer
                        format: int64
                        description: 'DB6: used size of object in KB delta'
                      PCTUSEDKB:
                        type: integer
                        format: int64
                        description: 'DB6: used size of object in %'
                      FREEKB:
                        type: integer
                        format: int64
                        description: 'DB6: size of object in KB'
                      NUM_CONT:
                        type: integer
                        format: int64
                        description: 'DB6: number of containers'
                      D_NUM_CONT:
                        type: integer
                        format: int64
                        description: 'DB6: number of containers delta'
              required:
              - OBJECTNAME
              - PARTITN
              - STATTYPE
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  IT_DB6PM_XP:
                    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'
                        PARTITN:
                          type: integer
                          format: int32
                          description: 'DB6: Partition Number'
                        BASEDATE:
                          type: string
                          format: date
                          description: 'DB6: reference date of the statistics'
                        TOTALKB:
                          type: integer
                          format: int64
                          description: 'DB6: size of object in KB'
                        D_TOTALKB:
                          type: integer
                          format: int64
                          description: 'DB6: size of object in KB delta'
                        USEDKB:
                          type: integer
                          format: int64
                          description: 'DB6: used size of object in KB'
                        D_USEDKB:
                          type: integer
                          format: int64
                          description: 'DB6: used size of object in KB delta'
                        PCTUSEDKB:
                          type: integer
                          format: int64
                          description: 'DB6: used size of object in %'
                        FREEKB:
                          type: integer
                          format: int64
                          description: 'DB6: size of object in KB'
                        NUM_CONT:
                          type: integer
                          format: int64
                          description: 'DB6: number of containers'
                        D_NUM_CONT:
                          type: integer
                          format: int64
                          description: 'DB6: number of containers delta'
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
