Actions
Bug #6997
closedHost API v2 required parameters are wrong
Status:
Duplicate
Priority:
Normal
Assignee:
-
Category:
API
Target version:
-
Description
Some of the values of the host POST create request in API v2 are required yet they are marked in the examples as not required.
Discovered in a thread in Foreman-users - https://groups.google.com/forum/#!topic/foreman-users/vMMCHy_4DpM
Updated by Dominic Cleal over 10 years ago
environment_id is the only one that can be marked required I believe, as all of the others are dynamic depending on the type of host.
EDIT: and you can't even set that, as hostgroup_id can supply environment_id. I'm not really sure what else it's possible to do here.
Updated by Dominic Cleal over 10 years ago
- Related to Bug #7332: Host Create API documentation missing required parameters added
Updated by Dominic Cleal over 10 years ago
- Status changed from New to Duplicate
#7332 is going to try adding text descriptions.
Actions