Actions
Bug #37243
openCalling the api/v2/operatingsystems#bootfiles endpoint results in unknown requirements
Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Description
Follow up of Bug #35055
If i call the api endpoint api/v2/operatingsystems/:id/bootfiles it now results in {"message":"Couldn't find Medium without an ID"}
The apidoc only mentions "id" as required.
I also can not guess what medium id it wants, i´ve tried some bu none did work.
Updated by Bernhard Suttner 8 months ago
You need to add the medium and arch like this:
https://foreman.host/api/v2/operatingsystems/2/bootfiles?medium=16&architecture=1
And you need to have this fix: https://github.com/theforeman/foreman/pull/10096
And you should consider, that this API is deprecated: https://github.com/theforeman/foreman/blob/b0efc769b9b800f6ecf3b14738ed906cec27f222/app/controllers/api/v2/operatingsystems_controller.rb#L91
Updated by Markus Bucher 8 months ago
- Blocked by Bug #37270: OS bootfiles API not working because of misspelled class added
Actions