List All Actions

GET /api/v1.2/actions

Retrieves a list of actions run by the scheduler. The list can belong to any schedule in the account. It is ordered in reverse chronological order. The list is also paginated.

Required Role

The following users can make this API call:

  • Users who belong to the system-admin or system-user group.
  • Users who belong to a group associated with a role that allows viewing actions that a scheduler runs. See Managing Groups and Managing Roles for more information.

Response

The list contains information about commands that are run as part of the action.

Example

Goal: Retrieve a list of actions for a schedule. The list has 3 actions per page.

curl -i -X GET -H "X-AUTH-TOKEN: $AUTH_TOKEN" \
-H "Accept: application/json" \
-H "Content-type: application/json" \
"https://gcp.qubole.com/api/v1.2/actions?per_page=3"

Response

{
  "actions": [
    {
      "status": "done",
      "is_rerun_of": 47519,
      "nominal_time": "2014-06-26T11:00:00Z",
      "done": true,
      "sequence_id": 4226,
      "query_hist_id": 277791,
      "rerun_number": 2,
      "id": 47520,
      "dependencies": {
        "not_found": [

        ],
        "found": [

        ]
      },
      .
      .
      .
      "periodic_job_id": 30562,
    },
    {
      "done": true,
      "sequence_id": 4226,
      "query_hist_id": 277790,
      .
      .
      .
      "status": "done",
    },
    {
      "status": "done",
      "is_rerun_of": null,
      "periodic_job_id": 30562,
    }
  ],
  "paging_info": {
    "previous_page": null,
    "per_page": "3",
    "next_page": 2
  }
}