• 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
    • Best 0
    • Controversial 0
    • Groups 0

    Topics created by maddyred

    • M

      Fog api image create 417 error

      FOG Problems
      • • • maddyred
      4
      0
      Votes
      4
      Posts
      532
      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"

      FOG Problems
      • • • maddyred
      4
      0
      Votes
      4
      Posts
      501
      Views

      S

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

    • 1 / 1