Project

General

Profile

Actions

Bug #6997

closed

Host API v2 required parameters are wrong

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

Status:
Duplicate
Priority:
Normal
Assignee:
-
Category:
API
Target version:
-
Difficulty:
easy
Triaged:
Fixed in Releases:
Found in Releases:

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 1 (0 open1 closed)

Related to Foreman - Bug #7332: Host Create API documentation missing required parametersClosedJoseph Magen09/03/2014Actions
Actions #1

Updated by Dominic Cleal over 9 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.

Actions #2

Updated by Dominic Cleal over 9 years ago

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

Updated by Dominic Cleal over 9 years ago

  • Status changed from New to Duplicate

#7332 is going to try adding text descriptions.

Actions

Also available in: Atom PDF