HTTP Verb: GET

Available statuses: 200 OK, 404 Not Found

Object: SSHAction

Location: n/a

Formats: XML, JSON

Run a SSH action by id.

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/actions/_id/run.xml

Response:

HTTP/1.1 200 OK
Date: Tue, 21 May 2013 17:49:00 GMT
Server: Apache
Status: 200
Vary: Accept-Encoding
Content-Length: 495
Content-Type: application/xml; charset=utf-8

<?xml version="1.0" encoding="UTF-8"?>
<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>

Request JSON, using cURL utility:

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

Response:

HTTP/1.1 200 OK
Date: Tue, 21 May 2013 17:49:42 GMT
Server: Apache
Status: 200
Content-Length: 205
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