openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/ADD_DBA_PLANNING_ALL:
    post:
      tags:
      - SDBA
      operationId: /rfc/ADD_DBA_PLANNING_ALL
      requestBody:
        content:
          application/json:
            schema:
              properties:
                PLANNING_DESC:
                  type: object
                  properties:
                    SHORTCUT:
                      type: string
                      maxLength: 5
                      description: Type of DBA action
                    DBSYS:
                      type: string
                      maxLength: 10
                      description: 'Database System for DBA  enumValues: *=Valid for All DB Platforms,SDB/LVC=liveCache,INFORMIX=INFORMIX,MSSQL=Microsoft SQL Server,DB400=DB2/400,DB2=DB2/CS,SDB/ANY=MySQL MaxDB with no SAP ABAP, such as Content Server, ...,SDB=MySQL MaxDB with SAP ABAP,ORACLE=ORACLE,DB6=DB2 UDB'
                      enum:
                      - '*'
                      - SDB/LVC
                      - INFORMIX
                      - MSSQL
                      - DB400
                      - DB2
                      - SDB/ANY
                      - SDB
                      - ORACLE
                      - DB6
                    OPSYS:
                      type: string
                      maxLength: 10
                      description: Name of operating system
                    LANGUAGE:
                      type: string
                      maxLength: 1
                      description: Language Key
                    SHORTNAM:
                      type: string
                      maxLength: 11
                      description: Short name for the DBA action
                    LONGNAME:
                      type: string
                      maxLength: 40
                      description: Long name for DBA action
                    HOST:
                      type: string
                      maxLength: 30
                      description: Name of the server where the DBA action is to be executed
                    PTYPES:
                      type: string
                      maxLength: 5
                      description: List of parameter types
                    CTYPE:
                      type: string
                      maxLength: 3
                      description: Execution mode for DBA action (using ext. program or report)
                    CNAME:
                      type: string
                      maxLength: 30
                      description: Name of command or report to execute
                    PSTRING:
                      type: string
                      maxLength: 128
                      description: Generic parameter string for the DBA action
                    DURATION:
                      type: integer
                      format: int32
                      description: Duration of the DBA action
                    ATYPE:
                      type: string
                      maxLength: 5
                      description: Type of the DBA action (for grouping)
                    EXT1:
                      type: string
                      maxLength: 1
                      description: Extension 1 for description of DBA action
                    EXT2:
                      type: string
                      maxLength: 5
                      description: Extension 2 for description of DBA action
                    EXT3:
                      type: string
                      maxLength: 8
                      description: Extension 3 for description of DBA action
                    BEGREL:
                      type: string
                      maxLength: 4
                      description: Release Status of SAP System
                    ENDREL:
                      type: string
                      maxLength: 4
                      description: Release Status of SAP System
                    BEGDBREL:
                      type: string
                      maxLength: 10
                      description: Database release
                    ENDDBREL:
                      type: string
                      maxLength: 10
                      description: Database release
                    ACTMODE:
                      type: string
                      maxLength: 1
                      description: 'Action Type: ''R'' - NW Act., ''N'' - Non-NW Act., '' '' - Both'
                    PLANMODE:
                      type: string
                      maxLength: 1
                      description: 'Planning Mode: "L" - Local Only "G" - Global Only " " - Both'
                PLANNING_STRUCT:
                  type: object
                  properties:
                    DAYE:
                      type: integer
                      format: int64
                      description: 'Day of the week for DBA action  enumValues: 1=Monday,4=Thursday,5=Friday,7=Sunday,3=Wednesday,2=Tuesday,6=Saturday'
                      enum:
                      - '1'
                      - '4'
                      - '5'
                      - '7'
                      - '3'
                      - '2'
                      - '6'
                    TIMEE:
                      type: string
                      maxLength: 6
                      description: Time (24 hour clock) for DBA action to run
                    CRETSTMP:
                      type: string
                      maxLength: 14
                      description: Date and time (timestamp) of schedule
                    SYSID:
                      type: string
                      maxLength: 8
                      description: Name of the SAP System
                    BTYPE:
                      type: string
                      maxLength: 5
                      description: Type of DBA action
                    PERIOD:
                      type: integer
                      format: int64
                      description: Duration (in days) of DBA action
                    DELTSTMP:
                      type: string
                      maxLength: 14
                      description: Timestamp for deletion of DBA action
                    STARTTSTMP:
                      type: string
                      maxLength: 14
                      description: Timestamp for first run of DBA action
                    MANDT:
                      type: string
                      maxLength: 3
                      description: Client ID of Current User
                    EXEHOST:
                      type: string
                      maxLength: 30
                      description: Name of the server where the DBA action is to be executed
                START_IMMED:
                  type: string
                  maxLength: 1
                  description: Single-Character Flag
                TASK_NAME:
                  type: string
                  maxLength: 8192
                  description: Single-Character Flag
                TASK_STR:
                  type: string
                  maxLength: 8192
                  description: Single-Character Flag
                RESOURCE_TABLE:
                  type: array
                  items:
                    type: object
                    properties:
                      DAYE:
                        type: integer
                        format: int64
                        description: 'Day of the week for DBA action  enumValues: 1=Monday,4=Thursday,5=Friday,7=Sunday,3=Wednesday,2=Tuesday,6=Saturday'
                        enum:
                        - '1'
                        - '4'
                        - '5'
                        - '7'
                        - '3'
                        - '2'
                        - '6'
                      TIMEE:
                        type: string
                        maxLength: 6
                        description: Time (24 hour clock) for DBA action to run
                      CRETSTMP:
                        type: string
                        maxLength: 14
                        description: Date and time (timestamp) of schedule
                      SYSID:
                        type: string
                        maxLength: 8
                        description: Name of the SAP System
                      POS:
                        type: integer
                        format: int64
                        description: Consecutive number for detail lines
                      RESTYPE:
                        type: string
                        maxLength: 1
                        description: Single-Character Flag
                      RESNAME:
                        type: string
                        maxLength: 50
                        description: Comment
                      RESNAME2:
                        type: string
                        maxLength: 50
                        description: Comment
              required:
              - PLANNING_DESC
              - PLANNING_STRUCT
              - START_IMMED
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  PLANNING_RC:
                    type: integer
                    format: int32
                    description: Return Value, Return Value After ABAP Statements
                  RESOURCE_TABLE:
                    type: array
                    items:
                      type: object
                      properties:
                        DAYE:
                          type: integer
                          format: int64
                          description: 'Day of the week for DBA action  enumValues: 1=Monday,4=Thursday,5=Friday,7=Sunday,3=Wednesday,2=Tuesday,6=Saturday'
                          enum:
                          - '1'
                          - '4'
                          - '5'
                          - '7'
                          - '3'
                          - '2'
                          - '6'
                        TIMEE:
                          type: string
                          maxLength: 6
                          description: Time (24 hour clock) for DBA action to run
                        CRETSTMP:
                          type: string
                          maxLength: 14
                          description: Date and time (timestamp) of schedule
                        SYSID:
                          type: string
                          maxLength: 8
                          description: Name of the SAP System
                        POS:
                          type: integer
                          format: int64
                          description: Consecutive number for detail lines
                        RESTYPE:
                          type: string
                          maxLength: 1
                          description: Single-Character Flag
                        RESNAME:
                          type: string
                          maxLength: 50
                          description: Comment
                        RESNAME2:
                          type: string
                          maxLength: 50
                          description: Comment
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
