Tasks

URL:
https://<root>/system/tasks
Methods:
GET
Operations:
Create Task
Child Resources:
Task
Required Capability:
Access allowed only with the default administrator role
Version Introduced:
10.9

Description

The tasks resource returns a list of tasks (CleanGPJobs, BackupRetentionCleaner, CreateBackup) that exist within your deployment.

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 task resource:

1
https://organization.domain.com/context/admin/system/tasks?f=pjson

JSON Response example

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
{
  "result": [
    {
      "generation": 2,
      "created": 1634933908445,
      "active": false,
      "ownerId": "f4630325200d48d3bd1c763e6d0dd904",
      "type": "CREATE_BACKUP_TASK_TYPE",
      "orgId": "0123456789ABCDEF",
      "cronSchedule": {
        "dayOfWeek": "7",
        "hour": "4",
        "month": "*",
        "dayOfMonth": "?",
        "minute": "0"
      },
      "cronExpression": "0 0 4 ? * 7",
      "runIntervalSeconds": 604800,
      "taskType": "CreateBackup",
      "taskState": "paused",
      "taskTitle": "schedule2",
      "maxOccurrences": -1,
      "id": "5f0cdc50cf36460990bb6edfe9b60e08",
      "lastStart": 1634961600000,
      "parameters": {
        "itemId": "",
        "metaData": {
          "recurring": true,
          "startTime": "04:00",
          "retention": {
            "type": "day",
            "value": 14
          }
        },
        "retentionOffset": 1209600000,
        "name": "schedule2",
        "storeName": "default",
        "passcode": "otherPassCode!"
      },
      "updated": 1635343062131,
      "taskId": "5f0cdc50cf36460990bb6edfe9b60e08",
      "startDate": 1634961600000
    },
    {
      "generation": 116,
      "created": 1634930439965,
      "active": false,
      "ownerId": "f4630325200d48d3bd1c763e6d0dd904",
      "type": "CREATE_BACKUP_TASK_TYPE",
      "orgId": "0123456789ABCDEF",
      "cronSchedule": {
        "dayOfWeek": "?",
        "hour": "*/1",
        "month": "*",
        "dayOfMonth": "*",
        "minute": "0"
      },
      "cronExpression": "0 0 */1 * * ?",
      "runIntervalSeconds": 3600,
      "taskType": "CreateBackup",
      "taskState": "paused",
      "taskTitle": "schedule1",
      "maxOccurrences": -1,
      "id": "059ac9ad30ad4ac18d92faec93715428",
      "lastStart": 1635339600000,
      "parameters": {
        "itemId": "",
        "metaData": {
          "recurring": true,
          "startTime": "20:00",
          "retention": {
            "type": "day",
            "value": 14
          }
        },
        "retentionOffset": 1209600000,
        "name": "schedule1",
        "storeName": "default",
        "passcode": "passCode"
      },
      "updated": 1635343065085,
      "taskId": "059ac9ad30ad4ac18d92faec93715428",
      "startDate": 1634932800000
    },
    {
      "generation": 128,
      "created": 1634917446184,
      "active": true,
      "ownerId": "f4630325200d48d3bd1c763e6d0dd904",
      "type": "BACKUP_RETENTION_TASK_TYPE",
      "orgId": "0123456789ABCDEF",
      "cronSchedule": {
        "dayOfWeek": "?",
        "hour": "*",
        "month": "*",
        "dayOfMonth": "*",
        "minute": "0"
      },
      "cronExpression": "0 0 * * * ?",
      "itemId": "f50816a3-6f67-4df0-879b-00bf39f5c7c3",
      "runIntervalSeconds": 3600,
      "taskType": "BackupRetentionCleaner",
      "taskState": "active",
      "taskTitle": "backupRetentionCleanerTask",
      "maxOccurrences": -1,
      "id": "05422480f3014101a467314182f5d858",
      "lastStart": 1635372000000,
      "updated": 1634917446184,
      "taskId": "05422480f3014101a467314182f5d858"
    },
    {
      "generation": 129,
      "created": 1634911716168,
      "active": true,
      "ownerId": "f4630325200d48d3bd1c763e6d0dd904",
      "type": "GP_JOBS_CLEANER_TASK_TYPE",
      "orgId": "0123456789ABCDEF",
      "cronSchedule": {
        "dayOfWeek": "?",
        "hour": "*",
        "month": "*",
        "dayOfMonth": "*",
        "minute": "0"
      },
      "cronExpression": "0 0 * * * ?",
      "itemId": "032f58d7-956e-4bd4-8f6f-994187a70dfa",
      "runIntervalSeconds": 3600,
      "taskType": "CleanGPJobs",
      "taskState": "active",
      "taskTitle": "gpCleanerTask",
      "maxOccurrences": -1,
      "id": "e34d3851b7f34510a3097f23cb7adab3",
      "lastStart": 1635372000000,
      "updated": 1634911716168,
      "taskId": "e34d3851b7f34510a3097f23cb7adab3"
    }
  ],
  "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.

You can no longer sign into this site. Go to your ArcGIS portal or the ArcGIS Location Platform dashboard to perform management tasks.

Your ArcGIS portal

Create, manage, and access API keys and OAuth 2.0 developer credentials, hosted layers, and data services.

Your ArcGIS Location Platform dashboard

Manage billing, monitor service usage, and access additional resources.

Learn more about these changes in the What's new in Esri Developers June 2024 blog post.

Close