Sha256: d8bcf3aea187ab293906992221c970090868eb450a2a6a90b5fe2c44622af8d2

Contents?: true

Size: 489 Bytes

Versions: 1

Compression:

Stored size: 489 Bytes

Contents

module Fog
  module Compute
    class Cloudstack

      class Real
        # Create a new keypair and returns the private key
        #
        # {CloudStack API Reference}[http://cloudstack.apache.org/docs/api/apidocs-4.3/root_admin/createSSHKeyPair.html]
        def create_ssh_key_pair(name, options={})
          options.merge!(
            'command' => 'createSSHKeyPair', 
            '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/create_ssh_key_pair.rb