'Create or import keypair.
A policy check restricts users from creating keys for other users
params: keypair object with:
name (required) - string
public_key (optional) - string
type (optional) - string
user_id (optional) - string'

@wsgi.Controller.api_version('2.10')
@wsgi.response(201)
@extensions.expected_errors((400, 403, 409))
@validation.schema(keypairs.create_v210)
def create(self, req, body):

    user_id = body['keypair'].get('user_id')
    return self._create(req, body, type=True, user_id=user_id)
