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": "_id", "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 retrieved search results", "data": { "_id": "b1A64fAE-3fD8-d8A2-d85f-bDEFEd6d2b1d", "location": "Broker", "view": null, "status": "canceled", "app": "aute pariatur ex", "name": "officia minim tempor ea culpa", "variables": { "decorators": [ { "type": "encryption", "pointer": "/~1/~1/JNLk" }, { "type": "encryption", "pointer": "/~0/r2/gK0orDB/~1/~0/l2" }, { "type": "encryption", "pointer": "/~0/~0/xSY/sj/A.v/~1/bjrr9.fLEYl/~1/~0/Umzwq/QVfovQ" }, { "type": "encryption", "pointer": "/fFiw-V/a3.4E/~0/a4MjApeLl/ce,DcuiLWZ/~1/~0/~1" }, { "type": "encryption", "pointer": "/tk1w,eSR/~1/kZAb0Pd,DqL/~1/~1/~0/~1/u.nmwwEWFj/~0" } ] }, "last_updated": "2006-08-27T07:43:42.719Z", "encodingVersion": 1, "job": { "_id": "b134380cfbd5b71cf41b6e63", "task": "3a1f", "name": "myCoolDocumentName", "description": "Some helpful information about the document", "ancestors": [ "634e55e283b42db930e58301", "3386a1fd07bbed69c14c901d", "6d4a21761bc7fb9a572536f1", "f73964c7ef7ec1db303de597", "7bc59a18a7aa05a15373272d" ] }, "incomingRefs": [], "groups": [ { "_id": "7ddfc38339de2fc61887b567", "provenance": "est labore quis minim Excepteur", "name": "Ut", "description": "nulla aliqua officia laborum", "memberOf": [ { "groupId": "d314104ad93639a01a9ac155", "aaaManaged": true }, { "groupId": "af1a3d52e2cffb88358080a4", "aaaManaged": false }, { "groupId": "74668f63b854db8bbc2d182e", "aaaManaged": false }, { "groupId": "f737c404c00fbd3e25068c92", "aaaManaged": true } ], "assignedRoles": [ { "roleId": "officia tempor non consectetur labore" }, { "roleId": "Excepteur Lorem" }, { "roleId": "Ut aute magna" }, { "roleId": "deserunt in magna" }, { "roleId": "tempor deserunt Ut" } ], "inactive": false, "_meta": { "created": "1946-09-08T01:54:37.774Z", "updated": "1971-05-15T14:26:39.881Z", "migrationVersion": 83821743 } }, { "_id": "ce43cdabda0a3cf3d411a709", "provenance": "amet Excepteur", "name": "ea ullamco cillum in adipisicing", "description": "enim cupidatat", "memberOf": [ { "groupId": "9d0f58e59edb5ae84c051ca8", "aaaManaged": true } ], "assignedRoles": [ { "roleId": "laborum eiusmod ullamco aliqua pariatur" }, { "roleId": "ut velit laboris nisi" } ], "inactive": false, "_meta": { "created": "2025-10-04T18:16:56.556Z", "updated": "1970-06-24T02:29:02.426Z", "migrationVersion": 46953250 } } ], "type": "manual", "metrics": { "start_time": "et mollit labore", "claim_time": "1976-10-29T10:14:20.001Z", "end_time": -73178999.4437086, "server_id": "sint sunt Lorem deserunt", "finish_state": "success", "run_time": 17180472.889338106, "user": "Pronghorn", "owner": { "_id": "fd2059bc333f2522d2aee63f", "provenance": "anim adipisicing", "username": "sed", "firstname": "dolor aute", "memberOf": [ { "groupId": "7e58606ddb2c2e28b4b5b3ef", "aaaManaged": false }, { "groupId": "4562b140918ebd54d57250a6", "aaaManaged": false } ], "assignedRoles": [ { "roleId": "Duis adipisicing ad" } ], "inactive": true, "lastLogin": "2003-10-12T05:21:43.384Z", "_meta": { "created": "1983-10-22T10:55:35.695Z", "updated": "1977-07-08T18:18:11.082Z", "migrationVersion": -3925028 }, "email": "Ut" } } } }
{ "title": "task", "allOf": [ { "$ref": "common-api#/definitions/success-response" }, { "type": "object", "properties": { "data": { "$ref": "task-api" } } } ] }