openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/XDB_GET_PHASES:
    post:
      tags:
      - SSHO
      operationId: /rfc/XDB_GET_PHASES
      requestBody:
        content:
          application/json:
            schema:
              properties:
                FUNC_ID:
                  type: string
                  maxLength: 3
                JOB_NR:
                  type: integer
                  format: int64
                  description: Unique Job Number in a Task
                OBJNAME:
                  type: string
                  maxLength: 100
                  description: Fully-qualified object name
                OBJPARTB:
                  type: integer
                  format: int64
                  description: First partition of the database object
                OPER_ID:
                  type: string
                  maxLength: 14
                  description: Unique operation ID
                SYS_ID:
                  type: string
                  maxLength: 8
                  description: Database System ID
                TASKNAME:
                  type: string
                  maxLength: 30
                  description: Task Name
                TRIAL:
                  type: string
                  maxLength: 10
                  description: Unique ID Number of the Suboperation
                UTIL_NR:
                  type: integer
                  format: int64
                  description: Utility number within job step
                I_DBAPHAL:
                  type: array
                  items:
                    type: object
                    properties:
                      SYS_ID:
                        type: string
                        maxLength: 8
                        description: Database system ID
                      OPER_ID:
                        type: string
                        maxLength: 14
                        description: Unique operation ID
                      TASKNAME:
                        type: string
                        maxLength: 30
                        description: Task Name
                      JOB_NR:
                        type: integer
                        format: int64
                        description: Unique Job Number in a Task
                      TRIAL:
                        type: string
                        maxLength: 10
                        description: Unique ID Number of the Suboperation
                      UTIL_NR:
                        type: integer
                        format: int64
                        description: Utility number within job step
                      FUNC_ID:
                        type: string
                        maxLength: 3
                        description: Oracle file ID
                      OBJNAME:
                        type: string
                        maxLength: 100
                        description: Fully-qualified object name
                      OBJPARTB:
                        type: integer
                        format: int64
                        description: First partition of the database object
                      PHASE_NR:
                        type: integer
                        format: int64
                        description: Operation phase number
                      UPD_OP:
                        type: string
                        maxLength: 14
                        description: Update Time Stamp
                      PHASE_NAME:
                        type: string
                        maxLength: 30
                        description: Name of utility phase
                      STATUS:
                        type: string
                        maxLength: 30
                        description: 'Status: STARTED, RUNNING, COMPLETED  enumValues: STARTED=Operation started: no details available,COMPLETED=Operation completed,RUNNING=Operation running: details available'
                        enum:
                        - STARTED
                        - COMPLETED
                        - RUNNING
                      BEGIN_OP:
                        type: string
                        maxLength: 14
                        description: Sub-operation start time
                      END_OP:
                        type: string
                        maxLength: 14
                        description: End of sub-operation
                      RC:
                        type: integer
                        format: int64
                        description: 'Return code for DBA action  enumValues: 0001=Warning,0002=General error,0000=Everything OK,0003=Detailed error'
                        enum:
                        - '0001'
                        - '0002'
                        - '0000'
                        - '0003'
              required:
              - FUNC_ID
              - JOB_NR
              - OBJNAME
              - OBJPARTB
              - OPER_ID
              - SYS_ID
              - TASKNAME
              - TRIAL
              - UTIL_NR
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  CNT_DBAPHAL:
                    type: integer
                    format: int32
                    description: DB operations, number of table lines processed
                  I_DBAPHAL:
                    type: array
                    items:
                      type: object
                      properties:
                        SYS_ID:
                          type: string
                          maxLength: 8
                          description: Database system ID
                        OPER_ID:
                          type: string
                          maxLength: 14
                          description: Unique operation ID
                        TASKNAME:
                          type: string
                          maxLength: 30
                          description: Task Name
                        JOB_NR:
                          type: integer
                          format: int64
                          description: Unique Job Number in a Task
                        TRIAL:
                          type: string
                          maxLength: 10
                          description: Unique ID Number of the Suboperation
                        UTIL_NR:
                          type: integer
                          format: int64
                          description: Utility number within job step
                        FUNC_ID:
                          type: string
                          maxLength: 3
                          description: Oracle file ID
                        OBJNAME:
                          type: string
                          maxLength: 100
                          description: Fully-qualified object name
                        OBJPARTB:
                          type: integer
                          format: int64
                          description: First partition of the database object
                        PHASE_NR:
                          type: integer
                          format: int64
                          description: Operation phase number
                        UPD_OP:
                          type: string
                          maxLength: 14
                          description: Update Time Stamp
                        PHASE_NAME:
                          type: string
                          maxLength: 30
                          description: Name of utility phase
                        STATUS:
                          type: string
                          maxLength: 30
                          description: 'Status: STARTED, RUNNING, COMPLETED  enumValues: STARTED=Operation started: no details available,COMPLETED=Operation completed,RUNNING=Operation running: details available'
                          enum:
                          - STARTED
                          - COMPLETED
                          - RUNNING
                        BEGIN_OP:
                          type: string
                          maxLength: 14
                          description: Sub-operation start time
                        END_OP:
                          type: string
                          maxLength: 14
                          description: End of sub-operation
                        RC:
                          type: integer
                          format: int64
                          description: 'Return code for DBA action  enumValues: 0001=Warning,0002=General error,0000=Everything OK,0003=Detailed error'
                          enum:
                          - '0001'
                          - '0002'
                          - '0000'
                          - '0003'
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
