class Bmc::Sdk::GetSSHKey

GetSSHKey command will retrieve the SSH key with the specified ID.

@see developers.phoenixnap.com/docs/bmc/1/routes/ssh-keys/%7Bssh_key_id%7D/get

Attributes

sshKeyID[RW]

Public Class Methods

new(client, sshKeyID) click to toggle source
# File lib/commands.rb, line 251
def initialize(client, sshKeyID)
  @client = client
  @sshKeyID = sshKeyID
end

Public Instance Methods

execute() click to toggle source
# File lib/commands.rb, line 256
def execute
  return @client.get(
    "#{Entrypoint}ssh-keys/#{sshKeyID}",
    headers: {'Content-Type': 'application/json'})
end