class Morpheus::SnapshotsInterface
Snapshots API interface.
Public Instance Methods
Source
# File lib/morpheus/api/snapshots_interface.rb, line 6 def get(snapshot_id) url = "#{@base_url}/api/snapshots/#{snapshot_id}" headers = { :authorization => "Bearer #{@access_token}", 'Content-Type' => 'application/json' } opts = {method: :get, url: url, headers: headers} execute(opts) end
Source
# File lib/morpheus/api/snapshots_interface.rb, line 13 def remove(snapshot_id, payload={}) url = "#{@base_url}/api/snapshots/#{snapshot_id}" headers = {:authorization => "Bearer #{@access_token}", 'Content-Type' => 'application/json' } opts = {method: :delete, url: url, headers: headers, payload: payload.to_json} execute(opts) end