openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/MSS_MON_GET_LINKEDSERVERS:
    post:
      tags:
      - SFMSS_MONSYSCAT
      summary: Get a list of all linked servers to a SQL Server
      operationId: /rfc/MSS_MON_GET_LINKEDSERVERS
      requestBody:
        content:
          application/json:
            schema:
              properties:
                CON_NAME:
                  type: string
                  default: DEFAULT
                  maxLength: 30
                  description: Logical name for a database connection
                SCHEMA:
                  type: string
                  default: ' '
                  maxLength: 128
                  description: Schema name
                ALL_SERVERS:
                  type: array
                  items:
                    type: object
                    properties:
                      SRV_NAME:
                        type: string
                        maxLength: 128
                        description: Linked server name
                      SRV_PROVIDERNAME:
                        type: string
                        maxLength: 128
                        description: Name of the OLE DB provider managing access to linked server
                      SRV_PRODUCT:
                        type: string
                        maxLength: 128
                        description: Product name of the linked server.
                      SRV_DATASOURCE:
                        type: string
                        maxLength: 4000
                        description: OLE DB data source property belonging to a linked server
                      SRV_PROVIDERSTRING:
                        type: string
                        maxLength: 4000
                        description: OLE DB provider string property of a linked server
                      SRV_LOCATION:
                        type: string
                        maxLength: 4000
                        description: OLE DB location property of a linked server
                      SRV_CAT:
                        type: string
                        maxLength: 128
                        description: OLE DB catalog property of a linked server
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  ROW_COUNT:
                    type: integer
                    format: int32
                    description: Schema name
                  ALL_SERVERS:
                    type: array
                    items:
                      type: object
                      properties:
                        SRV_NAME:
                          type: string
                          maxLength: 128
                          description: Linked server name
                        SRV_PROVIDERNAME:
                          type: string
                          maxLength: 128
                          description: Name of the OLE DB provider managing access to linked server
                        SRV_PRODUCT:
                          type: string
                          maxLength: 128
                          description: Product name of the linked server.
                        SRV_DATASOURCE:
                          type: string
                          maxLength: 4000
                          description: OLE DB data source property belonging to a linked server
                        SRV_PROVIDERSTRING:
                          type: string
                          maxLength: 4000
                          description: OLE DB provider string property of a linked server
                        SRV_LOCATION:
                          type: string
                          maxLength: 4000
                          description: OLE DB location property of a linked server
                        SRV_CAT:
                          type: string
                          maxLength: 128
                          description: OLE DB catalog property of a linked server
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
