'Get a keypair.
:param keypair: The ID of the keypair to get.
:param user_id: Id of key-pair owner (Admin only).
:rtype: :class:`Keypair`'

@api_versions.wraps('2.10')
def get(self, keypair, user_id=None):

    query_string = (('?user_id=%s' % user_id) if user_id else '')
    url = ('/%s/%s%s' % (self.keypair_prefix, base.getid(keypair), query_string))
    return self._get(url, 'keypair')
