Get List of Tasks

get

/rest/v16/tasks

This endpoint returns a list of tasks which are specified using the query parameters listed below.

Request

Query Parameters
  • The '?q={category:{$in:[ ]}}' query parameter is required. The following category values are supported: 13, 17, 26, 51, and/or 52. '13' returns data table import tasks, '17' returns data table deploy tasks, '26' returns data table export tasks, '51' returns migration package import tasks, and '52' returns migration package export tasks
Back to Top

Response

Supported Media Types

Default Response

The response contains the tasks for the queried categories that are accessible for the current user.
Body ()
Root Schema : task-collection
Type: object
Show Source
Nested Schema : Tasks List
Type: array
Title: Tasks List
List of accessible Tasks
Show Source
Nested Schema : task
Type: object
Show Source
Nested Schema : category
Type: object
Show Source
Nested Schema : Detail Status
Type: object
Title: Detail Status
Detail Status for entities associated with this task
Show Source
Nested Schema : File list
Type: array
Title: File list
List of files associated with this task
Show Source
Nested Schema : Entities Statuses
Type: array
Title: Entities Statuses
Statuses for all the entities
Show Source
Nested Schema : Entity Status
Type: object
Title: Entity Status
Entity Status
Show Source
Nested Schema : Summary
Type: array
Title: Summary
Summary of message and type for entity
Show Source
Nested Schema : Summary Details
Type: object
Title: Summary Details
Summary Details
Show Source
Nested Schema : Messages
Type: array
Title: Messages
Messages
Show Source
Nested Schema : file
Type: object
Show Source
Back to Top

Examples

Get List of Data Table Tasks

The following example shows how to get a list of data table status log tasks by submitting a GET request to the REST resource using cURL. For more information about cURL, see Use cURL.

curl -X GET -i -H "Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQg" -H "Accept: application/json"
https://sitename.oracle.com/rest/v16/tasks/?q={category:{$in:[13,17,26]}}

Response Body Sample

{
  "items": [{
      "id": 41365772,
      "dateModified": "10/18/2019 1:19 PM",
      "links": [{
          "rel": "self",
          "href": "https://sitename.oracle.com/rest/v16/tasks/41365772"
        }, {
          "rel": "parent",
          "href": "https://sitename.oracle.com/rest/v16/tasks"
        }
      ],
      "name": "Rack_Domain",
      "category": {
        "lookupCode": "13",
        "displayValue": "Data Table Upload"
      },
      "status": "Completed",
      "result": "4118171",
      "executionTime": "10/18/2019 1:19 PM",
      "dateAdded": "10/18/2019 1:19 PM"
    }, {
      "id": 41365771,
      "dateModified": "10/18/2019 1:18 PM",
      "links": [{
          "rel": "self",
          "href": "https://sitename.oracle.com/rest/v16/tasks/41365771"
        }, {
          "rel": "parent",
          "href": "https://sitename.oracle.com/rest/v16/tasks"
        }
      ],
      "name": "Rack_Domain Export",
      "category": {
        "lookupCode": "26",
        "displayValue": "Data Table Export"
      },
      "status": "Completed",
      "result": "datatable_1571422724473",
      "executionTime": "10/18/2019 1:18 PM",
      "dateAdded": "10/18/2019 1:18 PM"
    }, {
      "id": 41365769,
      "dateModified": "10/18/2019 1:18 PM",
      "links": [{
          "rel": "self",
          "href": "https://sitename.oracle.com/rest/v16/tasks/41365769"
        }, {
          "rel": "parent",
          "href": "https://sitename.oracle.com/rest/v16/tasks"
        }
      ],
      "name": "Rack_Domain",
      "category": {
        "lookupCode": "17",
        "displayValue": "Data Table Deploy"
      },
      "status": "Completed",
      "executionTime": "10/18/2019 1:18 PM",
      "dateAdded": "10/18/2019 1:18 PM"
    }
  ],
  "links": [{
      "rel": "self",
      "href": "https://sitename.oracle.com/rest/v16/tasks"
    }
  ]
}

Get List of Migration Package Tasks

The following example shows how to get a list of migration package tasks by submitting a GET request to the REST resource using cURL. For more information about cURL, see Use cURL.

curl -X GET -i -H "Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQg" -H "Accept: application/json"
https://sitename.oracle.com/rest/v16/tasks/?q={category:{$in:[51,52]}}

Response Body Sample

{
  "items": [{
      "id": 41372699,
      "dateModified": "04/15/2020 4:02 PM",
      "links": [{
          "rel": "self",
          "href": "https://sitename.oracle.com/tasks/41372699"
        }, {
          "rel": "parent",
          "href": "https://sitename.oracle.com/tasks"
        }, {
          "rel": "child",
          "href": "https://sitename.oracle.com/tasks/41372699/files"
        }
      ],
      "name": "Migration REST Import",
      "category": {
        "lookupCode": "51",
        "displayValue": "Migration Package Import"
      },
      "status": "Completed",
      "detailStatus": {
        "message": "Task is completed successfully.",
        "items": [{
            "entity": "Util Library",
            "status": "Successful"
          }, {
            "entity": "Package",
            "status": "Successful"
          }
        ]
      },
      "executionTime": "04/15/2020 4:00 PM",
      "dateAdded": "04/15/2020 4:00 PM"
    }, {
      "id": 41372640,
      "dateModified": "04/15/2020 3:45 PM",
      "links": [{
          "rel": "self",
          "href": "https://sitename.oracle.com/tasks/41372640"
        }, {
          "rel": "parent",
          "href": "https://sitename.oracle.com/tasks"
        }, {
          "rel": "child",
          "href": "https://sitename.oracle.comtasks/41372640/files"
        }
      ],
      "name": "Migration REST Export",
      "category": {
        "lookupCode": "52",
        "displayValue": "Migration Package Export"
      },
      "status": "Completed",
      "result": "MigrationPackage_2",
      "executionTime": "04/15/2020 3:33 PM",
      "dateAdded": "04/15/2020 3:33 PM"
    }
  ],
  "links": [{
      "rel": "self",
      "href": "https://sitename.oracle.com/tasks"
    }
  ]
}
Back to Top