GetAction Method

Description

Retrieves the latest version of an action, or a specific version of an action.

HTTP Request

GET https://api.skeddly.com/api/Actions/<id>

URL Parameters

id

Action ID or Action Version ID of the action to return. When specifying an action ID for id, the latest version of the action will be returned. When specifying an action version ID for id, the specified version will be returned.

Type: string

Required: Yes

Query Parameters

include

A comma-separated list of extra data to include

Type: string

Valid Values:

  • displayData

  • lastExecution

  • parameters

Required: No

Returns

An Action object.

Sample Request

GET /api/Actions/a-00000001 HTTP/1.1
Host: api.skeddly.com
Authorization: AccessKey <api key>

Sample Response

{
    "actionId": "a-00000001",
    "actionType": "amazon-start-ec2-instances",
    "actionVersionId": "av-00000001",
    "comments": "Comments about this action",
    "isCurrentVersion": true,
    "isEnabled": true,
    "lastModifiedBy": "u-00000001",
    "lastModifiedDate": "2016-06-09T12:21:00Z",
    "managedInstanceId": "mi-00000001",
    "name": "Start My Instances",
    "nextExecutionDate": "2016-06-10T12:23:00Z",
    "projectId": "proj-00000001",
    "schedule": {
        "scheduleType": "daily",
        "startDate": "2016-06-10",
        "timeOfDay": "12:23:00",
        "timeZoneId": "Eastern Standard Time",
        "parameters": {
            "days": [
                "monday",
                "tuesday",
                "wednesday",
                "thursday",
                "friday"
            ]
        }
    },
    "tags": [
        "cost-reduction"
    ]
}

Last updated