HTTP Verb: GET

Available statuses: 200 OK, 204 No Content, 404 Not Found

Object: SSHAction

Location: n/a

Formats: XML, JSON

Returns a list of SSH actions 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/actions.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-actions type="array">
  <ssh-tool-action>
    <id type="integer">1</id>
    <command>command</command>
    <description nil="true"></description>
    <frequency type="integer">0</frequency>
    <name>name</name>
    <repo-tool-id nil="true"></repo-tool-id>
    <username>root</username>
    <status type="integer">0</status>
    <space-tool-id>cUIsBcWu0r4P_ceJe9agRk</space-tool-id>
    <position nil="true"></position>
    <ssh-tool-server-id type="integer">1</ssh-tool-server-id>
  </ssh-tool-action>
  ...
</ssh-tool-actions>

Request JSON, using cURL utility:

curl -i -H "Authorization: Bearer _token" https://api.assembla.com/v1/spaces/_space_id/ssh/actions.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,
    "command":"command",
    "description":null,
    "frequency":0,
    "name":"name",
    "repo_tool_id":null,
    "username":"root",
    "status":0,
    "space_tool_id":"cUIsBcWu0r4P_ceJe9agRk",
    "position":null,
    "ssh_tool_server_id":1
  },
  ...
]

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

Description for each field: SSH Action object fields reference