openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/DB6_PM_TBSCONFIG1:
    post:
      tags:
      - SDB6CFG
      summary: 'DB6: Tablespace Configuration (Calculations)'
      operationId: /rfc/DB6_PM_TBSCONFIG1
      requestBody:
        content:
          application/json:
            schema:
              properties:
                ACTION:
                  type: integer
                  format: int32
                  description: which action should be started
                CONNECTION:
                  type: string
                  maxLength: 30
                  description: Logical name for a database connection
                PARTITN:
                  type: integer
                  format: int32
                  description: Partition Number
                IT_DB6PMCTBS:
                  type: array
                  items:
                    type: object
                    properties:
                      COMPTIME:
                        type: string
                        maxLength: 14
                        description: 'DB6: Timestamp (Format: YYYYMMDDHHMMSS)'
                      DBMSTRTTME:
                        type: string
                        maxLength: 14
                        description: 'DB6: Timestamp (Format: YYYYMMDDHHMMSS)'
                      TBS_ID:
                        type: integer
                        format: int64
                        description: Tabelspace ID
                      TBS_NAME:
                        type: string
                        maxLength: 30
                        description: 'DB6: Tablespace Name'
                      PARTITN:
                        type: string
                        maxLength: 5
                        description: Partition number
                      TBS_TYPE:
                        type: string
                        maxLength: 50
                        description: E.g. SMS, DMS
                      TOTALKB:
                        type: integer
                        format: int64
                        description: Total KB
                      TOTALPAGES:
                        type: integer
                        format: int64
                        description: Total Pages
                      USABLEKB:
                        type: integer
                        format: int64
                        description: Toal KB minus Overhead
                      USABLEPGS:
                        type: integer
                        format: int64
                        description: Total Pages minus Overhead
                      USEDKB:
                        type: integer
                        format: int64
                        description: Used KB
                      USEDPAGES:
                        type: integer
                        format: int64
                        description: Used Pages
                      PCTUSEDKB:
                        type: integer
                        format: int64
                        description: '% used of usable'
                      FREEKB:
                        type: integer
                        format: int64
                        description: Usable KB minus Used KB
                      FREEPAGES:
                        type: integer
                        format: int64
                        description: Usable Pages minus Used Pages
                      PCTFREEKB:
                        type: integer
                        format: int64
                        description: '% free of usable'
                      PAGESIZE:
                        type: integer
                        format: int64
                        description: Page Size in Bytes
                      HGHWTRMRK:
                        type: integer
                        format: int64
                        description: High Water Mark of Used Page Numbers
                      EXTSIZE:
                        type: integer
                        format: int64
                        description: Extent Size in Pages
                      PF_SZ:
                        type: integer
                        format: int64
                        description: Prefetch Size
                      NUM_CONT:
                        type: integer
                        format: int64
                        description: Number of Containers
                      CONTENTS:
                        type: string
                        maxLength: 50
                        description: E.g. Regular Contents, Temporary Data, ...
                      TBSSTATE:
                        type: string
                        maxLength: 50
                        description: e.g. Normal, Load Pending, ...
                      AUTOSTOR:
                        type: string
                        maxLength: 3
                        description: ''
                      AUTORESIZ:
                        type: string
                        maxLength: 3
                        description: ''
                      INITSIZ:
                        type: integer
                        format: int64
                        description: ''
                      CURRSIZ:
                        type: integer
                        format: int64
                        description: ''
                      INCRSIZABS:
                        type: integer
                        format: int64
                        description: ''
                      INCRSIZPCT:
                        type: integer
                        format: int64
                        description: ''
                      LASTRSZDAT:
                        type: string
                        format: date
                        description: ''
                      LASTRSZTIM:
                        type: string
                        maxLength: 6
                        description: ''
                      LASTRSZFAI:
                        type: integer
                        format: int32
                        description: ''
                      MAX_SIZE:
                        type: integer
                        format: int64
                        description: ''
                      FS_CACHING:
                        type: string
                        maxLength: 3
                        description: 'fs_caching: status of filesystem caching'
                      TBSP_CUR_POOL_ID:
                        type: integer
                        format: int64
                        description: 'tbsp_curr_pool_id: current bufferpool ID'
                      TBSP_NXT_POOL_ID:
                        type: integer
                        format: int64
                        description: 'tbsp_next_pool_id: bufferpool ID at next startup'
                      TBSP_PENDING_FREE_PAGES:
                        type: integer
                        format: int64
                        description: tbsp_pending_free_pages
                      TBSP_MIN_RECOVERY_TIME:
                        type: string
                        maxLength: 14
                        description: 'DB6: Timestamp (Format: YYYYMMDDHHMMSS)'
                      TBSP_NUM_RANGES:
                        type: integer
                        format: int64
                        description: tbsp_num_ranges
              required:
              - ACTION
              - PARTITN
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  IT_DB6PMCTBS:
                    type: array
                    items:
                      type: object
                      properties:
                        COMPTIME:
                          type: string
                          maxLength: 14
                          description: 'DB6: Timestamp (Format: YYYYMMDDHHMMSS)'
                        DBMSTRTTME:
                          type: string
                          maxLength: 14
                          description: 'DB6: Timestamp (Format: YYYYMMDDHHMMSS)'
                        TBS_ID:
                          type: integer
                          format: int64
                          description: Tabelspace ID
                        TBS_NAME:
                          type: string
                          maxLength: 30
                          description: 'DB6: Tablespace Name'
                        PARTITN:
                          type: string
                          maxLength: 5
                          description: Partition number
                        TBS_TYPE:
                          type: string
                          maxLength: 50
                          description: E.g. SMS, DMS
                        TOTALKB:
                          type: integer
                          format: int64
                          description: Total KB
                        TOTALPAGES:
                          type: integer
                          format: int64
                          description: Total Pages
                        USABLEKB:
                          type: integer
                          format: int64
                          description: Toal KB minus Overhead
                        USABLEPGS:
                          type: integer
                          format: int64
                          description: Total Pages minus Overhead
                        USEDKB:
                          type: integer
                          format: int64
                          description: Used KB
                        USEDPAGES:
                          type: integer
                          format: int64
                          description: Used Pages
                        PCTUSEDKB:
                          type: integer
                          format: int64
                          description: '% used of usable'
                        FREEKB:
                          type: integer
                          format: int64
                          description: Usable KB minus Used KB
                        FREEPAGES:
                          type: integer
                          format: int64
                          description: Usable Pages minus Used Pages
                        PCTFREEKB:
                          type: integer
                          format: int64
                          description: '% free of usable'
                        PAGESIZE:
                          type: integer
                          format: int64
                          description: Page Size in Bytes
                        HGHWTRMRK:
                          type: integer
                          format: int64
                          description: High Water Mark of Used Page Numbers
                        EXTSIZE:
                          type: integer
                          format: int64
                          description: Extent Size in Pages
                        PF_SZ:
                          type: integer
                          format: int64
                          description: Prefetch Size
                        NUM_CONT:
                          type: integer
                          format: int64
                          description: Number of Containers
                        CONTENTS:
                          type: string
                          maxLength: 50
                          description: E.g. Regular Contents, Temporary Data, ...
                        TBSSTATE:
                          type: string
                          maxLength: 50
                          description: e.g. Normal, Load Pending, ...
                        AUTOSTOR:
                          type: string
                          maxLength: 3
                          description: ''
                        AUTORESIZ:
                          type: string
                          maxLength: 3
                          description: ''
                        INITSIZ:
                          type: integer
                          format: int64
                          description: ''
                        CURRSIZ:
                          type: integer
                          format: int64
                          description: ''
                        INCRSIZABS:
                          type: integer
                          format: int64
                          description: ''
                        INCRSIZPCT:
                          type: integer
                          format: int64
                          description: ''
                        LASTRSZDAT:
                          type: string
                          format: date
                          description: ''
                        LASTRSZTIM:
                          type: string
                          maxLength: 6
                          description: ''
                        LASTRSZFAI:
                          type: integer
                          format: int32
                          description: ''
                        MAX_SIZE:
                          type: integer
                          format: int64
                          description: ''
                        FS_CACHING:
                          type: string
                          maxLength: 3
                          description: 'fs_caching: status of filesystem caching'
                        TBSP_CUR_POOL_ID:
                          type: integer
                          format: int64
                          description: 'tbsp_curr_pool_id: current bufferpool ID'
                        TBSP_NXT_POOL_ID:
                          type: integer
                          format: int64
                          description: 'tbsp_next_pool_id: bufferpool ID at next startup'
                        TBSP_PENDING_FREE_PAGES:
                          type: integer
                          format: int64
                          description: tbsp_pending_free_pages
                        TBSP_MIN_RECOVERY_TIME:
                          type: string
                          maxLength: 14
                          description: 'DB6: Timestamp (Format: YYYYMMDDHHMMSS)'
                        TBSP_NUM_RANGES:
                          type: integer
                          format: int64
                          description: tbsp_num_ranges
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
