Sha256: 2b20dec82b2c844b9502a9c099c92f61a5a31c3d3e22598efb3e8b28b5d80578

Contents?: true

Size: 700 Bytes

Versions: 3

Compression:

Stored size: 700 Bytes

Contents

module Smartdc::Api
  module Machines::Snapshots
    def machine_snapshots(machine_id, params={})
      get 'my/machines/' + machine_id.to_s + '/snapshots', params
    end

    def create_machine_snapshot(machine_id, body={})
      post 'my/machines/' + machine_id.to_s + '/snapshots', body
    end

    def machine_snapshot(machine_id, name)
      get 'my/machines/' + machine_id.to_s + '/snapshots/' + name.to_s
    end

    def destroy_machine_snapshot(machine_id, name)
      delete 'my/machines/' + machine_id.to_s + '/snapshots/' + name.to_s
    end

    def start_machine_snapshot(machine_id, name)
      post 'my/machines/' + machine_id.to_s + '/snapshots/' + name.to_s, {}
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
smartdc-2.0.2 lib/smartdc/api/machines/snapshots.rb
smartdc-2.0.1 lib/smartdc/api/machines/snapshots.rb
smartdc-2.0.0 lib/smartdc/api/machines/snapshots.rb