Runs

URL:
https://<root>/system/tasks/<taskID>/runs
Methods:
GET
Required Capability:
Access allowed only with the default administrator role
Version Introduced:
10.9

Description

The runs resource returns a list of all runs that have been completed for a specific task.

Request parameters

ParameterDetails

f

The response format. The default format is html.

Values: html | json | pjson

Example usage

The following is a sample request URL used to access the runs resource:

Use dark colors for code blocksCopy
1
https://organization.domain.com/context/admin/system/tasks/fdbbc58261544b2f82b61c8111a08f16/runs?f=pjson

JSON Response example

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
{
  "result": [
    {
      "result": "GP Jobs have been cleaned.",
      "task": {
        "generation": 6,
        "created": "Apr 21, 2021, 10:42:17 PM",
        "active": true,
        "ownerId": "c076e404cec9497488f008fc5b83e6fa",
        "type": "GP_JOBS_CLEANER_TASK_TYPE",
        "orgId": "0123456789ABCDEF",
        "cronSchedule": {
          "dayOfWeek": "?",
          "hour": "*",
          "month": "*",
          "dayOfMonth": "*",
          "minute": "0"
        },
        "cronExpression": "0 0 * * * ?",
        "itemId": "0a78247d-0d0d-4b69-a658-03104e15bd66",
        "runIntervalSeconds": 3600,
        "taskType": "CleanGPJobs",
        "taskState": "active",
        "taskTitle": "gpCleanerTask",
        "maxOccurrences": -1,
        "id": "2a1ba86743414f929c0c1f38b32f1c9c",
        "lastStart": "Apr 22, 2021, 3:00:00 AM",
        "updated": "Apr 22, 2021, 3:04:29 AM",
        "taskId": "2a1ba86743414f929c0c1f38b32f1c9c"
      },
      "created": "Apr 22, 2021, 3:00:31 AM",
      "modified": "Apr 22, 2021, 3:00:31 AM",
      "runId": "dae1bfa5d6ec44349790ebb3f27dd4e1",
      "url": "",
      "status": "succeeded"
    }
    {
      "result": "GP Jobs have been cleaned.",
      "task": {
        "generation": 6,
        "created": "Apr 21, 2021, 10:42:17 PM",
        "active": true,
        "ownerId": "c076e404cec9497488f008fc5b83e6fa",
        "type": "GP_JOBS_CLEANER_TASK_TYPE",
        "orgId": "0123456789ABCDEF",
        "cronSchedule": {
          "dayOfWeek": "?",
          "hour": "*",
          "month": "*",
          "dayOfMonth": "*",
          "minute": "0"
        },
        "cronExpression": "0 0 * * * ?",
        "itemId": "0a78247d-0d0d-4b69-a658-03104e15bd66",
        "runIntervalSeconds": 3600,
        "taskType": "CleanGPJobs",
        "taskState": "active",
        "taskTitle": "gpCleanerTask",
        "maxOccurrences": -1,
        "id": "2a1ba86743414f929c0c1f38b32f1c9c",
        "lastStart": "Apr 22, 2021, 3:00:00 AM",
        "updated": "Apr 22, 2021, 3:04:29 AM",
        "taskId": "2a1ba86743414f929c0c1f38b32f1c9c"
      },
      "created": "Apr 22, 2021, 2:00:31 AM",
      "modified": "Apr 22, 2021, 2:00:31 AM",
      "runId": "a117f2c79e6b466b94947fa5521d514d",
      "url": "",
      "status": "succeeded"
    },
    {
      "result": "GP Jobs have been cleaned.",
      "task": {
        "generation": 6,
        "created": "Apr 21, 2021, 10:42:17 PM",
        "active": true,
        "ownerId": "c076e404cec9497488f008fc5b83e6fa",
        "type": "GP_JOBS_CLEANER_TASK_TYPE",
        "orgId": "0123456789ABCDEF",
        "cronSchedule": {
          "dayOfWeek": "?",
          "hour": "*",
          "month": "*",
          "dayOfMonth": "*",
          "minute": "0"
        },
        "cronExpression": "0 0 * * * ?",
        "itemId": "0a78247d-0d0d-4b69-a658-03104e15bd66",
        "runIntervalSeconds": 3600,
        "taskType": "CleanGPJobs",
        "taskState": "active",
        "taskTitle": "gpCleanerTask",
        "maxOccurrences": -1,
        "id": "2a1ba86743414f929c0c1f38b32f1c9c",
        "lastStart": "Apr 22, 2021, 3:00:00 AM",
        "updated": "Apr 22, 2021, 3:04:29 AM",
        "taskId": "2a1ba86743414f929c0c1f38b32f1c9c"
      },
      "created": "Apr 22, 2021, 1:00:31 AM",
      "modified": "Apr 22, 2021, 1:00:31 AM",
      "runId": "74c7d1565a444c88b3f73da502b6b957",
      "url": "",
      "status": "succeeded"
    },
    {
      "result": "GP Jobs have been cleaned.",
      "task": {
        "generation": 6,
        "created": "Apr 21, 2021, 10:42:17 PM",
        "active": true,
        "ownerId": "c076e404cec9497488f008fc5b83e6fa",
        "type": "GP_JOBS_CLEANER_TASK_TYPE",
        "orgId": "0123456789ABCDEF",
        "cronSchedule": {
          "dayOfWeek": "?",
          "hour": "*",
          "month": "*",
          "dayOfMonth": "*",
          "minute": "0"
        },
        "cronExpression": "0 0 * * * ?",
        "itemId": "0a78247d-0d0d-4b69-a658-03104e15bd66",
        "runIntervalSeconds": 3600,
        "taskType": "CleanGPJobs",
        "taskState": "active",
        "taskTitle": "gpCleanerTask",
        "maxOccurrences": -1,
        "id": "2a1ba86743414f929c0c1f38b32f1c9c",
        "lastStart": "Apr 22, 2021, 3:00:00 AM",
        "updated": "Apr 22, 2021, 3:04:29 AM",
        "taskId": "2a1ba86743414f929c0c1f38b32f1c9c"
      },
      "created": "Apr 22, 2021, 12:00:30 AM",
      "modified": "Apr 22, 2021, 12:00:31 AM",
      "runId": "234047ac6bb14d74abe1b65dce2172a4",
      "url": "",
      "status": "succeeded"
    }
  ],
  "total": 4,
  "num": 4,
  "start": 0,
  "nextStart": 0
}

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.