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