GET /v1/user/ssh_keys
HTTP Verb: GET
Available statuses: 200 OK, 204 No Content, 404 Not Found
Object: SSHKey
Location: n/a
Formats: XML, JSON
Returns a list of SSH keys.
Examples
Request XML, using cURL utility:
curl -i -H "Authorization: Bearer _token" https://api.assembla.com/v1/user/ssh_keys.xml
Response:
Content-Type: application/xml; charset=utf-8
Status: 200
...
<?xml version="1.0" encoding="UTF-8"?>
<ssh-keys type="array">
<ssh-key>
<finger-print>f4692acd0962772397f25daeadb27361</finger-print>
<title>desktop@home</title>
<read-only type="boolean">false</read-only>
<id type="integer">8</id>
<key>ssh-dss AAAAB3Nza...TZSw== op@m06</key>
</ssh-key>
</ssh-keys>
Request JSON, using cURL utility:
curl -i -H "Authorization: Bearer _token" https://api.assembla.com/v1/user/ssh_keys.json
Response:
Content-Type: application/json; charset=utf-8
Status: 200
...
[
{
"finger_print":"f4692acd0962772397f25daeadb27361",
"title":"desktop@home",
"read_only":false,
"id":8,
"key":"ssh-dss AAAAB3N...nTZSw== op@m06\n"
},
...
]
Note: In case user has no SSH keys, 204 No content status will be returned and response will be no Content-Type in headers.