HTTP Verb: GET

Available statuses: 200 OK, 404 Not Found

Object: SSHServer

Location: n/a

Formats: XML, JSON

Params

No options available

Examples

Request XML, using cURL utility:

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

Response:

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

<?xml version="1.0" encoding="UTF-8"?>
<ssh-tool-server>
  <id type="integer">1</id>
  <remote-host>host.com</remote-host>
  <remote-port type="integer">22</remote-port>
  <name>name</name>
  <description nil="true"></description>
  <space-tool-id>cUIsBcWu0r4P_ceJe9agRk</space-tool-id>
</ssh-tool-server>

Request JSON, using cURL utility:

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

Response:

HTTP/1.1 200 OK
Date: Tue, 21 May 2013 14:35:12 GMT
Server: Apache
Status: 200
Content-Length: 129
Content-Type: application/json; charset=utf-8

{
  "id":1,
  "remote_host":"host.com",
  "remote_port":22,
  "name":"name",
  "description":null,
  "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: SSH Server object fields reference