openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SWNC_GET_DIRECTORY_FRAME:
    post:
      tags:
      - SCSM_NW_WORKLOAD
      operationId: /rfc/SWNC_GET_DIRECTORY_FRAME
      requestBody:
        content:
          application/json:
            schema:
              properties:
                SELECT_FROM_SYSTEMS:
                  type: array
                  items:
                    type: object
                    properties:
                      SELECT_SYSTEM:
                        type: string
                        maxLength: 32
                        description: RFC Destination of a Monitoring System
                      SELECT_SERVERS:
                        type: array
                        items:
                          type: string
                          maxLength: 40
                          description: 'SAP Workload NW Collector: Host Name'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  ALL_DIRECTORIES:
                    type: array
                    items:
                      type: object
                      properties:
                        ASSIGNDSYS:
                          type: string
                          maxLength: 32
                          description: 'SAP Workload NW Collector: System ID'
                        COMPONENT:
                          type: string
                          maxLength: 40
                          description: 'SAP Workload NW Collector: Host Name'
                        PERIODTYPE:
                          type: string
                          maxLength: 1
                          description: 'SAP Workload NW Collector: Period Type'
                        PERIODSTRT:
                          type: string
                          format: date
                          description: 'SAP Workload NW Collector: Date'
                        FIRSTRECDY:
                          type: string
                          format: date
                          description: 'SAP Workload NW Collector: Date'
                        FIRSTRECTI:
                          type: string
                          maxLength: 6
                          description: 'SAP Workload NW Collector: Time'
                        LASTRECDY:
                          type: string
                          format: date
                          description: 'SAP Workload NW Collector: Date'
                        LASTRECTI:
                          type: string
                          maxLength: 6
                          description: 'SAP Workload NW Collector: Time'
                        AGR_TZONE:
                          type: string
                          maxLength: 6
                          description: 'SAP Workload NW Collector: Time Zone'
                        LONG_COMPONENT:
                          type: string
                          maxLength: 40
                          description: 'SAP Workload NW Collector: Host Name'
                  PROTOCOL:
                    type: array
                    items:
                      type: object
                      properties:
                        DESTINATION:
                          type: string
                          maxLength: 32
                          description: RFC Destination of a Monitoring System
                        SYSTEMID:
                          type: string
                          maxLength: 8
                          description: Name of the SAP System
                        INSTANCE:
                          type: string
                          maxLength: 40
                          description: Instance Name
                        RECS_READ:
                          type: integer
                          format: int32
                          description: Number of Statistics Records
                        RC:
                          type: integer
                          format: int32
                          description: Return Value of ABAP Statements
                        ERROR_TEXT:
                          type: string
                          maxLength: 128
                          description: Text for Error Message
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
