• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. maddyred
    3. Topics
    M
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 4
    • Groups 0

    Topics

    • M

      Fog api image create 417 error

      Watching Ignoring Scheduled Pinned Locked Moved FOG Problems
      4
      0 Votes
      4 Posts
      570 Views
      S

      @maddyred Finally found some time to look into this. Not sure where you got some of data field names from. You better take a look at the code. Here you find the reference to the fields used for images: https://github.com/FOGProject/fogproject/blob/dev-branch/packages/web/lib/fog/image.class.php#L35

      Just below that your also find the defintion of databaseFieldsRequired (for images) - you need at least those four to be able to create an image defintion: name, path, imageTypeID, osID

      Here is an example with some more fields that worked on my tests:

      ... data = { "name": "fogsvos", "description": "API created image", "path": "/images/fogsvos", "imageTypeID": 1, # Single Disk - Resizable "imagePartitionTypeID": 1, # Everything "osID": 50, # Linux "format": "5", # Partclone Zstd "protected": 0, "compress": 9, "isEnabled": 1, "toReplicate": 1, } ...
    • M

      API - Create Host "error": "Required database field is empty"

      Watching Ignoring Scheduled Pinned Locked Moved FOG Problems
      4
      0 Votes
      4 Posts
      548 Views
      S

      @maddyred You might want to take a look at this topic: https://forums.fogproject.org/topic/15848/api-creating-host

    • 1 / 1