Summary
Get a task by ID
Description
Get a Task.
Route
GET /operations-manager/tasks/:id
Roles
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| id | string | yes | The id of the Task to get. |
| queryParameters | object | yes | Optional parameters for projecting fields in the Task document. |
{ "queryParameters": { "include": "name", "exclude": "description", "dereference": "accounts.metrics.owner" } }
{ "type": "object", "properties": { "queryParameters": { "title": "queryParameters", "type": "object", "properties": { "include": { "type": "string", "description": "Inclusive projection operator formatted as a comma-delineated list. '_id' will be included implicitly unless excluded with 'exclude=_id'. May only be used in conjunction with 'exclude' when 'exclude=_id'.", "examples": [ "name", "description", "name,description" ] }, "exclude": { "type": "string", "description": "Exclusive projection operator formatted as a comma-delineated list. May only be used in conjunction with 'include' when 'exclude=_id'.", "examples": [ "_id", "description", "_id,description" ] }, "dereference": { "type": "string", "description": "Designates foreign key fields to dereference in the API output. The main function of this parameter is to retrieve extra information on a task that would not ordinarily be included. If information is needed on the task's parent job, the dereference parameter may be given a value of 'job'. This will look up the full job document and place it under the 'job' property in the task document. If the output of a child job task is needed, the dereference parameter may be given a value of 'child-job-output'. This will look up the output of the job initiated by the child job task. If the child job has loop settings each individual output will be provided in an array under the property 'variables.outgoing.job_details.loop'. If the child job does not have loop settings, the output of the single job document will be provided under the property 'variables.outgoing.job_details.output'.", "examples": [ "job", "accounts.metrics.owner" ] } } } }, "required": [ "queryParameters" ], "additionalProperties": false }
Return
| Name | Type | Description |
|---|---|---|
| task | object | The requested Task. |
{ "message": "Successfully imported 3 of 4 documents", "data": { "_id": "C8fAe8d7-ac7A-ADa6-C3Dc-CAF195e94c57", "location": "Application", "view": "eu", "status": "canceled", "app": "dolor minim Excepteur", "name": "aliquip sit velit", "variables": { "decorators": [ { "type": "encryption", "pointer": "/~0/vgm7/mlBMMv2,Ek/~0/~0" }, { "type": "encryption", "pointer": "/~0" }, { "type": "encryption", "pointer": "/M1.d2oO/~0/~0/~0/~0/~0/WpQJ,N/yte8S6u+8J/~1" }, { "type": "encryption", "pointer": "/J5NU" }, { "type": "encryption", "pointer": "/wXt-TUlFt/fd7ZOUy+J/Ljg/~0/hHJYYF/pvoK/S73wUE3G5" } ] }, "last_updated": "2025-08-22T18:39:30.075Z", "encodingVersion": 1, "job": { "_id": "444a8fd79d664bb333c5d643", "task": "3a1f", "name": "myCoolDocumentName", "description": "Some helpful information about the document", "ancestors": [ "bf9bc2ca88c0abeb566a3078", "59638173baa217713bea6fa3", "f28303dc62deb1bea422e859", "2f540ab0efbc14725b270dd2" ] }, "groups": [ { "_id": "4cef7ddea80c3f39596af209", "provenance": "in tempor", "name": "minim exercitation", "description": "ex amet ullamco dolor", "memberOf": [ { "groupId": "c94294950543b662270e27e2", "aaaManaged": true } ], "assignedRoles": [ { "roleId": "consequat et elit" } ], "inactive": true, "_meta": { "created": "1996-05-26T08:37:32.436Z", "updated": "1996-08-04T21:20:43.944Z", "migrationVersion": 44444459 } }, { "_id": "dbe0f1a53583bef3062d01b3", "provenance": "ex Lorem est", "name": "laborum", "description": "in", "memberOf": [ { "groupId": "533c514285056b93f7f3e6be", "aaaManaged": true }, { "groupId": "0305b53287c3e7c5eb6bff77", "aaaManaged": true } ], "assignedRoles": [ { "roleId": "cillum voluptate ullamco ipsum est" }, { "roleId": "occaecat enim veniam adipisicing" }, { "roleId": "nulla dolor" } ], "inactive": false, "_meta": { "created": "1967-10-10T09:59:06.576Z", "updated": "2018-08-30T13:01:19.845Z", "migrationVersion": -23003106 } }, { "_id": "892cf07b20f0b7bfeb859d1b", "provenance": "sit cillum", "name": "Excepteur in", "description": "anim aliqua sint aliquip aute", "memberOf": [ { "groupId": "a89b3d298994970a2518af00", "aaaManaged": true }, { "groupId": "0911aafd83fb167596980d65", "aaaManaged": false } ], "assignedRoles": [ { "roleId": "veniam" } ], "inactive": true, "_meta": { "created": "1993-07-22T16:00:41.999Z", "updated": "1954-05-20T20:48:28.938Z", "migrationVersion": -77261767 } }, { "_id": "66bb45f67cb6eda5faeee4f3", "provenance": "eiusmod commodo fugiat", "name": "mollit incididunt sit anim", "description": "aliqua nostrud pariatur quis", "memberOf": [ { "groupId": "8b1e78ecb4a68a5bae3b0c29", "aaaManaged": true }, { "groupId": "3dd72e38748f74c2f88035cc", "aaaManaged": true }, { "groupId": "635307c78e7e162f87def6c9", "aaaManaged": false } ], "assignedRoles": [ { "roleId": "anim velit eu Ut dolore" }, { "roleId": "nisi laboris fugiat sunt" }, { "roleId": "minim dolor sint quis pariatur" } ], "inactive": true, "_meta": { "created": "1998-10-28T14:58:22.652Z", "updated": "2024-11-20T17:07:38.665Z", "migrationVersion": -66093004 } }, { "_id": "5b60c03c4e8388e0997b68b2", "provenance": "ea anim ex", "name": "sint commodo veniam", "description": "magna reprehenderit adipisicing", "memberOf": [ { "groupId": "e0609ceb5c40b78496e27bb0", "aaaManaged": true }, { "groupId": "1a24b9c60ce3dee7f3eb806f", "aaaManaged": true }, { "groupId": "af9f4505782985a77bde4de9", "aaaManaged": true }, { "groupId": "fa93b2d785b584b0aef376b3", "aaaManaged": true } ], "assignedRoles": [ { "roleId": "aliquip occaecat ad Duis" }, { "roleId": "culpa do eu veniam non" }, { "roleId": "cillum" }, { "roleId": "do nulla" } ], "inactive": true, "_meta": { "created": "1962-05-13T02:59:20.724Z", "updated": "1955-06-06T05:37:53.912Z", "migrationVersion": 47117724 } } ], "type": "manual", "metrics": { "start_time": "ut nostrud", "claim_time": "1989-05-27T22:38:06.293Z", "end_time": 37219953.516246915, "server_id": "do culpa nisi velit", "finish_state": "success", "run_time": 16617602.413561046, "user": "5a741de3e94b5d6cd781f3d4", "owner": "" } } }
{ "title": "task", "allOf": [ { "$ref": "common-api#/definitions/success-response" }, { "type": "object", "properties": { "data": { "$ref": "task-api" } } } ] }