openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/DB6_PM_TABSPACECONFIG:
    post:
      tags:
      - SDB6PM
      summary: 'DB6: Get Tablespace Configuration'
      operationId: /rfc/DB6_PM_TABSPACECONFIG
      requestBody:
        content:
          application/json:
            schema:
              properties:
                ACTION:
                  type: integer
                  format: int32
                CALLERFLAG:
                  type: string
                  maxLength: 1
                  description: Who Has Called this Program
                COMPTIME:
                  type: string
                  maxLength: 14
                  description: 'DB6: Timestamp (Format: YYYYMMDDHHMMSS)'
                CONNECTION:
                  type: string
                  maxLength: 30
                  description: Logical name for a database connection
                PARTITN:
                  type: integer
                  format: int32
                  description: Partition Number
                IT_DB6PMCP:
                  type: array
                  items:
                    type: object
                    properties:
                      COMPTIME:
                        type: string
                        maxLength: 14
                        description: 'DB6: Timestamp (Format: YYYYMMDDHHMMSS)'
                      PARTITN:
                        type: integer
                        format: int32
                        description: Partition Number
                      TBS_ID:
                        type: integer
                        format: int64
                        description: 'id: Tablespace ID'
                      CALLERFLAG:
                        type: string
                        maxLength: 1
                        description: Who Has Called this Program
                      DBMSTRTTME:
                        type: string
                        maxLength: 14
                        description: 'DB6: Timestamp (Format: YYYYMMDDHHMMSS)'
                      PRGVERS:
                        type: string
                        maxLength: 20
                        description: Version of Program Inserted this Row
                      TBS_NAME:
                        type: string
                        maxLength: 30
                        description: 'DB6: Tablespace Name'
                      TBS_TYPE:
                        type: string
                        maxLength: 50
                        description: 'type: For Example, SMS or DMS'
                      CONTENTS:
                        type: string
                        maxLength: 50
                        description: 'contents: For Example, Regular Contents, Temporary Data'
                      TBSSTATE:
                        type: string
                        maxLength: 50
                        description: 'tbsstate: For Example, Normal, Load Pending'
                      TOTALPAGES:
                        type: integer
                        format: int64
                        description: 'totalpages: Total Pages'
                      USABLEPGS:
                        type: integer
                        format: int64
                        description: 'usablepages: Total Pages Minus Overhead'
                      PAGESIZE:
                        type: integer
                        format: int64
                        description: 'pagesize: Page Size in Bytes'
                      EXTSIZE:
                        type: integer
                        format: int64
                        description: 'extsize: Extent Size in Pages'
                      PF_SZ:
                        type: integer
                        format: int64
                        description: 'prefetchsize: Prefetch Size'
                      NUM_CONT:
                        type: integer
                        format: int64
                        description: 'ncontainers: Number of Containers'
                      USEDPAGES:
                        type: integer
                        format: int64
                        description: 'usedpages: Used Pages'
                      FREEPAGES:
                        type: integer
                        format: int64
                        description: 'freepages: Usable Pages Minus Used Pages'
                      HGHWTRMRK:
                        type: integer
                        format: int64
                        description: 'highwatermark: High Water Mark of Used Page Numbers'
                      AUTOSTOR:
                        type: string
                        maxLength: 3
                        description: is_automatic_storage:Managed by AUTOSTORAGE
                      AUTORESIZ:
                        type: string
                        maxLength: 3
                        description: 'is_auto_resize_enabled: automatic RESIZE enabled'
                      INITSIZ:
                        type: integer
                        format: int64
                        description: 'tbsp_initial_size: Initial tablespace size'
                      CURRSIZ:
                        type: integer
                        format: int64
                        description: 'tbsp_current_size: Current tablespace size'
                      INCRSIZABS:
                        type: integer
                        format: int64
                        description: 'increase_size: Absolute value for automatich increase'
                      INCRSIZPCT:
                        type: integer
                        format: int64
                        description: 'increase_size_percent: percentual value of automatic resize'
                      LASTRESIZ:
                        type: string
                        maxLength: 14
                        description: 'DB6: Timestamp (Format: YYYYMMDDHHMMSS)'
                      LASTRSZFAI:
                        type: integer
                        format: int32
                        description: 'last_resize_attempt_failed: status of failed resize'
                      MAX_SIZE:
                        type: integer
                        format: int64
                        description: 'tbsp_max_size: maximum allowed size for auto extent'
                      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
              - CALLERFLAG
              - PARTITN
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  IT_DB6PMCP:
                    type: array
                    items:
                      type: object
                      properties:
                        COMPTIME:
                          type: string
                          maxLength: 14
                          description: 'DB6: Timestamp (Format: YYYYMMDDHHMMSS)'
                        PARTITN:
                          type: integer
                          format: int32
                          description: Partition Number
                        TBS_ID:
                          type: integer
                          format: int64
                          description: 'id: Tablespace ID'
                        CALLERFLAG:
                          type: string
                          maxLength: 1
                          description: Who Has Called this Program
                        DBMSTRTTME:
                          type: string
                          maxLength: 14
                          description: 'DB6: Timestamp (Format: YYYYMMDDHHMMSS)'
                        PRGVERS:
                          type: string
                          maxLength: 20
                          description: Version of Program Inserted this Row
                        TBS_NAME:
                          type: string
                          maxLength: 30
                          description: 'DB6: Tablespace Name'
                        TBS_TYPE:
                          type: string
                          maxLength: 50
                          description: 'type: For Example, SMS or DMS'
                        CONTENTS:
                          type: string
                          maxLength: 50
                          description: 'contents: For Example, Regular Contents, Temporary Data'
                        TBSSTATE:
                          type: string
                          maxLength: 50
                          description: 'tbsstate: For Example, Normal, Load Pending'
                        TOTALPAGES:
                          type: integer
                          format: int64
                          description: 'totalpages: Total Pages'
                        USABLEPGS:
                          type: integer
                          format: int64
                          description: 'usablepages: Total Pages Minus Overhead'
                        PAGESIZE:
                          type: integer
                          format: int64
                          description: 'pagesize: Page Size in Bytes'
                        EXTSIZE:
                          type: integer
                          format: int64
                          description: 'extsize: Extent Size in Pages'
                        PF_SZ:
                          type: integer
                          format: int64
                          description: 'prefetchsize: Prefetch Size'
                        NUM_CONT:
                          type: integer
                          format: int64
                          description: 'ncontainers: Number of Containers'
                        USEDPAGES:
                          type: integer
                          format: int64
                          description: 'usedpages: Used Pages'
                        FREEPAGES:
                          type: integer
                          format: int64
                          description: 'freepages: Usable Pages Minus Used Pages'
                        HGHWTRMRK:
                          type: integer
                          format: int64
                          description: 'highwatermark: High Water Mark of Used Page Numbers'
                        AUTOSTOR:
                          type: string
                          maxLength: 3
                          description: is_automatic_storage:Managed by AUTOSTORAGE
                        AUTORESIZ:
                          type: string
                          maxLength: 3
                          description: 'is_auto_resize_enabled: automatic RESIZE enabled'
                        INITSIZ:
                          type: integer
                          format: int64
                          description: 'tbsp_initial_size: Initial tablespace size'
                        CURRSIZ:
                          type: integer
                          format: int64
                          description: 'tbsp_current_size: Current tablespace size'
                        INCRSIZABS:
                          type: integer
                          format: int64
                          description: 'increase_size: Absolute value for automatich increase'
                        INCRSIZPCT:
                          type: integer
                          format: int64
                          description: 'increase_size_percent: percentual value of automatic resize'
                        LASTRESIZ:
                          type: string
                          maxLength: 14
                          description: 'DB6: Timestamp (Format: YYYYMMDDHHMMSS)'
                        LASTRSZFAI:
                          type: integer
                          format: int32
                          description: 'last_resize_attempt_failed: status of failed resize'
                        MAX_SIZE:
                          type: integer
                          format: int64
                          description: 'tbsp_max_size: maximum allowed size for auto extent'
                        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.
