• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Snapin Parameter by API?

    Scheduled Pinned Locked Moved
    General
    2
    3
    838
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • F
      Freak
      last edited by

      I searched and didn’t find any information for this…
      Maybe I am just blind 😉
      Short question: Is it possible to execute a Snapn as task by webapi with then custom parameters/arguments?
      I know many workarounds - but if possible this might be cleaner and would be nice 🙂
      Just as robocopy.bat which some defined parameters…

      TIA!

      1 Reply Last reply Reply Quote 0
      • S
        Sebastian Roth Moderator
        last edited by

        @Freak Have you read through this? https://news.fogproject.org/simplified-api-documentation/

        Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

        Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

        F 1 Reply Last reply Reply Quote 0
        • F
          Freak @Sebastian Roth
          last edited by

          @sebastian-roth thx, at the bottom it’s nearly what I look for.
          But how can I set a default parameter as a Path for example in the snapin screen, but overwrite it if I set a parameter…?

          regarding the example on the link:

          {
          “taskTypeID”: <IDOFTASKTYPE>,
          “taskName”: “robocopysync”,
          “destination”: “<path>”,
          “source”: “<path>”
          }
          Can I use them like this?

          0_1510746465332_Bildschirmfoto zu 2017-11-15 12-46-58.png

          And regarding the API: Whats the difference between a SnapinTask and a SnapinJob?

          TIA

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post

          170

          Online

          12.0k

          Users

          17.3k

          Topics

          155.2k

          Posts
          Copyright © 2012-2024 FOG Project