Tested with working branch, same result.
Posts made by maikBat
FOG API returning 404
I have a app that have been connected to my FOG server using the API. I installed a new server today and the API request is only returning 404. I tested with Postman and I’m getting the same result. Using http://fogip/fog/system/status | info endpoint just getting 404. The rest of the system is working as expected API is enabled and user API is enabled too. Also using tokens (API token, User APi token) on headers. Fog version 1.5.2.
RE: FOG API
@wayne-workman I got everything setup in my server but when I try to send a post i’m receiving this:
<!DOCTYPE HTML PUBLIC “-//IETF//DTD HTML 2.0//EN”>
<title>404 Not Found</title>
<p>The requested URL /fog/host/AABBCC/task was not found on this server.</p>
<address>Apache/2.4.29 (Ubuntu) Server at 192.168.70.3 Port 9000</address>
I’m using port 9000 because I have other service running on 80. I need to run fog and my app in the same server.
The Fog management, PXE and image clone services are working properly and the API is enabled.
Fog running Version: 1.4.4
RE: FOG API
@george1421 I checked the API info, Is amazing to know that this is available. Now I have a couple questions:
Where I can find the task IDs? Will be great to have the “Task IDs” and other options related with them.
In summary, this is what I want to try to do:
- Register a host (name:MAC, MAC:MAC, ImageID:ImageIDNumber)
- Deploy Image on host
- Unregister Host
I pretend do all this using php and json
Hi, I need to know if FOG has an API implemented. I’m trying to build a script that to create “Tasks” for specifics computers. Is there any way to do this in an elegant way with the current version of Fog? If not, there is a way to get the specific table and fields that need be changed/added on the DB for do this.
i.e: I have a list of MACs. I want to deploy a specific image to these PCs without any user interaction. I know the Image ID Number.
Thanks so much