v1

latestOpenAPI 3.0.0Creative Commons Attribution 3.02026-07-1382123.9 KB
users

Adds a public SSH key to an environment, allowing clients with the corresponding private key to connect to that environment via SSH. If a key with the same content already exists, this will error with ALREADY_EXISTS.

post/v1/{+environment}:addPublicKey

Path parameters

environmentstring required

Environment this key should be added to, e.g. users/me/environments/default.

Request body

keystring

Key that should be added to the environment. Supported formats are ssh-dss (see RFC4253), ssh-rsa (see RFC4253), ecdsa-sha2-nistp256 (see RFC5656), ecdsa-sha2-nistp384 (see RFC5656) and ecdsa-sha2-nistp521 (see RFC5656). It should be structured as <format> <content>, where <content> part is encoded with Base64.

Response

Successful response