Class: Bmc::Sdk::GetSSHKeys

Inherits:
Object
  • Object
show all
Defined in:
lib/commands.rb

Overview

GetSSHKeys command will list all SSH keys associated with an account

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ GetSSHKeys

Returns a new instance of GetSSHKeys.



191
192
193
# File 'lib/commands.rb', line 191

def initialize(client)
  @client = client
end

Instance Method Details

#executeObject



195
196
197
198
199
# File 'lib/commands.rb', line 195

def execute
 return @client.get(
   "#{Entrypoint}ssh-keys",
   headers: {'Content-Type': 'application/json'})
end