openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/DB_ORA_SELECT_DBINSTANCE:
    post:
      tags:
      - STD1
      operationId: /rfc/DB_ORA_SELECT_DBINSTANCE
      requestBody:
        content:
          application/json:
            schema:
              properties:
                ALL_DBINSTANCES:
                  type: array
                  items:
                    type: object
                    properties:
                      DB_NAME:
                        type: string
                        maxLength: 3
                        description: Name of database
                      DB_THREAD:
                        type: string
                        maxLength: 8
                        description: Database instance thread ID
                      DB_INSTANC:
                        type: string
                        maxLength: 16
                        description: Database instance (OPS)
                      DB_SERVER:
                        type: string
                        maxLength: 16
                        description: Name of database server
                      CURR_TIME:
                        type: string
                        maxLength: 6
                        description: Current time of query
                      CURR_DATE:
                        type: string
                        format: date
                        description: Current date at time of query
                      DB_UP_TIME:
                        type: string
                        maxLength: 6
                        description: Time of database start
                      DB_UP_DATE:
                        type: string
                        format: date
                        description: Date of database start
                      THREAD_STA:
                        type: string
                        maxLength: 6
                        description: DB thread status
                      SAPDBHOST:
                        type: string
                        maxLength: 32
                        description: SAPDBHOST
                      VERSION:
                        type: string
                        maxLength: 17
                        description: 'Oracle: Release'
                      ELAPSED_TI:
                        type: string
                        maxLength: 14
                        description: 'Oracle: Elapsed time since database startup (sec)'
                      ARCHIVER:
                        type: string
                        maxLength: 7
                        description: 'Oracle: Status of archive writer (stopped/started/failed)'
                      LOG_SWITCH:
                        type: string
                        maxLength: 11
                        description: 'Oracle: Log_switch_wait (Archive log/Clear log/Checkpoint)'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  DBINSTANCE_SELECTED:
                    type: object
                    properties:
                      DB_NAME:
                        type: string
                        maxLength: 3
                        description: Name of database
                      DB_THREAD:
                        type: string
                        maxLength: 8
                        description: Database instance thread ID
                      DB_INSTANC:
                        type: string
                        maxLength: 16
                        description: Database instance (OPS)
                      DB_SERVER:
                        type: string
                        maxLength: 16
                        description: Name of database server
                      CURR_TIME:
                        type: string
                        maxLength: 6
                        description: Current time of query
                      CURR_DATE:
                        type: string
                        format: date
                        description: Current date at time of query
                      DB_UP_TIME:
                        type: string
                        maxLength: 6
                        description: Time of database start
                      DB_UP_DATE:
                        type: string
                        format: date
                        description: Date of database start
                      THREAD_STA:
                        type: string
                        maxLength: 6
                        description: DB thread status
                      SAPDBHOST:
                        type: string
                        maxLength: 32
                        description: SAPDBHOST
                      VERSION:
                        type: string
                        maxLength: 17
                        description: 'Oracle: Release'
                      ELAPSED_TI:
                        type: string
                        maxLength: 14
                        description: 'Oracle: Elapsed time since database startup (sec)'
                      ARCHIVER:
                        type: string
                        maxLength: 7
                        description: 'Oracle: Status of archive writer (stopped/started/failed)'
                      LOG_SWITCH:
                        type: string
                        maxLength: 11
                        description: 'Oracle: Log_switch_wait (Archive log/Clear log/Checkpoint)'
                  ALL_DBINSTANCES:
                    type: array
                    items:
                      type: object
                      properties:
                        DB_NAME:
                          type: string
                          maxLength: 3
                          description: Name of database
                        DB_THREAD:
                          type: string
                          maxLength: 8
                          description: Database instance thread ID
                        DB_INSTANC:
                          type: string
                          maxLength: 16
                          description: Database instance (OPS)
                        DB_SERVER:
                          type: string
                          maxLength: 16
                          description: Name of database server
                        CURR_TIME:
                          type: string
                          maxLength: 6
                          description: Current time of query
                        CURR_DATE:
                          type: string
                          format: date
                          description: Current date at time of query
                        DB_UP_TIME:
                          type: string
                          maxLength: 6
                          description: Time of database start
                        DB_UP_DATE:
                          type: string
                          format: date
                          description: Date of database start
                        THREAD_STA:
                          type: string
                          maxLength: 6
                          description: DB thread status
                        SAPDBHOST:
                          type: string
                          maxLength: 32
                          description: SAPDBHOST
                        VERSION:
                          type: string
                          maxLength: 17
                          description: 'Oracle: Release'
                        ELAPSED_TI:
                          type: string
                          maxLength: 14
                          description: 'Oracle: Elapsed time since database startup (sec)'
                        ARCHIVER:
                          type: string
                          maxLength: 7
                          description: 'Oracle: Status of archive writer (stopped/started/failed)'
                        LOG_SWITCH:
                          type: string
                          maxLength: 11
                          description: 'Oracle: Log_switch_wait (Archive log/Clear log/Checkpoint)'
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
