Register an SSH public key for the org's sandboxes
The SSH gateway lets the holder of any registered key into every running sandbox of the org, as the sandbox user. A key can be registered once per org (409 otherwise).
/v1/ssh-keysAuthorizationBearer token · headerrequiredOrg-scoped API key, pols_....
application/jsonpublic_keystringrequiredOne public key in authorized_keys format (ssh-ed25519 AAAA... comment), for example the contents of ~/.ssh/id_ed25519.pub.
Options before the key type, certificates and DSA keys are
refused; RSA keys need at least 2048 bits.
namestringA label. Default the key's comment, else its fingerprint.
The registered key.
idstringrequirednamestringrequiredfingerprintstringrequiredSHA-256 fingerprint, as ssh-keygen -l prints it.
public_keystringrequiredThe key in authorized_keys format, without its comment.
created_atstring<date-time>requiredRate limited (rate_limited): too many requests or failed
authentications from this address, too many requests or
lifecycle calls for this org, or too many of its exec, file,
computer and CDP calls in progress at once. Retry after
Retry-After seconds.
errorobjectrequiredShow propertiesHide properties
codestringrequiredStable machine-readable code: bad_request (400),
unauthorized (401), forbidden (403), quota_exceeded
(403), not_found (404), conflict (409),
rate_limited (429, see Retry-After), internal (500),
runtime_error (502, the sandbox host failed),
unavailable (503, the feature is not configured on this
deployment), timeout (504, or 408 when a request body
stalls).
messagestringrequiredError.
errorobjectrequiredShow propertiesHide properties
codestringrequiredStable machine-readable code: bad_request (400),
unauthorized (401), forbidden (403), quota_exceeded
(403), not_found (404), conflict (409),
rate_limited (429, see Retry-After), internal (500),
runtime_error (502, the sandbox host failed),
unavailable (503, the feature is not configured on this
deployment), timeout (504, or 408 when a request body
stalls).
messagestringrequired