Project

General

Profile

Actions

Bug #10896

open

v2/hosts_controller#create parameter "mac" is no longer valid

Added by Lukas Zapletal almost 9 years ago.

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

Description

A user reports on our list:

[sxin@goldstan ] $ curl -k -u admin:password -H "Accept: version=2,
application/json" -H "Content-Type: application/json" -X POST -d '{
"name":"goldtest.abc.com","hostgroup_id":3,"mac":"A0:48:1C:90:3E:5E" }'
https://foreman.abc.com/api/hosts
{
  "error": {"id":null,"errors":{"interfaces.mac":["can't be
blank"]},"full_messages":["Mac can't be blank"]}
}

No data to display

Actions

Also available in: Atom PDF