Module: Smartdc::Api::Keys

Included in:
Client
Defined in:
lib/smartdc/api/keys.rb

Instance Method Summary collapse

Instance Method Details

#create_key(body = {}) ⇒ Object



7
8
9
# File 'lib/smartdc/api/keys.rb', line 7

def create_key(body={})
  post 'my/keys', body
end

#destroy_key(id) ⇒ Object



15
16
17
# File 'lib/smartdc/api/keys.rb', line 15

def destroy_key(id)
  delete 'my/keys/' + id.to_s
end

#key(id) ⇒ Object



11
12
13
# File 'lib/smartdc/api/keys.rb', line 11

def key(id)
  get 'my/keys/' + id.to_s
end

#keys(params = {}) ⇒ Object



3
4
5
# File 'lib/smartdc/api/keys.rb', line 3

def keys(params={})
  get 'my/keys', params
end