openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/GET_INSTANCE_STATE_SDB:
    post:
      tags:
      - SADB
      operationId: /rfc/GET_INSTANCE_STATE_SDB
      requestBody:
        content:
          application/json:
            schema:
              properties:
                CON_NAME:
                  type: string
                  maxLength: 30
                  description: Logical Name for a Database Connection
                DETERMINE_DBMVERSION:
                  type: string
                  maxLength: 1
                DETERMINE_INSTANCE_TYPE:
                  type: string
                  maxLength: 1
                DETERMINE_KERNELVERSION:
                  type: string
                  maxLength: 1
                DETERMINE_PROPERTIES:
                  type: string
                  maxLength: 1
                DETERMINE_STATE:
                  type: string
                  maxLength: 1
                USE_DBMRFC:
                  type: string
                  default: C
                  maxLength: 1
                ACTION_PROTOCOL:
                  type: array
                  items:
                    type: object
                    properties:
                      ZEILE:
                        type: string
                        maxLength: 255
                        description: Log line
              required:
              - CON_NAME
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  EV_DBMSERVER_VERSION:
                    type: string
                    maxLength: 255
                    description: 'SAP DB: Response line from DBM command'
                  EV_DB_FULL:
                    type: string
                    maxLength: 1
                  EV_ENABLED:
                    type: integer
                    format: int32
                  EV_INSTANCE_TYPE:
                    type: string
                    maxLength: 255
                    description: 'SAP DB: Response line from DBM command'
                  EV_KERNELVERSION:
                    type: string
                    maxLength: 255
                    description: 'SAP DB: Response line from DBM command'
                  EV_KERNELVERSION_LONG:
                    type: string
                    maxLength: 15
                    description: Text (15 characters)
                  EV_LOG_FULL:
                    type: string
                    maxLength: 1
                  EV_PLATFORM:
                    type: string
                    maxLength: 255
                    description: 'SAP DB: Response line from DBM command'
                  EV_RESTART_DATE:
                    type: string
                    format: date
                    description: Date and Time, Current (Application Server) Date
                  EV_RESTART_TIME:
                    type: string
                    maxLength: 6
                    description: Date and Time, Current Application Server Time
                  EV_STATE:
                    type: string
                    maxLength: 10
                  ACTION_PROTOCOL:
                    type: array
                    items:
                      type: object
                      properties:
                        ZEILE:
                          type: string
                          maxLength: 255
                          description: Log line
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
