openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/GET_DBA_RESULTS_DB4:
    post:
      tags:
      - SDBA
      operationId: /rfc/GET_DBA_RESULTS_DB4
      requestBody:
        content:
          application/json:
            schema:
              properties:
                FROM_TIMESTAMP:
                  type: string
                  maxLength: 14
                  description: Start of the DBA action
                SYSTEM_STRUCT:
                  type: object
                  properties:
                    SYSID:
                      type: string
                      maxLength: 8
                      description: Database System ID
                    DBSYS:
                      type: string
                      maxLength: 10
                      description: 'Database System for DBA  enumValues: *=Valid for All DB Platforms,SDB/LVC=liveCache,INFORMIX=INFORMIX,MSSQL=Microsoft SQL Server,DB400=DB2/400,DB2=DB2/CS,SDB/ANY=MySQL MaxDB with no SAP ABAP, such as Content Server, ...,SDB=MySQL MaxDB with SAP ABAP,ORACLE=ORACLE,DB6=DB2 UDB'
                      enum:
                      - '*'
                      - SDB/LVC
                      - INFORMIX
                      - MSSQL
                      - DB400
                      - DB2
                      - SDB/ANY
                      - SDB
                      - ORACLE
                      - DB6
                    SAPREL:
                      type: string
                      maxLength: 4
                      description: Release Status of SAP System
                    DBREL:
                      type: string
                      maxLength: 10
                      description: Database release
                    RFCDEST:
                      type: string
                      maxLength: 32
                      description: Logical Destination (Specified in Function Call)
                    DBHOST:
                      type: string
                      maxLength: 30
                      description: Name of the server where the DBA action is to be executed
                    DBCNAME:
                      type: string
                      maxLength: 30
                      description: Logical name for a database connection
                RESULT_DETAIL:
                  type: array
                  items:
                    type: object
                    properties:
                      BEG:
                        type: string
                        maxLength: 14
                        description: Start of the DBA action
                      FUNCT:
                        type: string
                        maxLength: 3
                        description: Function ID for DBA action
                      SYSID:
                        type: string
                        maxLength: 8
                        description: Database System ID
                      POS:
                        type: integer
                        format: int64
                        description: Consecutive number for detail lines
                      LINE:
                        type: string
                        maxLength: 254
                        description: Text Line for DBA Logs
                RESULT_HEADER:
                  type: array
                  items:
                    type: object
                    properties:
                      BEG:
                        type: string
                        maxLength: 14
                        description: Start of the DBA action
                      FUNCT:
                        type: string
                        maxLength: 3
                        description: Function ID for DBA action
                      SYSID:
                        type: string
                        maxLength: 8
                        description: Database System ID
                      OBJ:
                        type: string
                        maxLength: 16
                        description: Object of DB operation
                      RC:
                        type: integer
                        format: int64
                        description: 'Return code for DBA action  enumValues: 0001=Warning,0002=General error,0000=Everything OK,0003=Detailed error'
                        enum:
                        - '0001'
                        - '0002'
                        - '0000'
                        - '0003'
                      ENDE:
                        type: string
                        maxLength: 14
                        description: End of database operation
                      ACTID:
                        type: string
                        maxLength: 16
                        description: Name of DBA Log
                      LINE:
                        type: string
                        maxLength: 254
                        description: Text Line for DBA Logs
              required:
              - FROM_TIMESTAMP
              - SYSTEM_STRUCT
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  RESULT_DETAIL:
                    type: array
                    items:
                      type: object
                      properties:
                        BEG:
                          type: string
                          maxLength: 14
                          description: Start of the DBA action
                        FUNCT:
                          type: string
                          maxLength: 3
                          description: Function ID for DBA action
                        SYSID:
                          type: string
                          maxLength: 8
                          description: Database System ID
                        POS:
                          type: integer
                          format: int64
                          description: Consecutive number for detail lines
                        LINE:
                          type: string
                          maxLength: 254
                          description: Text Line for DBA Logs
                  RESULT_HEADER:
                    type: array
                    items:
                      type: object
                      properties:
                        BEG:
                          type: string
                          maxLength: 14
                          description: Start of the DBA action
                        FUNCT:
                          type: string
                          maxLength: 3
                          description: Function ID for DBA action
                        SYSID:
                          type: string
                          maxLength: 8
                          description: Database System ID
                        OBJ:
                          type: string
                          maxLength: 16
                          description: Object of DB operation
                        RC:
                          type: integer
                          format: int64
                          description: 'Return code for DBA action  enumValues: 0001=Warning,0002=General error,0000=Everything OK,0003=Detailed error'
                          enum:
                          - '0001'
                          - '0002'
                          - '0000'
                          - '0003'
                        ENDE:
                          type: string
                          maxLength: 14
                          description: End of database operation
                        ACTID:
                          type: string
                          maxLength: 16
                          description: Name of DBA Log
                        LINE:
                          type: string
                          maxLength: 254
                          description: Text Line for DBA Logs
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
