Sha256: 3ea8e956060a865dbcdc1c43aebaa2ab29306e98d2fa7ec8551880c8856605ae

Contents?: true

Size: 552 Bytes

Versions: 1

Compression:

Stored size: 552 Bytes

Contents

module Fog
  module Compute
    class Cloudstack

      class Real
        # Register a public key in a keypair under a certain name
        #
        # {CloudStack API Reference}[http://cloudstack.apache.org/docs/api/apidocs-4.3/root_admin/registerSSHKeyPair.html]
        def register_ssh_key_pair(publickey, name, options={})
          options.merge!(
            'command' => 'registerSSHKeyPair', 
            'publickey' => publickey, 
            'name' => name  
          )
          request(options)
        end
      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fog-1.23.0 lib/fog/cloudstack/requests/compute/register_ssh_key_pair.rb