openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/TREX_RFC_LANDSCAPE_INFO:
    post:
      tags:
      - TREX_RFC_ADMINISTRATION
      summary: get landscape info (configuration)
      operationId: /rfc/TREX_RFC_LANDSCAPE_INFO
      requestBody:
        content:
          application/json:
            schema:
              properties:
                LANDSCAPE_HOST_INFO:
                  type: array
                  items:
                    type: object
                    properties:
                      LOCATION:
                        type: string
                        format: byte
                        description: Host:Port of NameServer
                      NAME_SERVER_MODE:
                        type: integer
                        format: int64
                        description: 0=slave, 1=1st master, ...
                      NAME_SERVER_ACTIVE:
                        type: integer
                        format: int64
                        description: '0 =inactive; 1=active: name server active master'
                      SAP_SYSTEM:
                        type: integer
                        format: int64
                        description: Insatnce
                      ACTIVE:
                        type: integer
                        format: int64
                        description: '0: no, 1: yes, 2:unknown'
                      MASTER_SERVER:
                        type: integer
                        format: int64
                        description: 0 =inactive; 1=active
                      BACKUP_SERVER:
                        type: integer
                        format: int64
                        description: 0 =inactive; 1=active
                      SLAVE_SERVER:
                        type: integer
                        format: int64
                        description: 0 =inactive; 1=active
                      BACKUP_SERVER_FOR:
                        type: string
                        format: byte
                        description: Host
                      SLAVE_SERVER_FOR:
                        type: string
                        format: byte
                        description: Host
                      PREPROCESSOR_MODE:
                        type: string
                        format: byte
                        description: any, search, index
                      BASEPATH:
                        type: string
                        format: byte
                        description: ''
                      SERVICES_FROM_DAEMON:
                        type: string
                        format: byte
                        description: ''
                LANDSCAPE_INFO:
                  type: array
                  items:
                    type: object
                    properties:
                      USE_BACKUP_SERVER:
                        type: integer
                        format: int64
                        description: 0 =inactive; 1=active
                      USE_SLAVE_SERVER:
                        type: integer
                        format: int64
                        description: 0 =inactive; 1=active
                      USE_FILE_SERVER:
                        type: integer
                        format: int64
                        description: 0 =inactive; 1=active
                      USE_ONE_SHARED_BACKUP:
                        type: integer
                        format: int64
                        description: 0 =inactive; 1=active; useOneSharedBackupServer
                      ASSIGN_EXISTING_ENTITIES:
                        type: integer
                        format: int64
                        description: '0 =ina.; 1=active: assignExistingEntitiesOnNewBackupsSlaves'
                      SEARCH_ON_MASTER_BACKUP:
                        type: integer
                        format: int64
                        description: 0 =inactive; 1=active; searchOnMasterBackupServer
                      SEARCH_VERSION:
                        type: string
                        format: byte
                        description: ''
                      REPLICATION_THREADS:
                        type: string
                        format: byte
                        description: ''
                      PART_SIZE:
                        type: string
                        format: byte
                        description: ''
                      LANDSCAPE_ID:
                        type: string
                        format: byte
                        description: ''
                      SAP_SYSTEM_NAME:
                        type: string
                        format: byte
                        description: SID
                      LANDSCAPE_DESCRIPTION:
                        type: string
                        format: byte
                        description: ''
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  RETURN_CODE:
                    type: integer
                    format: int64
                    description: Return Code
                  RETURN_TEXT:
                    type: string
                    format: byte
                    description: Return Text
                  LANDSCAPE_HOST_INFO:
                    type: array
                    items:
                      type: object
                      properties:
                        LOCATION:
                          type: string
                          format: byte
                          description: Host:Port of NameServer
                        NAME_SERVER_MODE:
                          type: integer
                          format: int64
                          description: 0=slave, 1=1st master, ...
                        NAME_SERVER_ACTIVE:
                          type: integer
                          format: int64
                          description: '0 =inactive; 1=active: name server active master'
                        SAP_SYSTEM:
                          type: integer
                          format: int64
                          description: Insatnce
                        ACTIVE:
                          type: integer
                          format: int64
                          description: '0: no, 1: yes, 2:unknown'
                        MASTER_SERVER:
                          type: integer
                          format: int64
                          description: 0 =inactive; 1=active
                        BACKUP_SERVER:
                          type: integer
                          format: int64
                          description: 0 =inactive; 1=active
                        SLAVE_SERVER:
                          type: integer
                          format: int64
                          description: 0 =inactive; 1=active
                        BACKUP_SERVER_FOR:
                          type: string
                          format: byte
                          description: Host
                        SLAVE_SERVER_FOR:
                          type: string
                          format: byte
                          description: Host
                        PREPROCESSOR_MODE:
                          type: string
                          format: byte
                          description: any, search, index
                        BASEPATH:
                          type: string
                          format: byte
                          description: ''
                        SERVICES_FROM_DAEMON:
                          type: string
                          format: byte
                          description: ''
                  LANDSCAPE_INFO:
                    type: array
                    items:
                      type: object
                      properties:
                        USE_BACKUP_SERVER:
                          type: integer
                          format: int64
                          description: 0 =inactive; 1=active
                        USE_SLAVE_SERVER:
                          type: integer
                          format: int64
                          description: 0 =inactive; 1=active
                        USE_FILE_SERVER:
                          type: integer
                          format: int64
                          description: 0 =inactive; 1=active
                        USE_ONE_SHARED_BACKUP:
                          type: integer
                          format: int64
                          description: 0 =inactive; 1=active; useOneSharedBackupServer
                        ASSIGN_EXISTING_ENTITIES:
                          type: integer
                          format: int64
                          description: '0 =ina.; 1=active: assignExistingEntitiesOnNewBackupsSlaves'
                        SEARCH_ON_MASTER_BACKUP:
                          type: integer
                          format: int64
                          description: 0 =inactive; 1=active; searchOnMasterBackupServer
                        SEARCH_VERSION:
                          type: string
                          format: byte
                          description: ''
                        REPLICATION_THREADS:
                          type: string
                          format: byte
                          description: ''
                        PART_SIZE:
                          type: string
                          format: byte
                          description: ''
                        LANDSCAPE_ID:
                          type: string
                          format: byte
                          description: ''
                        SAP_SYSTEM_NAME:
                          type: string
                          format: byte
                          description: SID
                        LANDSCAPE_DESCRIPTION:
                          type: string
                          format: byte
                          description: ''
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
