Project

General

Profile

Bug #6997

Host API v2 required parameters are wrong

Added by Daniel Lobato Garcia over 8 years ago. Updated over 8 years ago.

Status:
Duplicate
Priority:
Normal
Assignee:
-
Category:
API
Target version:
-
Difficulty:
easy
Triaged:
No
Bugzilla link:
Pull request:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

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


Related issues

Related to Foreman - Bug #7332: Host Create API documentation missing required parametersClosed2014-09-03

History

#1 Updated by Dominic Cleal over 8 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.

#2 Updated by Dominic Cleal over 8 years ago

  • Related to Bug #7332: Host Create API documentation missing required parameters added

#3 Updated by Dominic Cleal over 8 years ago

  • Status changed from New to Duplicate

#7332 is going to try adding text descriptions.

Also available in: Atom PDF