openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SALF_CSM_AGENT_REGISTER:
    post:
      tags:
      - SALF
      operationId: /rfc/SALF_CSM_AGENT_REGISTER
      requestBody:
        content:
          application/json:
            schema:
              properties:
                ACTION:
                  type: string
                  default: I
                  maxLength: 1
                  description: Trace ?
                AGENT_DESCRIPTION:
                  type: string
                  default: ' '
                  maxLength: 255
                  description: char255
                AGENT_DESTINAT_DSR:
                  type: string
                  default: ' '
                  maxLength: 32
                  description: Logical destination (specified in function call)
                AGENT_NAME:
                  type: string
                  maxLength: 32
                  description: Logical destination (specified in function call)
                AGENT_TYPE:
                  type: integer
                  format: int32
                  description: 'CCMS CSM: Type of Agent'
                AGENT_VERSION:
                  type: string
                  maxLength: 10
                  description: 'Alert: Version of Monitoring Infrastructure'
                CUST_J2EE_DESTINAT:
                  type: string
                  default: ' '
                  maxLength: 32
                  description: Logical destination (specified in function call)
                DESCRIPTION:
                  type: string
                  default: ' '
                  maxLength: 72
                  description: Description of RFC connection
                DESTINATION:
                  type: string
                  maxLength: 32
                  description: destination for RFC use
                GWHOST:
                  type: string
                  default: ' '
                  maxLength: 100
                  description: Gateway host name
                GWSERVICE:
                  type: string
                  default: ' '
                  maxLength: 32
                  description: Gateway service
                METHOD:
                  type: string
                  default: R
                  maxLength: 64
                  description: Identification of a registered RFC server program
                MGD_HOST:
                  type: string
                  maxLength: 32
                  description: R/3-System, Name des Applikationsservers
                MGD_SERVER:
                  type: string
                  maxLength: 20
                  description: Server-Name
                MGD_SYSID:
                  type: string
                  maxLength: 8
                  description: R/3-System, Name des R/3-Systems
                MGD_SYSTEM_DBHOST:
                  type: string
                  default: ' '
                  maxLength: 32
                  description: Logical destination (specified in function call)
                MGD_SYSTEM_SYSGROUP:
                  type: string
                  default: ' '
                  maxLength: 30
                  description: 'Alerts: Name einer R/3-Systemgruppe'
                PRIMARY_CENSYS:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: 'Alerts: Name einer R/3-Systemgruppe'
                PROGRAM:
                  type: string
                  default: ' '
                  maxLength: 64
                  description: Program name (complete path)
                RFCUNICODE:
                  type: integer
                  format: int64
                  default: 1
                  description: Gateway service
                SEGMENT_NAME:
                  type: string
                  maxLength: 40
                  description: 'Alert: name of monitoring segment'
                SEGMENT_TYPE:
                  type: integer
                  format: int32
                  description: 'Alert: Monitoring Segment: SegmentType'
                SEGMENT_VERSION:
                  type: string
                  maxLength: 10
                  description: 'Alert: Version of Monitoring Infrastructure'
                SERVER:
                  type: string
                  default: ' '
                  maxLength: 100
                  description: Name of target host
                TRACE:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: Trace ?
                CONTEXTS:
                  type: array
                  items:
                    type: object
                    properties:
                      MTSYSID:
                        type: string
                        maxLength: 8
                        description: Name of the SAP System
                      MTMCNAME:
                        type: string
                        maxLength: 40
                        description: 'Alert: Name of Monitoring Context'
                      MTNUMRANGE:
                        type: string
                        maxLength: 3
                        description: 'Alert: monitoring type number range (perm., temp, ...)'
                      MTUID:
                        type: string
                        maxLength: 10
                        description: 'ALert: Unique Identifier for  Monitoring Types (used in TID)'
                      MTCLASS:
                        type: string
                        maxLength: 3
                        description: 'Alert: monitoring type class (perf., single msg.,...)'
                      MTINDEX:
                        type: string
                        maxLength: 10
                        description: 'Alert: internal handle for TID'
                      EXTINDEX:
                        type: string
                        maxLength: 10
                        description: 'Alert: internal handle for TID'
                      OWNER:
                        type: string
                        maxLength: 40
                        description: 'Alert: Owner of Monitoring Context'
                      CONTXTSTAT:
                        type: string
                        maxLength: 1
                        description: 'Alert: Status of Context (active/inactive/....)'
                      CONTXTTYPE:
                        type: integer
                        format: int32
                        description: 'Alert: Type of Monitoring Context'
                      MANDT:
                        type: string
                        maxLength: 3
                        description: Client ID of Current User
                      MTECLASS:
                        type: string
                        maxLength: 40
                        description: 'CCMS Monitoring Architecture: Name of MTE class'
                      CSMSYSID:
                        type: string
                        maxLength: 8
                        description: Name of the SAP System
              required:
              - ACTION
              - AGENT_DESCRIPTION
              - AGENT_NAME
              - AGENT_TYPE
              - AGENT_VERSION
              - DESTINATION
              - MGD_HOST
              - MGD_SERVER
              - MGD_SYSID
              - SEGMENT_NAME
              - SEGMENT_TYPE
              - SEGMENT_VERSION
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  AGENT_CSMBK_GUID:
                    type: string
                    maxLength: 32
                    description: System GUID for R/3 or other system
                  AGENT_DESTINATION_CSMBK_GUID:
                    type: string
                    maxLength: 32
                    description: System GUID for R/3 or other system
                  CENSYSID_CSMBK_GUID:
                    type: string
                    maxLength: 32
                    description: System GUID for R/3 or other system
                  HOST_CSMBK_GUID:
                    type: string
                    maxLength: 32
                    description: System GUID for R/3 or other system
                  MGDSYSID_CSMBK_GUID:
                    type: string
                    maxLength: 32
                    description: System GUID for R/3 or other system
                  SEGMENT_CSMBK_GUID:
                    type: string
                    maxLength: 32
                    description: System GUID for R/3 or other system
                  CONTEXTS:
                    type: array
                    items:
                      type: object
                      properties:
                        MTSYSID:
                          type: string
                          maxLength: 8
                          description: Name of the SAP System
                        MTMCNAME:
                          type: string
                          maxLength: 40
                          description: 'Alert: Name of Monitoring Context'
                        MTNUMRANGE:
                          type: string
                          maxLength: 3
                          description: 'Alert: monitoring type number range (perm., temp, ...)'
                        MTUID:
                          type: string
                          maxLength: 10
                          description: 'ALert: Unique Identifier for  Monitoring Types (used in TID)'
                        MTCLASS:
                          type: string
                          maxLength: 3
                          description: 'Alert: monitoring type class (perf., single msg.,...)'
                        MTINDEX:
                          type: string
                          maxLength: 10
                          description: 'Alert: internal handle for TID'
                        EXTINDEX:
                          type: string
                          maxLength: 10
                          description: 'Alert: internal handle for TID'
                        OWNER:
                          type: string
                          maxLength: 40
                          description: 'Alert: Owner of Monitoring Context'
                        CONTXTSTAT:
                          type: string
                          maxLength: 1
                          description: 'Alert: Status of Context (active/inactive/....)'
                        CONTXTTYPE:
                          type: integer
                          format: int32
                          description: 'Alert: Type of Monitoring Context'
                        MANDT:
                          type: string
                          maxLength: 3
                          description: Client ID of Current User
                        MTECLASS:
                          type: string
                          maxLength: 40
                          description: 'CCMS Monitoring Architecture: Name of MTE class'
                        CSMSYSID:
                          type: string
                          maxLength: 8
                          description: Name of the SAP System
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
