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

    FOG API - get host list

    Scheduled Pinned Locked Moved
    General
    2
    2
    1.3k
    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.
    • V
      vim
      last edited by

      Greetings!
      I have several hosts.
      Could you please tell me how I can get a host list using API?
      I do this:

      curl --silent -X GET -H 'content-type: application/json' -H 'fog-user-token: token' -H 'fog-api-token: token' http://hostname/fog/host
      

      And I receive in reply:

      {"count": 0, "hosts": []}
      

      I also tried:

      • /fog/host/list
      • /fog/host/all

      And this also returns:

      {"count": 0, "hosts": []}
      

      Fog running Version: 1.4.4

      Regards!

      1 Reply Last reply Reply Quote 0
      • george1421G
        george1421 Moderator
        last edited by

        There is some information available here: https://news.fogproject.org/simplified-api-documentation/

        @Wayne-Workman has some examples of the API. https://forums.fogproject.org/topic/9779/can-i-use-some-kind-of-script-to-create-image-and-ghost-my-lab-machines/12

        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!

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

        161

        Online

        12.1k

        Users

        17.3k

        Topics

        155.4k

        Posts
        Copyright © 2012-2024 FOG Project