Retrieve Jobs

get

/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

Query Parameters
Back to Top

Response

Supported Media Types

200 Response

All analytics data managment jobs successfully retrieved.
Body ()
Root Schema : Jobs
Type: object
Title: Jobs
Analytics data management jobs.
Show Source
Nested Schema : items
Type: array
Show Source
Nested Schema : Job
Type: object
Title: Job
Information about a purge job.
Show Source
Nested Schema : Filters
Type: object
Title: Filters
The date range of the data to delete and, optionally, for which mobile backends.
Show Source
Nested Schema : mobileBackends
Type: array
(Optional) Only delete analytic data for these mobile backends.
Show Source
Nested Schema : Mobile Backend
Type: object
Title: Mobile Backend
Mobile backend identification.
Show Source
Example Response (application/json)
{
    "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
}
Back to Top

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
}
Back to Top