Method: Morpheus::PowerSchedulesInterface#add_instances
- Defined in:
- lib/morpheus/api/power_schedules_interface.rb
#add_instances(id, payload) ⇒ Object
43 44 45 46 47 48 |
# File 'lib/morpheus/api/power_schedules_interface.rb', line 43 def add_instances(id, payload) url = "#{@base_url}/api/power-schedules/#{id}/add-instances" headers = { :authorization => "Bearer #{@access_token}", 'Content-Type' => 'application/json' } opts = {method: :put, url: url, timeout: 10, headers: headers, payload: payload.to_json} execute(opts) end |