openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/TREX_RFC_GET_INDEX_LANDSCAPE:
    post:
      tags:
      - TREX_RFC_INDEX
      summary: Get all indexes and their status of a TREX landscape
      operationId: /rfc/TREX_RFC_GET_INDEX_LANDSCAPE
      requestBody:
        content:
          application/json:
            schema:
              properties:
                SERVER_TYPE:
                  type: integer
                  format: int64
                INDEX_PARTS:
                  type: array
                  items:
                    type: object
                    properties:
                      NAME:
                        type: string
                        format: byte
                        description: Index ID
                      PART_NAME:
                        type: string
                        format: byte
                        description: Index ID
                LANDSCAPE_ASSIGNMENTS:
                  type: array
                  items:
                    type: object
                    properties:
                      TYPE:
                        type: integer
                        format: int64
                        description: master, backup
                      STATUS:
                        type: integer
                        format: int64
                        description: NotAssigned, Assigned, ReadOnly, SoonBack
                      VERSION:
                        type: integer
                        format: int64
                        description: version (only for indexes)
                LANDSCAPE_ENTITIES:
                  type: array
                  items:
                    type: object
                    properties:
                      NAME:
                        type: string
                        format: byte
                        description: ''
                      TYPE:
                        type: integer
                        format: int64
                        description: master, backup, None
                      INDEX_TYPE:
                        type: integer
                        format: int64
                        description: 0:unkn., 1:phys 2:mem 3:temp 4:log 5:OLAP 6:join
                      ALL_SLAVES:
                        type: integer
                        format: int64
                        description: ''
                      USABLE_SLAVES:
                        type: integer
                        format: int64
                        description: ''
                      ALL_SEARCHWRITER:
                        type: integer
                        format: int64
                        description: Flag (0 or 1)
                      USABLE_SEARCHWRITER:
                        type: integer
                        format: int64
                        description: Flag (0 or 1)
                      SEARCH_VERSION:
                        type: integer
                        format: int64
                        description: ''
                      WRITER_VERSION:
                        type: integer
                        format: int64
                        description: ''
                      SEARCH_TYPE:
                        type: integer
                        format: int64
                        description: 0:unknown 1:majority 2:latest 3:fallback
                      REPLICATION_STATE:
                        type: integer
                        format: int64
                        description: '0-10: none,new,exp,prep,com,ab.ing,ab.ed,failed,fin,q,requ.'
                      WRITER_STATUS:
                        type: integer
                        format: int64
                        description: Flag (0 or 1)
                LANDSCAPE_SERVICES:
                  type: array
                  items:
                    type: object
                    properties:
                      LOCATION:
                        type: string
                        format: byte
                        description: ''
                      ACTIVE:
                        type: integer
                        format: int64
                        description: ''
              required:
              - SERVER_TYPE
      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
                  INDEX_PARTS:
                    type: array
                    items:
                      type: object
                      properties:
                        NAME:
                          type: string
                          format: byte
                          description: Index ID
                        PART_NAME:
                          type: string
                          format: byte
                          description: Index ID
                  LANDSCAPE_ASSIGNMENTS:
                    type: array
                    items:
                      type: object
                      properties:
                        TYPE:
                          type: integer
                          format: int64
                          description: master, backup
                        STATUS:
                          type: integer
                          format: int64
                          description: NotAssigned, Assigned, ReadOnly, SoonBack
                        VERSION:
                          type: integer
                          format: int64
                          description: version (only for indexes)
                  LANDSCAPE_ENTITIES:
                    type: array
                    items:
                      type: object
                      properties:
                        NAME:
                          type: string
                          format: byte
                          description: ''
                        TYPE:
                          type: integer
                          format: int64
                          description: master, backup, None
                        INDEX_TYPE:
                          type: integer
                          format: int64
                          description: 0:unkn., 1:phys 2:mem 3:temp 4:log 5:OLAP 6:join
                        ALL_SLAVES:
                          type: integer
                          format: int64
                          description: ''
                        USABLE_SLAVES:
                          type: integer
                          format: int64
                          description: ''
                        ALL_SEARCHWRITER:
                          type: integer
                          format: int64
                          description: Flag (0 or 1)
                        USABLE_SEARCHWRITER:
                          type: integer
                          format: int64
                          description: Flag (0 or 1)
                        SEARCH_VERSION:
                          type: integer
                          format: int64
                          description: ''
                        WRITER_VERSION:
                          type: integer
                          format: int64
                          description: ''
                        SEARCH_TYPE:
                          type: integer
                          format: int64
                          description: 0:unknown 1:majority 2:latest 3:fallback
                        REPLICATION_STATE:
                          type: integer
                          format: int64
                          description: '0-10: none,new,exp,prep,com,ab.ing,ab.ed,failed,fin,q,requ.'
                        WRITER_STATUS:
                          type: integer
                          format: int64
                          description: Flag (0 or 1)
                  LANDSCAPE_SERVICES:
                    type: array
                    items:
                      type: object
                      properties:
                        LOCATION:
                          type: string
                          format: byte
                          description: ''
                        ACTIVE:
                          type: integer
                          format: int64
                          description: ''
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
