GET /v1/spaces/:space_id/ssh/servers
HTTP Verb: GET
Available statuses: 200 OK, 204 No Content, 404 Not Found
Object: SSHServer
Location: n/a
Formats: XML, JSON
Returns a list of SSH servers in 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/servers.xml
Response:
HTTP/1.1 200 OK
Date: Tue, 21 May 2013 14:29:00 GMT
Server: Apache
Status: 200
Vary: Accept-Encoding
Content-Length: 662
Content-Type: application/xml; charset=utf-8
<?xml version="1.0" encoding="UTF-8"?>
<ssh-tool-servers type="array">
<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>
...
</ssh-tool-servers>
Request JSON, using cURL utility:
curl -i -H "Authorization: Bearer _token" https://api.assembla.com/v1/spaces/_space_id/ssh/servers.json
Response:
HTTP/1.1 200 OK
Date: Tue, 21 May 2013 14:30:43 GMT
Server: Apache
Status: 200
Content-Length: 256
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