cURL
curl --request POST \ --url {schemes}://api.upsun.com/ssh_keys \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "value": "<string>", "title": "<string>", "uuid": "<string>" } '
{ "key_id": 123, "uid": 123, "fingerprint": "<string>", "title": "<string>", "value": "<string>", "changed": "<string>" }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
The value of the ssh key.
The title of the ssh key.
The uuid of the user.
The newly created ssh key.
The ssh key object.
The ID of the public key.
The internal user ID.
The fingerprint of the public key.
The title of the public key.
The actual value of the public key.
The time of the last key modification (ISO 8601)
Was this page helpful?