class Bmc::Sdk::EditSSHKey
GetSSHKey
command will update the SSH key with the specified ID.
@see developers.phoenixnap.com/docs/bmc/1/routes/ssh-keys/%7Bssh_key_id%7D/put
Attributes
sshKey[RW]
Public Class Methods
new(client, sshKey)
click to toggle source
# File lib/commands.rb, line 271 def initialize(client, sshKey) @client = client @sshKey = sshKey end
Public Instance Methods
execute()
click to toggle source
# File lib/commands.rb, line 276 def execute return @client.put( "#{Entrypoint}ssh-keys/#{@sshKey.id}", headers: {'Content-Type': 'application/json'}, body: @sshKey.to_json) end