Retrieve Jobs
/mobile/system/analyticsDataManagement/jobs
Retrieves all analytics data management jobs in reverse chronological order (most recent first). You can use the offset
and limit
query parameters to page through the results.
Permissions
Only team members with the MobileEnvironment_System
role can access the Analytics Data Management API.
Request
-
limit(optional): integer
Maximum number of items to return (default 10).
-
offset(optional): integer
Zero-based index of the first item to return (default 0).
Response
- application/json
200 Response
array
-
Array of:
object Job
Title:
Job
Information about a purge job.
object
Job
-
createdBy:
string
The user name of the job creator.
-
createdOn:
string
When the job was initiated.
-
filters:
object Filters
Title:
Filters
The date range of the data to delete and, optionally, for which mobile backends. -
id:
string
The job ID.
-
links:
array Relationship links
Title:
Relationship links
Minimum Number of Items:1
Unique Items Required:true
-
status:
string
Allowed Values:
[ "PENDING", "RUNNING", "SUCCESSFUL", "FAILED" ]
The job status. -
type(optional):
string
Allowed Values:
[ "PURGE", "DELETION_ALL", "DELETION_API_CALLS", "DELETION_EVENTS", "DELETION_SESSIONS", "DELETION_USERS", "SHRINK_ALL", "SHRINK_API_CALLS", "SHRINK_EVENTS", "SHRINK_SESSIONS", "SHRINK_USERS" ]
The job type.
object
Filters
-
endDate:
string
The end of the date range. Format: `YYYY-MM-DDTHH:mm:ss.SSSZ`
-
mobileBackends(optional):
array mobileBackends
(Optional) Only delete analytic data for these mobile backends.
-
startDate:
string
The start of the date range. Format: `YYYY-MM-DDTHH:mm:ss.SSSZ`
array
Relationship links
1
true
-
Array of:
object Link
Title:
Link
array
-
Array of:
object Mobile Backend
Title:
Mobile Backend
Mobile backend identification.
object
Mobile Backend
-
name(optional):
string
Mobile backend's name.
-
version(optional):
string
The mobile backend's version.
object
Link
-
href:
string
A relative URL.
-
rel:
Allowed Values:
[ "self", "canonical", "prev", "next" ]
The type of link.
{
"limit":10,
"hasMore":false,
"count":3,
"items":[
{
"id":"3",
"createdOn":"2016-02-02T12:34:56.789Z",
"createdBy":"UserX",
"status":"RUNNING",
"links":[
{
"rel":"canonical",
"href":"/mobile/system/analytics/dataManagement/jobs/3"
},
{
"rel":"self",
"href":"/mobile/system/analytics/dataManagement/jobs/3"
}
],
"type":"PURGE",
"filters":{
"startDate":"2017-11-12T17:00:00.000Z",
"mobileBackends":[
{
"name":"FixItFastCustomerMBE",
"version":"1.0"
}
],
"endDate":"2017-11-12T17:00:00.000Z"
}
},
{
"id":"2",
"createdOn":"2016-01-12-02T12:34:56.789Z",
"createdBy":"UserX",
"status":"FAILED",
"links":[
{
"rel":"canonical",
"href":"/mobile/system/analytics/dataManagement/jobs/2"
},
{
"rel":"self",
"href":"/mobile/system/analytics/dataManagement/jobs/2"
}
],
"type":"DELETION_ALL",
"filters":{
"startDate":"2015-02-01T17:00:00.000Z",
"endDate":"2015-12-31T17:00:00.000Z"
}
},
{
"id":"1",
"createdOn":"2015-09-12-02T12:34:56.789Z",
"createdBy":"UserX",
"status":"SUCCESSFUL",
"links":[
{
"rel":"canonical",
"href":"/mobile/system/analytics/dataManagement/jobs/1"
},
{
"rel":"self",
"href":"/mobile/system/analytics/dataManagement/jobs/1"
}
],
"type":"SHRINK_ALL",
"filters":{
"startDate":"2015-01-01T17:00:00.000Z",
"mobileBackends":[
{
"name":"FixItFastCustomerMBE1",
"version":"1.0"
},
{
"name":"FixItFastCustomerMBE1",
"version":"1.1"
},
{
"name":"FixItFastCustomerMBE2",
"version":"1.0"
}
],
"endDate":"2015-01-31T17:00:00.000Z"
}
}
],
"totalResults":3,
"offset":0
}
Examples
The following example shows how to retrieve all the analytics jobs by submitting a GET request on the REST resource using cURL. This example uses the limit
and offset
query parameters to request the second earliest job only. For more information about cURL, see Use cURL.
curl -i \ -X GET \ -u administrator@example.com:password \ -H "Oracle-Mobile-Backend-ID: ABCD9278-091f-41aa-9cb2-184bd0586fce" \ https://fif.cloud.oracle.com/mobile/system/analyticsDataManagement/jobs?limit=1&offset=1
Example of Response Header
The following shows an example of the response header:
200 OK Content-Type: application/json Date: Thu, 01 Feb 2018 00:06:36 GMT
Example of Response Body
The following example shows, in JSON format, the contents of the response body:
{
"items": [
{
"id": "54",
"status": "SUCCESSFUL",
"type": "PURGE",
"createdOn": "2018-02-01T00:04:56.005Z",
"createdBy": "jdoe",
"filters": {
"startDate": "2018-01-12T07:00:00.000Z",
"endDate": "2018-01-12T09:00:00.000Z",
"mobileBackends": [
{
"name": "FixItFastCustomerMBE1",
"version": "1.0"
},
{
"name": "FixItFastCustomerMBE2",
"version": "1.0"
},
{
"name": "FixItFastCustomerMBE1",
"version": "1.1"
}
]
},
"links": [
{
"rel": "canonical",
"href": "/mobile/system/analyticsDataManagement/jobs/54"
},
{
"rel": "self",
"href": "/mobile/system/analyticsDataManagement/jobs/54"
}
]
}
],
"totalResults": 5,
"offset": 1,
"limit": 1,
"count": 1,
"hasMore": true
}