openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/MSQ_DB_SPACE_HISTORY:
    post:
      tags:
      - STUQ
      summary: MS SQL Server DB space history
      operationId: /rfc/MSQ_DB_SPACE_HISTORY
      requestBody:
        content:
          application/json:
            schema:
              properties:
                DB_HISTD:
                  type: array
                  items:
                    type: object
                    properties:
                      DATE:
                        type: string
                        format: date
                        description: Date
                      TIME:
                        type: string
                        maxLength: 6
                        description: Time
                      DBNAME:
                        type: string
                        maxLength: 128
                        description: Database name
                      DB_SIZE:
                        type: integer
                        format: int64
                        description: Database size in MB
                      DB_ALLOC:
                        type: integer
                        format: int64
                        description: Allocated space in database in MB
                      LOG_SIZE:
                        type: integer
                        format: int64
                        description: Log size in MB
                      LOG_ALLOC:
                        type: integer
                        format: int64
                        description: Allocated space in log in MB
                      RESERVED:
                        type: integer
                        format: int64
                        description: Reserved size in KB
                      NUMTABS:
                        type: integer
                        format: int32
                        description: Number of user tables
                      TABDATA:
                        type: integer
                        format: int64
                        description: Data size in KB
                      NUMINDS:
                        type: integer
                        format: int32
                        description: Number of indexes of user tables
                      INDDATA:
                        type: integer
                        format: int64
                        description: Index size in KB
                      UNUSED:
                        type: integer
                        format: int64
                        description: Unused size in KB
                      NUMPROCS:
                        type: integer
                        format: int32
                        description: Number of stored procedures created in DBI
                DB_HISTM:
                  type: array
                  items:
                    type: object
                    properties:
                      DATE:
                        type: string
                        format: date
                        description: Date
                      TIME:
                        type: string
                        maxLength: 6
                        description: Time
                      DBNAME:
                        type: string
                        maxLength: 128
                        description: Database name
                      DB_SIZE:
                        type: integer
                        format: int64
                        description: Database size in MB
                      DB_ALLOC:
                        type: integer
                        format: int64
                        description: Allocated space in database in MB
                      LOG_SIZE:
                        type: integer
                        format: int64
                        description: Log size in MB
                      LOG_ALLOC:
                        type: integer
                        format: int64
                        description: Allocated space in log in MB
                      RESERVED:
                        type: integer
                        format: int64
                        description: Reserved size in KB
                      NUMTABS:
                        type: integer
                        format: int32
                        description: Number of user tables
                      TABDATA:
                        type: integer
                        format: int64
                        description: Data size in KB
                      NUMINDS:
                        type: integer
                        format: int32
                        description: Number of indexes of user tables
                      INDDATA:
                        type: integer
                        format: int64
                        description: Index size in KB
                      UNUSED:
                        type: integer
                        format: int64
                        description: Unused size in KB
                      NUMPROCS:
                        type: integer
                        format: int32
                        description: Number of stored procedures created in DBI
                DB_HISTW:
                  type: array
                  items:
                    type: object
                    properties:
                      DATE:
                        type: string
                        format: date
                        description: Date
                      TIME:
                        type: string
                        maxLength: 6
                        description: Time
                      DBNAME:
                        type: string
                        maxLength: 128
                        description: Database name
                      DB_SIZE:
                        type: integer
                        format: int64
                        description: Database size in MB
                      DB_ALLOC:
                        type: integer
                        format: int64
                        description: Allocated space in database in MB
                      LOG_SIZE:
                        type: integer
                        format: int64
                        description: Log size in MB
                      LOG_ALLOC:
                        type: integer
                        format: int64
                        description: Allocated space in log in MB
                      RESERVED:
                        type: integer
                        format: int64
                        description: Reserved size in KB
                      NUMTABS:
                        type: integer
                        format: int32
                        description: Number of user tables
                      TABDATA:
                        type: integer
                        format: int64
                        description: Data size in KB
                      NUMINDS:
                        type: integer
                        format: int32
                        description: Number of indexes of user tables
                      INDDATA:
                        type: integer
                        format: int64
                        description: Index size in KB
                      UNUSED:
                        type: integer
                        format: int64
                        description: Unused size in KB
                      NUMPROCS:
                        type: integer
                        format: int32
                        description: Number of stored procedures created in DBI
                FILE_HISTD:
                  type: array
                  items:
                    type: object
                    properties:
                      DATE:
                        type: string
                        format: date
                        description: Date
                      TIME:
                        type: string
                        maxLength: 6
                        description: Time
                      LOGFILENA:
                        type: string
                        maxLength: 128
                        description: Logical file name
                      PHYFILENA:
                        type: string
                        maxLength: 520
                        description: Physical file name (full path) of the database file.
                      FILEGRPNA:
                        type: string
                        maxLength: 128
                        description: Filegroup name
                      DEVFREE:
                        type: integer
                        format: int64
                        description: Free space left on file system (partition) in MB.
                      DBGROWTH:
                        type: string
                        maxLength: 8
                        description: File growth step configured in SQL Server.
                      FLSIZEMB:
                        type: integer
                        format: int64
                        description: File size in MB.
                      USEDSIZEMB:
                        type: string
                        maxLength: 10
                        description: Used space in database file (in extents = 64kB or in MB).
                      MAX_SIZE:
                        type: string
                        maxLength: 10
                        description: File size limit in MB configured in SQL Server.
                FILE_HISTM:
                  type: array
                  items:
                    type: object
                    properties:
                      DATE:
                        type: string
                        format: date
                        description: Date
                      TIME:
                        type: string
                        maxLength: 6
                        description: Time
                      LOGFILENA:
                        type: string
                        maxLength: 128
                        description: Logical file name
                      PHYFILENA:
                        type: string
                        maxLength: 520
                        description: Physical file name (full path) of the database file.
                      FILEGRPNA:
                        type: string
                        maxLength: 128
                        description: Filegroup name
                      DEVFREE:
                        type: integer
                        format: int64
                        description: Free space left on file system (partition) in MB.
                      DBGROWTH:
                        type: string
                        maxLength: 8
                        description: File growth step configured in SQL Server.
                      FLSIZEMB:
                        type: integer
                        format: int64
                        description: File size in MB.
                      USEDSIZEMB:
                        type: string
                        maxLength: 10
                        description: Used space in database file (in extents = 64kB or in MB).
                      MAX_SIZE:
                        type: string
                        maxLength: 10
                        description: File size limit in MB configured in SQL Server.
                FILE_HISTW:
                  type: array
                  items:
                    type: object
                    properties:
                      DATE:
                        type: string
                        format: date
                        description: Date
                      TIME:
                        type: string
                        maxLength: 6
                        description: Time
                      LOGFILENA:
                        type: string
                        maxLength: 128
                        description: Logical file name
                      PHYFILENA:
                        type: string
                        maxLength: 520
                        description: Physical file name (full path) of the database file.
                      FILEGRPNA:
                        type: string
                        maxLength: 128
                        description: Filegroup name
                      DEVFREE:
                        type: integer
                        format: int64
                        description: Free space left on file system (partition) in MB.
                      DBGROWTH:
                        type: string
                        maxLength: 8
                        description: File growth step configured in SQL Server.
                      FLSIZEMB:
                        type: integer
                        format: int64
                        description: File size in MB.
                      USEDSIZEMB:
                        type: string
                        maxLength: 10
                        description: Used space in database file (in extents = 64kB or in MB).
                      MAX_SIZE:
                        type: string
                        maxLength: 10
                        description: File size limit in MB configured in SQL Server.
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  DB_HISTD:
                    type: array
                    items:
                      type: object
                      properties:
                        DATE:
                          type: string
                          format: date
                          description: Date
                        TIME:
                          type: string
                          maxLength: 6
                          description: Time
                        DBNAME:
                          type: string
                          maxLength: 128
                          description: Database name
                        DB_SIZE:
                          type: integer
                          format: int64
                          description: Database size in MB
                        DB_ALLOC:
                          type: integer
                          format: int64
                          description: Allocated space in database in MB
                        LOG_SIZE:
                          type: integer
                          format: int64
                          description: Log size in MB
                        LOG_ALLOC:
                          type: integer
                          format: int64
                          description: Allocated space in log in MB
                        RESERVED:
                          type: integer
                          format: int64
                          description: Reserved size in KB
                        NUMTABS:
                          type: integer
                          format: int32
                          description: Number of user tables
                        TABDATA:
                          type: integer
                          format: int64
                          description: Data size in KB
                        NUMINDS:
                          type: integer
                          format: int32
                          description: Number of indexes of user tables
                        INDDATA:
                          type: integer
                          format: int64
                          description: Index size in KB
                        UNUSED:
                          type: integer
                          format: int64
                          description: Unused size in KB
                        NUMPROCS:
                          type: integer
                          format: int32
                          description: Number of stored procedures created in DBI
                  DB_HISTM:
                    type: array
                    items:
                      type: object
                      properties:
                        DATE:
                          type: string
                          format: date
                          description: Date
                        TIME:
                          type: string
                          maxLength: 6
                          description: Time
                        DBNAME:
                          type: string
                          maxLength: 128
                          description: Database name
                        DB_SIZE:
                          type: integer
                          format: int64
                          description: Database size in MB
                        DB_ALLOC:
                          type: integer
                          format: int64
                          description: Allocated space in database in MB
                        LOG_SIZE:
                          type: integer
                          format: int64
                          description: Log size in MB
                        LOG_ALLOC:
                          type: integer
                          format: int64
                          description: Allocated space in log in MB
                        RESERVED:
                          type: integer
                          format: int64
                          description: Reserved size in KB
                        NUMTABS:
                          type: integer
                          format: int32
                          description: Number of user tables
                        TABDATA:
                          type: integer
                          format: int64
                          description: Data size in KB
                        NUMINDS:
                          type: integer
                          format: int32
                          description: Number of indexes of user tables
                        INDDATA:
                          type: integer
                          format: int64
                          description: Index size in KB
                        UNUSED:
                          type: integer
                          format: int64
                          description: Unused size in KB
                        NUMPROCS:
                          type: integer
                          format: int32
                          description: Number of stored procedures created in DBI
                  DB_HISTW:
                    type: array
                    items:
                      type: object
                      properties:
                        DATE:
                          type: string
                          format: date
                          description: Date
                        TIME:
                          type: string
                          maxLength: 6
                          description: Time
                        DBNAME:
                          type: string
                          maxLength: 128
                          description: Database name
                        DB_SIZE:
                          type: integer
                          format: int64
                          description: Database size in MB
                        DB_ALLOC:
                          type: integer
                          format: int64
                          description: Allocated space in database in MB
                        LOG_SIZE:
                          type: integer
                          format: int64
                          description: Log size in MB
                        LOG_ALLOC:
                          type: integer
                          format: int64
                          description: Allocated space in log in MB
                        RESERVED:
                          type: integer
                          format: int64
                          description: Reserved size in KB
                        NUMTABS:
                          type: integer
                          format: int32
                          description: Number of user tables
                        TABDATA:
                          type: integer
                          format: int64
                          description: Data size in KB
                        NUMINDS:
                          type: integer
                          format: int32
                          description: Number of indexes of user tables
                        INDDATA:
                          type: integer
                          format: int64
                          description: Index size in KB
                        UNUSED:
                          type: integer
                          format: int64
                          description: Unused size in KB
                        NUMPROCS:
                          type: integer
                          format: int32
                          description: Number of stored procedures created in DBI
                  FILE_HISTD:
                    type: array
                    items:
                      type: object
                      properties:
                        DATE:
                          type: string
                          format: date
                          description: Date
                        TIME:
                          type: string
                          maxLength: 6
                          description: Time
                        LOGFILENA:
                          type: string
                          maxLength: 128
                          description: Logical file name
                        PHYFILENA:
                          type: string
                          maxLength: 520
                          description: Physical file name (full path) of the database file.
                        FILEGRPNA:
                          type: string
                          maxLength: 128
                          description: Filegroup name
                        DEVFREE:
                          type: integer
                          format: int64
                          description: Free space left on file system (partition) in MB.
                        DBGROWTH:
                          type: string
                          maxLength: 8
                          description: File growth step configured in SQL Server.
                        FLSIZEMB:
                          type: integer
                          format: int64
                          description: File size in MB.
                        USEDSIZEMB:
                          type: string
                          maxLength: 10
                          description: Used space in database file (in extents = 64kB or in MB).
                        MAX_SIZE:
                          type: string
                          maxLength: 10
                          description: File size limit in MB configured in SQL Server.
                  FILE_HISTM:
                    type: array
                    items:
                      type: object
                      properties:
                        DATE:
                          type: string
                          format: date
                          description: Date
                        TIME:
                          type: string
                          maxLength: 6
                          description: Time
                        LOGFILENA:
                          type: string
                          maxLength: 128
                          description: Logical file name
                        PHYFILENA:
                          type: string
                          maxLength: 520
                          description: Physical file name (full path) of the database file.
                        FILEGRPNA:
                          type: string
                          maxLength: 128
                          description: Filegroup name
                        DEVFREE:
                          type: integer
                          format: int64
                          description: Free space left on file system (partition) in MB.
                        DBGROWTH:
                          type: string
                          maxLength: 8
                          description: File growth step configured in SQL Server.
                        FLSIZEMB:
                          type: integer
                          format: int64
                          description: File size in MB.
                        USEDSIZEMB:
                          type: string
                          maxLength: 10
                          description: Used space in database file (in extents = 64kB or in MB).
                        MAX_SIZE:
                          type: string
                          maxLength: 10
                          description: File size limit in MB configured in SQL Server.
                  FILE_HISTW:
                    type: array
                    items:
                      type: object
                      properties:
                        DATE:
                          type: string
                          format: date
                          description: Date
                        TIME:
                          type: string
                          maxLength: 6
                          description: Time
                        LOGFILENA:
                          type: string
                          maxLength: 128
                          description: Logical file name
                        PHYFILENA:
                          type: string
                          maxLength: 520
                          description: Physical file name (full path) of the database file.
                        FILEGRPNA:
                          type: string
                          maxLength: 128
                          description: Filegroup name
                        DEVFREE:
                          type: integer
                          format: int64
                          description: Free space left on file system (partition) in MB.
                        DBGROWTH:
                          type: string
                          maxLength: 8
                          description: File growth step configured in SQL Server.
                        FLSIZEMB:
                          type: integer
                          format: int64
                          description: File size in MB.
                        USEDSIZEMB:
                          type: string
                          maxLength: 10
                          description: Used space in database file (in extents = 64kB or in MB).
                        MAX_SIZE:
                          type: string
                          maxLength: 10
                          description: File size limit in MB configured in SQL Server.
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
