'Retrieve a single key pair.
:param name: Name of the key pair to retrieve.
:type name: ``str``
:rtype: :class:`.KeyPair`'

def get_key_pair(self, name):

    filter_params = {'name': name}
    kps = self.connection.request('hosting.ssh.list', filter_params).object
    return self._to_key_pair(kps[0])
