osc compute keypair create21

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 create21 [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