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

FOG API?

Scheduled Pinned Locked Moved
Feature Request
5
10
5.5k
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.
  • J
    Justin Roberts
    last edited by Jun 24, 2014, 4:42 PM

    Hey guys,

    Not sure if this has been brought up / discussed here before. I think it could be useful for FOG to have an API service so we can fully automate simple FOG tasks like deploying/uploading images, instead of requiring a cron job or using the web UI.

    -Justin

    1 Reply Last reply Reply Quote 0
    • A
      albero
      last edited by Jul 7, 2014, 3:14 PM

      I also would really like to see an API service included with FOG. What are everyone’s thoughts regarding this? And in particular, the developers’ opinions?

      albero

      1 Reply Last reply Reply Quote 0
      • J
        Junkhacker Developer
        last edited by Jul 7, 2014, 3:31 PM

        I would like to know what capacities you are wanting to tap into or add. are you aware of the plugin system that is implemented and growing with each version?

        signature:
        Junkhacker
        We are here to help you. If you are unresponsive to our questions, don't expect us to be responsive to yours.

        1 Reply Last reply Reply Quote 0
        • J
          Justin Roberts
          last edited by Jul 7, 2014, 3:42 PM

          Specifically, I’d like to be able to start/stop tasks from a remote machine, via a script, without needing to go through the web UI. I guess I’m not sure if there are any plugins that would support this kind of functionality currently.

          1 Reply Last reply Reply Quote 0
          • J
            Junkhacker Developer
            last edited by Jul 7, 2014, 4:01 PM

            so far as i am aware, the only existing plugins are the official fog plugins. it is our hope to get things to the point where people can easily create and share plugins for fog to extend the functionality and optimize it for different environments. can you provide more details as to how, specifically, you would like to do the remote task functions and what kinds of functions you need to be able to do?

            signature:
            Junkhacker
            We are here to help you. If you are unresponsive to our questions, don't expect us to be responsive to yours.

            1 Reply Last reply Reply Quote 0
            • J
              Justin Roberts
              last edited by Jul 7, 2014, 5:18 PM

              I am hoping to use FOG as part of a project that I support, which requires machines to be imaged on a frequent, but not regular basis. Originally I was getting by with just scheduled tasks. But this was creating issues because occasionally the scheduled task would not kick off in time for when I would need to deploy a new image and I would need to do it manually.

              Ideally, this service would function similarly to the REST API that the Cuckoo Sandbox uses ([url]http://docs.cuckoosandbox.org/en/latest/usage/api/[/url]). But really, all I need is a way to simply (through GET/POST requests) interface with FOG to do remote tasks. For example, [url]http://fog.local/api/deploy/fog_host_1[/url], which would submit a task to FOG, that would deploy the default image for “fog_host_1”. The only functions I need to be able to do is return a list of All Hosts, Deploy to a specific host, and upload from a specific host.

              1 Reply Last reply Reply Quote 0
              • T
                Tom Elliott
                last edited by Jul 7, 2014, 5:22 PM

                While I understand that this would be nice, it’s not very easy. That said, you may want to look at this project:

                [url]https://github.com/JC-SoCal/pyFog[/url]

                Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                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

                1 Reply Last reply Reply Quote 0
                • J
                  Justin Roberts
                  last edited by Jul 7, 2014, 5:44 PM

                  I understand it’s a bit of a tall order, I just wanted to see if there was any interest in something like this within the FOG community, or if it is planned for the future at all. I did not know about the pyFog project before, but it looks like it may suit my needs for now. Thanks!

                  1 Reply Last reply Reply Quote 0
                  • D
                    Dave Wolf
                    last edited by Jul 9, 2014, 4:43 PM

                    I’d love to see an API as well; as part of our software build procedure we image systems for automated testing. Currently we’re using Ghost but are exploring FOG as a promising alternative. I’ll also look into the pyFog project as a potential solution, but an API would be great.

                    1 Reply Last reply Reply Quote 0
                    • T
                      Tom Elliott
                      last edited by Jan 12, 2018, 8:55 PM

                      Just wanted to reply here to let people know that we do have an api now. I know this thread is extremely old, but figured all might like to know this.

                      Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                      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

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

                      163

                      Online

                      12.0k

                      Users

                      17.3k

                      Topics

                      155.2k

                      Posts
                      Copyright © 2012-2024 FOG Project