openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/DB02_GET_TSSIZES_DB2:
    post:
      tags:
      - DB02_DB2
      operationId: /rfc/DB02_GET_TSSIZES_DB2
      requestBody:
        content:
          application/json:
            schema:
              properties:
                CATALOG_ALSO_FLAG:
                  type: string
                  default: '-'
                  maxLength: 1
                  description: boolean variable (X=true, -=false, space=unknown)
                DATASET_SIZE_LIST:
                  type: array
                  items:
                    type: object
                    properties:
                      TSNAME:
                        type: string
                        maxLength: 8
                        description: Name of the tablespace
                      DBNAME:
                        type: string
                        maxLength: 8
                        description: Database name
                      DSNAME:
                        type: string
                        maxLength: 44
                        description: Dataset name
                      EXTENTS:
                        type: integer
                        format: int64
                        description: Total number of extents of a tablespace or index
                      ALLOCSIZE:
                        type: integer
                        format: int64
                        description: Total size of a tablespace (allocated storage in KB)
                      FREESIZE:
                        type: integer
                        format: int64
                        description: Free size of a tablespace in KB (allocated minus used stor.)
                      PCTUSED:
                        type: integer
                        format: int64
                        description: Percentage of used size to allocated size of a tablespace
                      PQTY:
                        type: integer
                        format: int32
                        description: Primary space allocation
                      SQTY:
                        type: integer
                        format: int32
                        description: Secondary space allocation
                      QTYUNIT:
                        type: string
                        maxLength: 8
                        description: 'Unit in which primary and secondary allocation are given  enumValues: CYLINDER=Cylinder,MEGABYTE=Megabyte,KILOBYTE=Kilobyte,TRACK=Track'
                        enum:
                        - CYLINDER
                        - MEGABYTE
                        - KILOBYTE
                        - TRACK
                      STORDATE:
                        type: string
                        format: date
                        description: Date when the storage information has been collected
                      STORTIME:
                        type: string
                        maxLength: 6
                        description: Time when the storage information has been collected
                PARTITION_SIZE_LIST:
                  type: array
                  items:
                    type: object
                    properties:
                      TSNAME:
                        type: string
                        maxLength: 8
                        description: Name of the tablespace
                      DBNAME:
                        type: string
                        maxLength: 8
                        description: Database name
                      PART:
                        type: integer
                        format: int32
                        description: Partition number
                      DSNAME:
                        type: string
                        maxLength: 44
                        description: Dataset name
                      EXTENTS:
                        type: integer
                        format: int64
                        description: Number of extents of a partition of a tablespace or index
                      ALLOCSIZE:
                        type: integer
                        format: int64
                        description: Allocated storage of a partition of a tablespace in KB
                      FREESIZE:
                        type: integer
                        format: int64
                        description: Free size of partition of a tablespace in KB
                      PCTUSED:
                        type: integer
                        format: int64
                        description: Percentage of used to alloc. size of a partition of a TS
                      PQTY:
                        type: integer
                        format: int32
                        description: Primary space allocation
                      SQTY:
                        type: integer
                        format: int32
                        description: Secondary space allocation
                      QTYUNIT:
                        type: string
                        maxLength: 8
                        description: 'Unit in which primary and secondary allocation are given  enumValues: CYLINDER=Cylinder,MEGABYTE=Megabyte,KILOBYTE=Kilobyte,TRACK=Track'
                        enum:
                        - CYLINDER
                        - MEGABYTE
                        - KILOBYTE
                        - TRACK
                      STORDATE:
                        type: string
                        format: date
                        description: Date when the storage information has been collected
                      STORTIME:
                        type: string
                        maxLength: 6
                        description: Time when the storage information has been collected
                TABLESPACE_SIZE_LIST_OLD:
                  type: array
                  items:
                    type: object
                    properties:
                      NAME:
                        type: string
                        maxLength: 8
                        description: Name of the tablespace
                      DBNAME:
                        type: string
                        maxLength: 8
                        description: Database name
                      PARTITIONS:
                        type: integer
                        format: int32
                        description: Number of partitions of a tablespace or index
                      DSNAME:
                        type: string
                        maxLength: 44
                        description: Dataset name
                      EXTENTS:
                        type: integer
                        format: int64
                        description: Total number of extents of a tablespace or index
                      ALLOCSIZE:
                        type: integer
                        format: int64
                        description: Total size of a tablespace (allocated storage in KB)
                      FREESIZE:
                        type: integer
                        format: int64
                        description: Free size of a tablespace in KB (allocated minus used stor.)
                      PCTUSED:
                        type: integer
                        format: int64
                        description: Percentage of used size to allocated size of a tablespace
                      MAXEXTENTS:
                        type: integer
                        format: int32
                        description: Maximum number of extents of a partition of the TS or IX
                      PQTY:
                        type: integer
                        format: int32
                        description: Primary space allocation
                      SQTY:
                        type: integer
                        format: int32
                        description: Secondary space allocation
                      QTYUNIT:
                        type: string
                        maxLength: 8
                        description: 'Unit in which primary and secondary allocation are given  enumValues: CYLINDER=Cylinder,MEGABYTE=Megabyte,KILOBYTE=Kilobyte,TRACK=Track'
                        enum:
                        - CYLINDER
                        - MEGABYTE
                        - KILOBYTE
                        - TRACK
                      STORDATE:
                        type: string
                        format: date
                        description: Date when the storage information has been collected
                      STORTIME:
                        type: string
                        maxLength: 6
                        description: Time when the storage information has been collected
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  DATE_OF_ANALYSIS:
                    type: string
                    format: date
                    description: boolean variable (X=true, -=false, space=unknown)
                  TIME_OF_ANALYSIS:
                    type: string
                    maxLength: 6
                    description: boolean variable (X=true, -=false, space=unknown)
                  DATASET_SIZE_LIST:
                    type: array
                    items:
                      type: object
                      properties:
                        TSNAME:
                          type: string
                          maxLength: 8
                          description: Name of the tablespace
                        DBNAME:
                          type: string
                          maxLength: 8
                          description: Database name
                        DSNAME:
                          type: string
                          maxLength: 44
                          description: Dataset name
                        EXTENTS:
                          type: integer
                          format: int64
                          description: Total number of extents of a tablespace or index
                        ALLOCSIZE:
                          type: integer
                          format: int64
                          description: Total size of a tablespace (allocated storage in KB)
                        FREESIZE:
                          type: integer
                          format: int64
                          description: Free size of a tablespace in KB (allocated minus used stor.)
                        PCTUSED:
                          type: integer
                          format: int64
                          description: Percentage of used size to allocated size of a tablespace
                        PQTY:
                          type: integer
                          format: int32
                          description: Primary space allocation
                        SQTY:
                          type: integer
                          format: int32
                          description: Secondary space allocation
                        QTYUNIT:
                          type: string
                          maxLength: 8
                          description: 'Unit in which primary and secondary allocation are given  enumValues: CYLINDER=Cylinder,MEGABYTE=Megabyte,KILOBYTE=Kilobyte,TRACK=Track'
                          enum:
                          - CYLINDER
                          - MEGABYTE
                          - KILOBYTE
                          - TRACK
                        STORDATE:
                          type: string
                          format: date
                          description: Date when the storage information has been collected
                        STORTIME:
                          type: string
                          maxLength: 6
                          description: Time when the storage information has been collected
                  PARTITION_SIZE_LIST:
                    type: array
                    items:
                      type: object
                      properties:
                        TSNAME:
                          type: string
                          maxLength: 8
                          description: Name of the tablespace
                        DBNAME:
                          type: string
                          maxLength: 8
                          description: Database name
                        PART:
                          type: integer
                          format: int32
                          description: Partition number
                        DSNAME:
                          type: string
                          maxLength: 44
                          description: Dataset name
                        EXTENTS:
                          type: integer
                          format: int64
                          description: Number of extents of a partition of a tablespace or index
                        ALLOCSIZE:
                          type: integer
                          format: int64
                          description: Allocated storage of a partition of a tablespace in KB
                        FREESIZE:
                          type: integer
                          format: int64
                          description: Free size of partition of a tablespace in KB
                        PCTUSED:
                          type: integer
                          format: int64
                          description: Percentage of used to alloc. size of a partition of a TS
                        PQTY:
                          type: integer
                          format: int32
                          description: Primary space allocation
                        SQTY:
                          type: integer
                          format: int32
                          description: Secondary space allocation
                        QTYUNIT:
                          type: string
                          maxLength: 8
                          description: 'Unit in which primary and secondary allocation are given  enumValues: CYLINDER=Cylinder,MEGABYTE=Megabyte,KILOBYTE=Kilobyte,TRACK=Track'
                          enum:
                          - CYLINDER
                          - MEGABYTE
                          - KILOBYTE
                          - TRACK
                        STORDATE:
                          type: string
                          format: date
                          description: Date when the storage information has been collected
                        STORTIME:
                          type: string
                          maxLength: 6
                          description: Time when the storage information has been collected
                  TABLESPACE_SIZE_LIST_OLD:
                    type: array
                    items:
                      type: object
                      properties:
                        NAME:
                          type: string
                          maxLength: 8
                          description: Name of the tablespace
                        DBNAME:
                          type: string
                          maxLength: 8
                          description: Database name
                        PARTITIONS:
                          type: integer
                          format: int32
                          description: Number of partitions of a tablespace or index
                        DSNAME:
                          type: string
                          maxLength: 44
                          description: Dataset name
                        EXTENTS:
                          type: integer
                          format: int64
                          description: Total number of extents of a tablespace or index
                        ALLOCSIZE:
                          type: integer
                          format: int64
                          description: Total size of a tablespace (allocated storage in KB)
                        FREESIZE:
                          type: integer
                          format: int64
                          description: Free size of a tablespace in KB (allocated minus used stor.)
                        PCTUSED:
                          type: integer
                          format: int64
                          description: Percentage of used size to allocated size of a tablespace
                        MAXEXTENTS:
                          type: integer
                          format: int32
                          description: Maximum number of extents of a partition of the TS or IX
                        PQTY:
                          type: integer
                          format: int32
                          description: Primary space allocation
                        SQTY:
                          type: integer
                          format: int32
                          description: Secondary space allocation
                        QTYUNIT:
                          type: string
                          maxLength: 8
                          description: 'Unit in which primary and secondary allocation are given  enumValues: CYLINDER=Cylinder,MEGABYTE=Megabyte,KILOBYTE=Kilobyte,TRACK=Track'
                          enum:
                          - CYLINDER
                          - MEGABYTE
                          - KILOBYTE
                          - TRACK
                        STORDATE:
                          type: string
                          format: date
                          description: Date when the storage information has been collected
                        STORTIME:
                          type: string
                          maxLength: 6
                          description: Time when the storage information has been collected
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
