class Bmc::Sdk::CreateSSHKey
CreateSSHKey
command will create a new SSH key with the provided properties.
@see developers.phoenixnap.com/docs/bmc/1/routes/ssh-keys/post
Attributes
sshKey[RW]
Public Class Methods
new(client, sshKey)
click to toggle source
# File lib/commands.rb, line 210 def initialize(client, sshKey) @client = client @sshKey = sshKey end
Public Instance Methods
execute()
click to toggle source
# File lib/commands.rb, line 215 def execute return @client.post( "#{Entrypoint}ssh-keys", headers: {'Content-Type': 'application/json'}, body: @sshKey.to_json) end