osc compute keypair create210

Imports (or generates) a keypair.

Normal response codes: 200, 201

Error response codes: badRequest(400), unauthorized(401), forbidden(403), conflict(409)

Usage: osc compute keypair create210 [OPTIONS] --name <NAME>

Options:

  • --name <NAME> — A name for the keypair which will be used to reference it later.

    Note

    Since microversion 2.92, allowed characters are ASCII letters [a-zA-Z], digits [0-9] and the following special characters: [@._- ].

  • --public-key <PUBLIC_KEY> — The public ssh key to import. Was optional before microversion 2.92 : if you were omitting this value, a keypair was generated for you

  • --type <TYPE> — The type of the keypair. Allowed values are ssh or x509.

    New in version 2.2

    Possible values: ssh, x509

  • --user-id <USER_ID> — The user_id for a keypair. This allows administrative users to upload keys for other users than themselves.

    New in version 2.10