Skip to content
URL:
https://<root>/system/tasks
Methods:
GET
Operations:
Create Task
Child Resources:
Task
Version Introduced:
10.9

Access requirements

Required privileges

The Enterprise Administrator API requires privilege-based access. An administrator must be assigned a specific user privilege, or role, to access any given endpoint. Listed below are the user privileges or roles an administrator can be assigned that provides access to this endpoint. If multiple privileges are listed, only one needs to be assigned to gain access.


Tokens

This API requires token-based authentication. A token is automatically generated for administrators who sign in to the Enterprise Administrator API directory's HTML interface. Tokens generated in this way are stored for the entirety of the session.

Those accessing the API directory outside of the HTML interface will need to acquire a session token from the generateToken operation in the Enterprise Directory API. For security reasons, all POST requests made to the Enterprise Administrator API must include a token in the request body.


Learn how to generate a token

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:

Use dark colors for code blocksCopy
1
https://organization.example.com/<context>/admin/system/tasks?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
{
  "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.