'Create a new SSH key.
:param name: Name of the new SSH key
:type name: ``str``
:key public_key: Public part of the new SSH key
:type name: ``str``
:return: True on success
:rtype: ``bool``'

def create_key_pair(self, name, public_key=''):

    params = {'name': name, 'ssh_key': public_key}
    res = self.connection.post('/v1/sshkey/create', params)
    return (res.status == httplib.OK)
