openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/FILL_POOL_DATA:
    post:
      tags:
      - STU4_RZ20
      summary: Function module to collect AS/400 main storage pool data
      operationId: /rfc/FILL_POOL_DATA
      requestBody:
        content:
          application/json:
            schema:
              properties:
                LOCAL_REMOTE:
                  type: string
                  default: LOCAL
                  maxLength: 6
                  description: 'Key: Destination for RFC local or remote'
                LOGICAL_DESTINATION:
                  type: string
                  maxLength: 32
                  description: Logical destination (specified in function call)
                SYSTEM_ID:
                  type: integer
                  format: int32
                  default: 0
                  description: Data for the Call of "SAPOSCOL" with RFC
                TF_POOL_SINGLE:
                  type: array
                  items:
                    type: object
                    properties:
                      TYPE:
                        type: integer
                        format: int32
                        description: Type in saposcol result structure
                      SUBTYPE:
                        type: integer
                        format: int32
                        description: Subtype in saposcol result structure
                      SERIALNR:
                        type: integer
                        format: int32
                        description: Serial number in saposcol result structure
                      POOL_NBR:
                        type: integer
                        format: int32
                        description: AS/400 Number of Pools
                      MAX_ACTIVE:
                        type: integer
                        format: int32
                        description: maximum number of active
                      POOL_SIZE:
                        type: integer
                        format: int32
                        description: size of as/400 pool
                      MACHINE_RE:
                        type: integer
                        format: int32
                        description: 'as/400 pool: machine reserved space'
                      DB_FLT:
                        type: integer
                        format: int32
                        description: as/400 page faults
                      NON_DB_FLT:
                        type: integer
                        format: int32
                        description: as/400 page faults
                      DB_PG:
                        type: integer
                        format: int32
                        description: as/400 pool:page faults
                      NON_DB_PG:
                        type: integer
                        format: int32
                        description: as/400 pool:page faults
                      ACT_2_WAIT:
                        type: integer
                        format: int32
                        description: 'as/400 pool: job transitions'
                      ACT_2_INL:
                        type: integer
                        format: int32
                        description: 'as/400 pool: job transitions'
                      WAIT_2_INL:
                        type: integer
                        format: int32
                        description: 'as/400 pool: job transitions'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  ACTIVEFLAG:
                    type: integer
                    format: int32
                    description: Data for tables to call "SAPOSCOL"
                  DETAILSCOLL:
                    type: integer
                    format: int32
                    description: Data for tables to call "SAPOSCOL"
                  DETAILSMODE:
                    type: integer
                    format: int32
                    description: Data for tables to call "SAPOSCOL"
                  DETAILSREQI:
                    type: integer
                    format: int32
                    description: Data for tables to call "SAPOSCOL"
                  F_POOL_SINGLE_READ:
                    type: string
                    maxLength: 3
                    description: Label "NO" or "YES" for getting tables with RFC ("SAPOSCOL")
                  INTERVAL:
                    type: integer
                    format: int32
                    description: Data for tables to call "SAPOSCOL"
                  LASTCOLLINT:
                    type: integer
                    format: int32
                    description: Data for tables to call "SAPOSCOL"
                  LASTCOLLWRT:
                    type: string
                    maxLength: 25
                    description: User field for cluster PC (national)
                  NORMCOLLINT:
                    type: integer
                    format: int32
                    description: Data for tables to call "SAPOSCOL"
                  TAB_TYPE:
                    type: string
                    maxLength: 15
                    description: Type of a table read with RFC ("SAPOSCOL")
                  TF_POOL_SINGLE:
                    type: array
                    items:
                      type: object
                      properties:
                        TYPE:
                          type: integer
                          format: int32
                          description: Type in saposcol result structure
                        SUBTYPE:
                          type: integer
                          format: int32
                          description: Subtype in saposcol result structure
                        SERIALNR:
                          type: integer
                          format: int32
                          description: Serial number in saposcol result structure
                        POOL_NBR:
                          type: integer
                          format: int32
                          description: AS/400 Number of Pools
                        MAX_ACTIVE:
                          type: integer
                          format: int32
                          description: maximum number of active
                        POOL_SIZE:
                          type: integer
                          format: int32
                          description: size of as/400 pool
                        MACHINE_RE:
                          type: integer
                          format: int32
                          description: 'as/400 pool: machine reserved space'
                        DB_FLT:
                          type: integer
                          format: int32
                          description: as/400 page faults
                        NON_DB_FLT:
                          type: integer
                          format: int32
                          description: as/400 page faults
                        DB_PG:
                          type: integer
                          format: int32
                          description: as/400 pool:page faults
                        NON_DB_PG:
                          type: integer
                          format: int32
                          description: as/400 pool:page faults
                        ACT_2_WAIT:
                          type: integer
                          format: int32
                          description: 'as/400 pool: job transitions'
                        ACT_2_INL:
                          type: integer
                          format: int32
                          description: 'as/400 pool: job transitions'
                        WAIT_2_INL:
                          type: integer
                          format: int32
                          description: 'as/400 pool: job transitions'
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
