Skeddly API
Search
K

ExecuteAction Method

Description

Executes an existing action. The action must be enabled.

HTTP Request

PUT https://api.skeddly.com/api/Actions/<id>/Execute

URL Parameters

id

The ID of the action.
Type: string
Required: Yes

Returns

An ActionExecution object.

Sample Request

HTTP
Bash
Python
PUT /api/Actions/a-00000001/Execute HTTP/1.1
Host: api.skeddly.com
Authorization: AccessKey <api key>
curl -X PUT "https://api.skeddly.com/api/Actions/a-00000001/Execute"
-H "Authorization: AccessKey <api key>"
import skeddly
client = skeddly.Client()
execution = client.execute_action("a-12345678")

Sample Response

{
"actionExecutionId": "ae-00000001",
"status": "running",
"startDate": "2016-06-01T12:00:00Z",
"trigger": "user",
"actionId": "a-00000001",
"actionVersionId": "av-00000001",
"actionType": "amazon-start-ec2-instance",
"actionName": "Start My Instances",
"timeZoneId": "UTC",
"credentialId": "cred-00000001"
}