openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/TREX_RFC_ALERTSERV_GET_CONFIG:
    post:
      tags:
      - TREX_RFC_ADMINISTRATION
      summary: Get the configuration of the TREX AlertServer
      operationId: /rfc/TREX_RFC_ALERTSERV_GET_CONFIG
      requestBody:
        content:
          application/json:
            schema:
              properties:
                CHECKSET_PARAMETERS:
                  type: array
                  items:
                    type: object
                    properties:
                      CHECKSET_NAME:
                        type: string
                        format: byte
                        description: Name of a Checkset
                      NAME:
                        type: string
                        format: byte
                        description: Check Parameter Name
                      VALUE:
                        type: string
                        format: byte
                        description: Check Parameter Value
                CHECKSET_PROPERTIES:
                  type: array
                  items:
                    type: object
                    properties:
                      CHECKSET_NAME:
                        type: string
                        format: byte
                        description: Name of a Checkset
                      SEND_MAILS:
                        type: integer
                        format: int64
                        description: 0:no, 1:yes, 2:not set
                      ACTIVE:
                        type: integer
                        format: int64
                        description: 0:no, 1:yes
                      CHECKSET_SCHEDULE:
                        type: string
                        format: byte
                        description: Schedule in cron tab format
                      REMOVE_CHECKSET:
                        type: integer
                        format: int64
                        description: 0:no, 1:yes
                CHECKS_IN_CHECKSETS:
                  type: array
                  items:
                    type: object
                    properties:
                      CHECKSET_NAME:
                        type: string
                        format: byte
                        description: Name of a Checkset
                      CHECK_NAME:
                        type: string
                        format: byte
                        description: Name of a Check in the Checkset
                CHECK_PARAMETERS:
                  type: array
                  items:
                    type: object
                    properties:
                      CHECK_NAME:
                        type: string
                        format: byte
                        description: Check Name
                      NAME:
                        type: string
                        format: byte
                        description: Check Parameter Name
                      VALUE:
                        type: string
                        format: byte
                        description: Check Parameter Value
                CHECK_PROPERTIES:
                  type: array
                  items:
                    type: object
                    properties:
                      CHECK_NAME:
                        type: string
                        format: byte
                        description: Name of a Checkset
                      SEND_MAILS:
                        type: integer
                        format: int64
                        description: 0:no, 1:yes, 2:not set
                      ACTIVE:
                        type: integer
                        format: int64
                        description: 0:no, 1:yes
                      CHECK_SCHEDULE:
                        type: string
                        format: byte
                        description: Schedule in cron tab format
                GLOBAL_PARAMETERS:
                  type: array
                  items:
                    type: object
                    properties:
                      NAME:
                        type: string
                        format: byte
                        description: Check Parameter Name
                      VALUE:
                        type: string
                        format: byte
                        description: Check Parameter Value
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  MAIL_RECIPIENTS:
                    type: string
                    format: byte
                    description: List of Mail Recipients; Separator as expected by Mail Server
                  MAIL_SENDER:
                    type: string
                    format: byte
                    description: Valid Adress of the Mail Sender
                  MAIL_SUBJECT:
                    type: string
                    format: byte
                    description: Mail Subject
                  MAX_HISTORY_AGE:
                    type: integer
                    format: int64
                    description: Max. Age of the Alert Server History in [s]
                  MAX_HISTORY_ENTRIES:
                    type: integer
                    format: int64
                    description: Max. Number of History Entries for all Checks
                  MAX_RESULT_AGE:
                    type: integer
                    format: int64
                    description: Max. Age of Check Results in [s]
                  RETURN_CODE:
                    type: integer
                    format: int64
                    description: Return Code
                  RETURN_TEXT:
                    type: string
                    format: byte
                    description: Return Text
                  SCHEDULE:
                    type: string
                    format: byte
                    description: Schedule in cron tab Format
                  SEND_MAILS:
                    type: integer
                    format: int64
                    description: 0:no, 1:yes, 2:not set
                  SMTP_SERVER:
                    type: string
                    format: byte
                    description: Your Mailserver
                  CHECKSET_PARAMETERS:
                    type: array
                    items:
                      type: object
                      properties:
                        CHECKSET_NAME:
                          type: string
                          format: byte
                          description: Name of a Checkset
                        NAME:
                          type: string
                          format: byte
                          description: Check Parameter Name
                        VALUE:
                          type: string
                          format: byte
                          description: Check Parameter Value
                  CHECKSET_PROPERTIES:
                    type: array
                    items:
                      type: object
                      properties:
                        CHECKSET_NAME:
                          type: string
                          format: byte
                          description: Name of a Checkset
                        SEND_MAILS:
                          type: integer
                          format: int64
                          description: 0:no, 1:yes, 2:not set
                        ACTIVE:
                          type: integer
                          format: int64
                          description: 0:no, 1:yes
                        CHECKSET_SCHEDULE:
                          type: string
                          format: byte
                          description: Schedule in cron tab format
                        REMOVE_CHECKSET:
                          type: integer
                          format: int64
                          description: 0:no, 1:yes
                  CHECKS_IN_CHECKSETS:
                    type: array
                    items:
                      type: object
                      properties:
                        CHECKSET_NAME:
                          type: string
                          format: byte
                          description: Name of a Checkset
                        CHECK_NAME:
                          type: string
                          format: byte
                          description: Name of a Check in the Checkset
                  CHECK_PARAMETERS:
                    type: array
                    items:
                      type: object
                      properties:
                        CHECK_NAME:
                          type: string
                          format: byte
                          description: Check Name
                        NAME:
                          type: string
                          format: byte
                          description: Check Parameter Name
                        VALUE:
                          type: string
                          format: byte
                          description: Check Parameter Value
                  CHECK_PROPERTIES:
                    type: array
                    items:
                      type: object
                      properties:
                        CHECK_NAME:
                          type: string
                          format: byte
                          description: Name of a Checkset
                        SEND_MAILS:
                          type: integer
                          format: int64
                          description: 0:no, 1:yes, 2:not set
                        ACTIVE:
                          type: integer
                          format: int64
                          description: 0:no, 1:yes
                        CHECK_SCHEDULE:
                          type: string
                          format: byte
                          description: Schedule in cron tab format
                  GLOBAL_PARAMETERS:
                    type: array
                    items:
                      type: object
                      properties:
                        NAME:
                          type: string
                          format: byte
                          description: Check Parameter Name
                        VALUE:
                          type: string
                          format: byte
                          description: Check Parameter Value
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
