Revision ebecada6
Added by Tomer Brisker about 5 years ago
app/controllers/api/v2/hosts_controller.rb | ||
---|---|---|
def_param_group :host do
|
||
param :host, Hash, :required => true, :action_aware => true do
|
||
param :name, String, :required => true
|
||
param :location_id, :number, :required => true, :desc => N_("required if locations are enabled") if SETTINGS[:locations_enabled]
|
||
param :organization_id, :number, :required => true, :desc => N_("required if organizations are enabled") if SETTINGS[:organizations_enabled]
|
||
param :location_id, :number, :required => true
|
||
param :organization_id, :number, :required => true
|
||
param :environment_id, String, :desc => N_("required if host is managed and value is not inherited from host group")
|
||
param :ip, String, :desc => N_("not required if using a subnet with DHCP proxy")
|
||
param :mac, String, :desc => N_("required for managed host that is bare metal, not required if it's a virtual machine")
|
Also available in: Unified diff
Fixes #26508 - Remove taxonomy setting checks from api