openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/GET_ADMIN_PROT_SDB:
    post:
      tags:
      - SADE
      operationId: /rfc/GET_ADMIN_PROT_SDB
      requestBody:
        content:
          application/json:
            schema:
              properties:
                CALL_MODE:
                  type: string
                  default: C
                  maxLength: 1
                  description: 'SAP DB: DBMRFC Call Mode'
                CMD_ID:
                  type: string
                  maxLength: 12
                  description: Command ID (unique; link cnhist <-> cnreprt)
                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
                ADMIN_PROT:
                  type: array
                  items:
                    type: object
                    properties:
                      DATE:
                        type: string
                        maxLength: 10
                        description: Month/Day of Log Entry
                      TIME:
                        type: string
                        maxLength: 8
                        description: Time of Log Entry
                      CMD_ID:
                        type: string
                        maxLength: 12
                        description: Command ID (unique; link cnhist <-> cnreprt)
                      LINENO:
                        type: string
                        maxLength: 4
                        description: Row number
                      FTYPE:
                        type: string
                        maxLength: 3
                        description: Functional Type
                      MESSAGE:
                        type: string
                        maxLength: 255
                        description: Log Message
              required:
              - SYSTEM_STRUCT
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  ADMIN_PROT:
                    type: array
                    items:
                      type: object
                      properties:
                        DATE:
                          type: string
                          maxLength: 10
                          description: Month/Day of Log Entry
                        TIME:
                          type: string
                          maxLength: 8
                          description: Time of Log Entry
                        CMD_ID:
                          type: string
                          maxLength: 12
                          description: Command ID (unique; link cnhist <-> cnreprt)
                        LINENO:
                          type: string
                          maxLength: 4
                          description: Row number
                        FTYPE:
                          type: string
                          maxLength: 3
                          description: Functional Type
                        MESSAGE:
                          type: string
                          maxLength: 255
                          description: Log Message
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
