POST /api/users/988725762/ssh_keys
{
"ssh_key": {
"name": "foreman@example.com",
"key": "ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBIhRoL6PfBRs9YwW3r2/pYeLrxRzEZSUO3Go8JivxMsguEKjJ3byHDPvPpMHhKKSZD/HJY/A+2Ndqp0ElB+t2qs= foreman@example.com"
}
}
201
{
"created_at": "2019-11-07 08:34:20 UTC",
"updated_at": "2019-11-07 08:34:20 UTC",
"id": 3,
"name": "foreman@example.com",
"key": "ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBIhRoL6PfBRs9YwW3r2/pYeLrxRzEZSUO3Go8JivxMsguEKjJ3byHDPvPpMHhKKSZD/HJY/A+2Ndqp0ElB+t2qs= foreman@example.com",
"length": 520,
"fingerprint": "8e:0c:28:d9:99:e8:c2:84:46:1b:1d:ba:e5:78:4c:33"
}
| Param name | Description |
|---|---|
|
location_id optional |
Set the current location context for the request Validations:
|
|
organization_id optional |
Set the current organization context for the request Validations:
|
|
user_id required |
ID of the user Validations:
|
|
ssh_key required |
Validations:
|
|
ssh_key[name] required |
Validations:
|
|
ssh_key[key] required |
Public SSH key Validations:
|