@param [Hash] params a hash of params to be passed to the service @option params [String] id @option params [String] device boot device, valid devices are disk, cdrom, pxe, bios
@param [Hash] headers additional http headers @return [Array] First item: parsed data; second item: raw body
# File lib/foreman_api/resources/host.rb, line 147 def boot(params = {}, headers = {}) perform_call(__method__, params, headers) end
@param [Hash] params a hash of params to be passed to the service @option params [Hash, nil] host
allowed keys are: * architecture_id [String, nil] * compute_resource_id [String, nil] * domain_id [String, nil] * environment_id [String, nil] * hostgroup_id [String, nil] * image_id [String, nil] * medium_id [String, nil] * model_id [String, nil] * operatingsystem_id [String, nil] * owner_id [String, nil] * progress_report_id [String, nil] uuid to track orchestration tasks status, get /api/orchestration/:uuid/tasks * ptable_id [String, nil] * puppet_ca_proxy_id [String, nil] * puppet_class_ids [Array, nil] * puppet_proxy_id [String, nil] * sp_subnet_id [String, nil] * subnet_id [String, nil] * build [String, nil] * capabilities [String, nil] * compute_attributes [Hash, nil] * enabled [String, nil] * host_parameters_attributes [Array, nil] * ip [String, nil] not required if using a subnet with dhcp proxy * mac [String, nil] not required if its a virtual machine * managed [String, nil] * name [String] * provision_method [String, nil]
@param [Hash] headers additional http headers @return [Array] First item: parsed data; second item: raw body
# File lib/foreman_api/resources/host.rb, line 62 def create(params = {}, headers = {}) perform_call(__method__, params, headers) end
@param [Hash] params a hash of params to be passed to the service @option params [String] id
@param [Hash] headers additional http headers @return [Array] First item: parsed data; second item: raw body
# File lib/foreman_api/resources/host.rb, line 109 def destroy(params = {}, headers = {}) perform_call(__method__, params, headers) end
@param [Hash] params a hash of params to be passed to the service @option params [String] certname optional: certname of the host @option params [Hash] facts hash containing the facts for the host @option params [String] name hostname of the host @option params [String] type optional: the sti type of host to create
@param [Hash] headers additional http headers @return [Array] First item: parsed data; second item: raw body
# File lib/foreman_api/resources/host.rb, line 159 def facts(params = {}, headers = {}) perform_call(__method__, params, headers) end
@param [Hash] params a hash of params to be passed to the service @option params [String] order sort results @option params [String] page paginate results @option params [String] per_page number of entries per request @option params [String] search filter results
@param [Hash] headers additional http headers @return [Array] First item: parsed data; second item: raw body
# File lib/foreman_api/resources/host.rb, line 16 def index(params = {}, headers = {}) perform_call(__method__, params, headers) end
@param [Hash] params a hash of params to be passed to the service @option params [String] id @option params [String] power_action power action, valid actions are (‘on’, ‘start’)’, (‘off’, ‘stop’), (‘soft’, ‘reboot’), (‘cycle’, ‘reset’), (‘state’, ‘status’)
@param [Hash] headers additional http headers @return [Array] First item: parsed data; second item: raw body
# File lib/foreman_api/resources/host.rb, line 137 def power(params = {}, headers = {}) perform_call(__method__, params, headers) end
@param [Hash] params a hash of params to be passed to the service @option params [String] id
@param [Hash] headers additional http headers @return [Array] First item: parsed data; second item: raw body
# File lib/foreman_api/resources/host.rb, line 127 def puppetrun(params = {}, headers = {}) perform_call(__method__, params, headers) end
@param [Hash] params a hash of params to be passed to the service @option params [String] id
@param [Hash] headers additional http headers @return [Array] First item: parsed data; second item: raw body
# File lib/foreman_api/resources/host.rb, line 25 def show(params = {}, headers = {}) perform_call(__method__, params, headers) end
@param [Hash] params a hash of params to be passed to the service @option params [String] id
@param [Hash] headers additional http headers @return [Array] First item: parsed data; second item: raw body
# File lib/foreman_api/resources/host.rb, line 118 def status(params = {}, headers = {}) perform_call(__method__, params, headers) end
@param [Hash] params a hash of params to be passed to the service @option params [String] id @option params [Hash, nil] host
allowed keys are: * architecture_id [String, nil] * compute_resource_id [String, nil] * domain_id [String, nil] * environment_id [String, nil] * hostgroup_id [String, nil] * image_id [String, nil] * medium_id [String, nil] * model_id [String, nil] * operatingsystem_id [String, nil] * owner_id [String, nil] * progress_report_id [String, nil] uuid to track orchestration tasks status, get /api/orchestration/:uuid/tasks * ptable_id [String, nil] * puppet_ca_proxy_id [String, nil] * puppet_class_ids [Array, nil] * puppet_proxy_id [String, nil] * sp_subnet_id [String, nil] * subnet_id [String, nil] * build [String, nil] * capabilities [String, nil] * compute_attributes [Hash, nil] * enabled [String, nil] * host_parameters_attributes [Array, nil] * ip [String, nil] not required if using a subnet with dhcp proxy * mac [String, nil] not required if its a virtual machine * managed [String, nil] * name [String] * provision_method [String, nil]
@param [Hash] headers additional http headers @return [Array] First item: parsed data; second item: raw body
# File lib/foreman_api/resources/host.rb, line 100 def update(params = {}, headers = {}) perform_call(__method__, params, headers) end
Generated with the Darkfish Rdoc Generator 2.