- URL:
- https://[root]/portals/[portalID]/allScheduledTasks
- Methods:
POST
- Version Introduced:
- 10.8.1
Example usage
The following is a sample ArcGIS Online request URL used to access the all
resource, demonstrating how to filter the results by tasks with a type
of Execute
, owned by the user N
, that are currently active (true
):
https://org.arcgis.com/sharing/rest/portals/0123456789ABCDEF/allScheduledTasks?types=ExecuteNotebook&userFilter=NBadmin&active=true&f=pjson
The following is a sample ArcGIS Enterprise request URL used to access the all
resource, demonstrating how to filter the results by tasks with a type
of Execute
, owned by the user N
, that are currently active (true
):
https://machine.domain.com/webadaptor/sharing/rest/portals/0123456789ABCDEF/allScheduledTasks?types=ExecuteNotebook&userFilter=NBadmin&active=true&f=pjson
Description
The all
resource returns a list of all scheduled tasks that exist in the organization. The results can be filtered by specifying the item ID of an item a task is assigned to, the username of the task's owner, as well as the task type and the task's active status.
Request parameters
Parameter | Details |
---|---|
(Optional) | The ID of an item that has a scheduled task associated with it. Only one task item ID can be entered at a time. Example
|
(Optional) | Specifies whether the tasks will be filtered by active ( Values: |
(Optional) | Filters tasks by the username of the task owner. Only one username can be entered at a time. Example
|
(Optional) | Specifies the task type. Values: |
| The response format. The default response is Values: |
JSON Response example
{
"total": 2,
"start": 1,
"num": 2,
"nextStart": -1,
"tasks": [
{
"id": "d08b95a4b1ff4f85b927ef8dfc62a668",
"itemId": "a4b0cfc8fc354a0eb2502976f6138b77",
"type": "ExecuteNotebook",
"title": "FiveTimesOnceAMinute",
"userId": "NBadmin",
"cronSchedule": {
"minute": "*/1",
"hour": "*",
"dayOfMonth": "*",
"month": "*",
"dayOfWeek": "?"
},
"runIntervalSeconds": 0,
"maxOccurrences": 5,
"parameters": {
"updatePortalItem": true,
"saveInjectedParameters": false,
"notebookParameters": "{}"
},
"created": 1589460357000,
"updated": 1589460357000,
"startDate": 1589428800000,
"active": true,
"taskState": "active"
},
{
"id": "5837c7bc37ac404e8e3c16d9022b2b59",
"itemId": "029b61ca770e428d9468a2a55f40b9fb",
"type": "ExecuteNotebook",
"title": "OnceAMinute10times",
"userId": "NBadmin",
"cronSchedule": {
"minute": "*/1",
"hour": "*",
"dayOfMonth": "*",
"month": "*",
"dayOfWeek": "?"
},
"runIntervalSeconds": 60,
"lastStart": 1589457360000,
"maxOccurrences": 10,
"parameters": {
"updatePortalItem": true,
"saveInjectedParameters": false,
"notebookParameters": "{}"
},
"created": 1589456737000,
"updated": 1589457404000,
"startDate": 1589428800000,
"active": true,
"taskState": "active"
}
]
}