Skip to content

api/images: get by filename does not work #93

Description

@rgl

The api/images?filename is documented as:

Image

But it does not work, as you can see, more than one image is returned:

curl --silent -X GET http://localhost:8081/api/images --url-query filename=windows-server-2022-amd64.iso -H "Authorization: Bearer ..."
{
  "success": true,
  "data": [
    {
      "id": 1,
      "created_at": "2026-07-12T09:45:32.966316123Z",
      "updated_at": "2026-07-12T12:18:26.871451318Z",
      "deleted_at": null,
      "name": "debian-13.6.0-amd64-netinst",
      "filename": "debian-13.6.0-amd64-netinst.iso",
      "description": "",
      "size": 791674880,
      "enabled": true,
      "public": true,
      "boot_count": 0,
      "order": 0,
      "extracted": true,
      "distro": "debian",
      "boot_method": "kernel",
      "kernel_path": "data/isos/debian-13.6.0-amd64-netinst/vmlinuz",
      "initrd_path": "data/isos/debian-13.6.0-amd64-netinst/initrd",
      "boot_params": "initrd=initrd boot=live priority=critical",
      "extracted_at": "2026-07-12T09:47:01.074907031Z",
      "sanboot_compatible": false,
      "sanboot_hint": "Debian requires kernel extraction. Use 'Extract Kernel/Initrd' for network boot support.",
      "netboot_required": true,
      "netboot_available": true,
      "netboot_url": "http://ftp.debian.org/debian/dists/trixie/main/installer-amd64/current/images/netboot/netboot.tar.gz",
      "auto_install_enabled": true,
      "smb_install_enabled": false,
      "smb_needs_repatch": false,
      "auto_install_file": "debian/server.cfg"
    },
    {
    "id": 7,
    "created_at": "2026-07-12T14:41:18.839382056Z",
    "updated_at": "2026-07-12T14:41:18.872858642Z",
    "deleted_at": null,
    "name": "windows-server-2022-amd64",
    "filename": "windows-server-2022-amd64.iso",
    "description": "",
    "size": 5044094976,
    "enabled": true,
    "public": true,
    "boot_count": 0,
    "order": 0,
    "extracted": false,
    "distro": "windows",
    "boot_method": "sanboot",
    "sanboot_compatible": true,
    "netboot_required": false,
    "netboot_available": false,
    "auto_install_enabled": false,
    "smb_install_enabled": false,
    "smb_needs_repatch": false
    }
  ]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions