$customHeader
Skip to end of banner
Go to start of banner

Retrieve Info About Tasks Matching a Filter

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 12 Next »

GET /runtime/{org}

Overview

This API returns information about Task runs that match the specified filters.

Prerequisites

  • Read access to the assets requested

Request

Path Parameters

Key

Description

pod_path

Required. The path to your SnapLogic pod.

Example: elastic.snaplogic.com

org

Required. The name of the SnapLogic Org.

Query Parameters

If a timespan is not set, this API returns information about Task runs within the last hour.

Key

Type

Description

plex_label

string

Returns information about Task runs for the specified Snaplex.

cc_label

string

Returns information about Task runs for the specified CC label (JCC node’s hostname).

pipe_name

string

Returns information about Task runs for the specified Pipeline.

user_id

string

Returns information about Task runs triggered by the specified user.

state

string

Returns information about Task runs in the specified state. Valid values:

  • Queued – Task is queued for processing; all Tasks start in this state.

  • NoUpdate – Intermediate state at startup.

  • Prepared – Task has been prepared.

  • Started – Task has started running.

  • Completed – Task has completed successfully.

  • Failing – Task encountered an error and is waiting for Snaps to complete execution before moving to the Failed state.

  • Failed – Task failed.

  • Stopped – Task was stopped either by the user or by the system, as indicated by the "stopper" key.

  • Stopping – Task is stopping.

  • Suspending – Resumable Task encountered an error and is storing its state.

  • Suspended – Resumable Task encountered an error and is suspended.

  • Resuming – Resumable Task is loading its state and will resume execution where it left off.

Default: Started

invoker

string

Returns information about Task runs that were invoked in the specified way. Valid values:

  • triggered – Triggered Tasks

  • scheduled – Scheduled Tasks

  • always_on – Ultra Tasks

  • manual – User-triggered Tasks

Default: scheduled

project_path

string

Returns information about Task runs for the specified project. Allowed formats:

  • /{org}/projects/{project_name}

  • /{org}/shared

last_hours

integer

Returns information about Task runs within the specified number of hours, counting backwards from the current time.

Valid values: 1 to 1080 hours (45 days)

Default: 1

start

integer

Returns information about Task runs since the specified time. Time must be provided as Unix time in milliseconds.

end

integer

Returns information about Task runs before the specified time. Time must be provided as Unix time in milliseconds.

limit

integer

Returns no more than the specified number of results. You can use limit and offset for pagination.

Valid values: 1 to 1,000

Default: 10

offset

integer

Returns a subset of the results starting at this 0-based index. You can use limit and offset for pagination.

Default: 0

Request Header

Specify Basic for authorization and application/json for content type.

Request Body

None.

Response

Response Header

Key

Description

X-SL-StatusCode

Status code indicating the results of the request.

Learn more: HTTP Status Code Registry

Response Body

{
  "response_map": {
    "entries": [ ... ],
    "total": ...,
    "limit": ...,
    "offset": ...
  },
  "http_status_code": 200
}

Key

Type

Description

entries

array

An array of Objects containing information about each Task run.

total

integer

The total number of results available.

limit

integer

The number of results returned.

offset

integer

The index of the first result returned.

  • No labels