openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/DB6_PM_TABLESNAP:
    post:
      tags:
      - SDB6PM
      summary: 'DB6: Get Table Snapshot'
      operationId: /rfc/DB6_PM_TABLESNAP
      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_DB6PMST:
                  type: array
                  items:
                    type: object
                    properties:
                      COMPTIME:
                        type: string
                        maxLength: 14
                        description: 'DB6: Timestamp (Format: YYYYMMDDHHMMSS)'
                      PARTITN:
                        type: integer
                        format: int32
                        description: Partition Number
                      TAB_SCHEMA:
                        type: string
                        maxLength: 20
                        description: 'DB6: General identifier'
                      TABLE_NAME:
                        type: string
                        maxLength: 20
                        description: 'DB6: General identifier'
                      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
                      TAB_FLE_ID:
                        type: integer
                        format: int64
                        description: 'table_file_id: File ID for the Table'
                      TABLE_TYPE:
                        type: string
                        maxLength: 25
                        description: 'table_type: Table Type'
                      RW_WRITTEN:
                        type: integer
                        format: int64
                        description: 'rows_written: Number of Changes to the Table'
                      RW_READ:
                        type: integer
                        format: int64
                        description: 'rows_read: Number of Reads from the Table'
                      OF_ACCESS:
                        type: integer
                        format: int64
                        description: 'overflow_accesses: Number of Accesses to Overflow Rec.'
                      PG_REORGS:
                        type: integer
                        format: int64
                        description: 'page_reorgs: Number of Page REORGs for Table'
                      DATA_PGS:
                        type: integer
                        format: int64
                        description: ''
                      INDEX_PGS:
                        type: integer
                        format: int64
                        description: ''
                      LOB_PGS:
                        type: integer
                        format: int64
                        description: ''
                      LONG_PGS:
                        type: integer
                        format: int64
                        description: ''
                      XDA_PGS:
                        type: integer
                        format: int64
                        description: ''
                      TBSP_ID:
                        type: integer
                        format: int64
                        description: ''
                      DATA_PARTITN_ID:
                        type: integer
                        format: int64
                        description: ''
                IT_DB6PMST_HD:
                  type: array
                  items:
                    type: object
                    properties:
                      COMPTIME:
                        type: string
                        maxLength: 14
                        description: 'DB6: Timestamp (Format: YYYYMMDDHHMMSS)'
                      PARTITN:
                        type: integer
                        format: int32
                        description: Partition Number
                      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
                      NUM_TABLES:
                        type: integer
                        format: int64
                        description: 'num_tables: Number of sqlm_table Structures Returned'
                      DB_CN_TM:
                        type: string
                        maxLength: 14
                        description: 'DB6: Timestamp (Format: YYYYMMDDHHMMSS)'
                      LAST_RESET:
                        type: string
                        maxLength: 14
                        description: 'DB6: Timestamp (Format: YYYYMMDDHHMMSS)'
                      IN_DB_ALIA:
                        type: string
                        maxLength: 20
                        description: 'DB6: General identifier'
                      DB_NAME:
                        type: string
                        maxLength: 20
                        description: 'DB6: General identifier'
                      DB_PATH:
                        type: string
                        maxLength: 255
                        description: 'DB6: File Path'
              required:
              - ACTION
              - CALLERFLAG
              - PARTITN
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  IT_DB6PMST:
                    type: array
                    items:
                      type: object
                      properties:
                        COMPTIME:
                          type: string
                          maxLength: 14
                          description: 'DB6: Timestamp (Format: YYYYMMDDHHMMSS)'
                        PARTITN:
                          type: integer
                          format: int32
                          description: Partition Number
                        TAB_SCHEMA:
                          type: string
                          maxLength: 20
                          description: 'DB6: General identifier'
                        TABLE_NAME:
                          type: string
                          maxLength: 20
                          description: 'DB6: General identifier'
                        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
                        TAB_FLE_ID:
                          type: integer
                          format: int64
                          description: 'table_file_id: File ID for the Table'
                        TABLE_TYPE:
                          type: string
                          maxLength: 25
                          description: 'table_type: Table Type'
                        RW_WRITTEN:
                          type: integer
                          format: int64
                          description: 'rows_written: Number of Changes to the Table'
                        RW_READ:
                          type: integer
                          format: int64
                          description: 'rows_read: Number of Reads from the Table'
                        OF_ACCESS:
                          type: integer
                          format: int64
                          description: 'overflow_accesses: Number of Accesses to Overflow Rec.'
                        PG_REORGS:
                          type: integer
                          format: int64
                          description: 'page_reorgs: Number of Page REORGs for Table'
                        DATA_PGS:
                          type: integer
                          format: int64
                          description: ''
                        INDEX_PGS:
                          type: integer
                          format: int64
                          description: ''
                        LOB_PGS:
                          type: integer
                          format: int64
                          description: ''
                        LONG_PGS:
                          type: integer
                          format: int64
                          description: ''
                        XDA_PGS:
                          type: integer
                          format: int64
                          description: ''
                        TBSP_ID:
                          type: integer
                          format: int64
                          description: ''
                        DATA_PARTITN_ID:
                          type: integer
                          format: int64
                          description: ''
                  IT_DB6PMST_HD:
                    type: array
                    items:
                      type: object
                      properties:
                        COMPTIME:
                          type: string
                          maxLength: 14
                          description: 'DB6: Timestamp (Format: YYYYMMDDHHMMSS)'
                        PARTITN:
                          type: integer
                          format: int32
                          description: Partition Number
                        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
                        NUM_TABLES:
                          type: integer
                          format: int64
                          description: 'num_tables: Number of sqlm_table Structures Returned'
                        DB_CN_TM:
                          type: string
                          maxLength: 14
                          description: 'DB6: Timestamp (Format: YYYYMMDDHHMMSS)'
                        LAST_RESET:
                          type: string
                          maxLength: 14
                          description: 'DB6: Timestamp (Format: YYYYMMDDHHMMSS)'
                        IN_DB_ALIA:
                          type: string
                          maxLength: 20
                          description: 'DB6: General identifier'
                        DB_NAME:
                          type: string
                          maxLength: 20
                          description: 'DB6: General identifier'
                        DB_PATH:
                          type: string
                          maxLength: 255
                          description: 'DB6: File Path'
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
