HTTP Verb: GET

Available statuses: 200 OK, 204 No Content

Object: PrivateSSHKey

Location: n/a

Formats: XML, JSON

Returns a SSH key for a particular space’s SSH tool.

Params

Not available

Examples

Request XML, using cURL utility:

curl -i -H "Authorization: Bearer _token" https://api.assembla.com/v1/spaces/_space_id/ssh/key.xml

Response:

HTTP/1.1 200 OK
Date: Tue, 21 May 2013 15:05:43 GMT
Server: Apache
Status: 200
Vary: Accept-Encoding
Content-Length: 818
Content-Type: application/xml; charset=utf-8

<?xml version="1.0" encoding="UTF-8"?>
<private-ssh-key>
  <id type="integer">1</id>
  <public-content>ssh-dss AAAAB3NzaC1kc3MAAACBAL170geYyexfnD2PScmHw9pvKaN+wkMcGh6yw9mB/awjKaDVE1kSG/p8CjX80F54QjuZL8FKqMrRPCJbd7YZOhUAxNqUS91Kp20qSJ5vQLxtLOmTD/8gQnZyKAdogS54TA2k7FBmLLMGiUFMUkKDhnoLvW+p/hfsqScEhMVyWhsDAAAAFQCLEXwqxWVmIf3Z9OPNXXRqh/4BdQAAAIAOYdUDuhNxlgGajCK3FNWLsiZTAesl5VRsnJTkT1ouhrGHuXVva3AVhiswz97n47IisKLfOosoIjnGFAOmD7DfTtEjt7mqmaOW0ZPW6T21YOMB7m3x+K2/fV5LwSejGHKLos+kanYF0do/QiDC0xAF6lEKOs0zKjq/iGi0ifSr4QAAAIEAq/WybrbMWuXDIaLO2x8yWq4bd38f8h2EfzokJLX+cJFTfeQ48pFHXW/3EtUiTZOQueYSbAXPI5aXgf0EnZ5JeAvl5BYwJdhD8DWCGadDTrE37kDesTEh5phVk3HJBYakaMvuFeoYwI3VomVoAbZJ7jPgnPkT0ttXIKOMTWKsmS8= _space_id@www.assembla.com
  </public-content>
  <space-tool-id>cUIsBcWu0r4P_ceJe9agRk</space-tool-id>
</private-ssh-key>

Request JSON, using cURL utility:

curl -i -H "Authorization: Bearer _token" https://api.assembla.com/v1/spaces/_space_id/ssh/key.json

Response:

HTTP/1.1 200 OK
Date: Tue, 21 May 2013 15:07:04 GMT
Server: Apache
Status: 200
Content-Length: 692
Content-Type: application/json; charset=utf-8

{
  "id":1,
  "public_content":"ssh-dss AAAAB3NzaC1kc3MAAACBAL170geYyexfnD2PScmHw9pvKaN+wkMcGh6yw9mB/awjKaDVE1kSG/p8CjX80F54QjuZL8FKqMrRPCJbd7YZOhUAxNqUS91Kp20qSJ5vQLxtLOmTD/8gQnZyKAdogS54TA2k7FBmLLMGiUFMUkKDhnoLvW+p/hfsqScEhMVyWhsDAAAAFQCLEXwqxWVmIf3Z9OPNXXRqh/4BdQAAAIAOYdUDuhNxlgGajCK3FNWLsiZTAesl5VRsnJTkT1ouhrGHuXVva3AVhiswz97n47IisKLfOosoIjnGFAOmD7DfTtEjt7mqmaOW0ZPW6T21YOMB7m3x+K2/fV5LwSejGHKLos+kanYF0do/QiDC0xAF6lEKOs0zKjq/iGi0ifSr4QAAAIEAq/WybrbMWuXDIaLO2x8yWq4bd38f8h2EfzokJLX+cJFTfeQ48pFHXW/3EtUiTZOQueYSbAXPI5aXgf0EnZ5JeAvl5BYwJdhD8DWCGadDTrE37kDesTEh5phVk3HJBYakaMvuFeoYwI3VomVoAbZJ7jPgnPkT0ttXIKOMTWKsmS8= _space_id@www.assembla.com\n",
  "space_tool_id":"cUIsBcWu0r4P_ceJe9agRk"
}

JSON is formatted here for readability, in a real response JSON body is inline with no indentation.

Description for each field: Space SSH Key object fields reference