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

    Can't create host with API

    Scheduled Pinned Locked Moved
    FOG Problems
    2
    3
    207
    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
      fausty
      last edited by

      Hello,

      I try to create host with fog API but not working. He appears on database, not on web interface. I search how th API working and i don’t find what i want.
      Can u tell me what args i have to write in data ?
      Thx

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

        @fausty said in Can't create host with API:

        He appears on database, not on web interface.

        Probably missing the MAC address…

        Did you search the forums?
        https://forums.fogproject.org/topic/15848/api-creating-host
        https://forums.fogproject.org/topic/11181/api-create-host-error-required-database-field-is-empty

        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
          fausty @Sebastian Roth
          last edited by

          @sebastian-roth Ok i test again with [] for mac but yesterday i probably write mac nots mac. Thx for help it’s working

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

          139

          Online

          12.1k

          Users

          17.3k

          Topics

          155.3k

          Posts
          Copyright © 2012-2024 FOG Project