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,description", "exclude": "description", "dereference": "job" } }
{ "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": "5EcC823d-AEbd-f676-2b32-91FFdE29e1fA", "location": "Broker", "view": null, "status": "canceled", "app": "amet ex aliqua reprehenderit", "name": "in magna cupidatat", "variables": { "decorators": [ { "type": "encryption", "pointer": "/BJXjzztBRVW/~1/YX2BHFpi/~0/nLp/M/~0/N,-Q,HSRB/~0" }, { "type": "encryption", "pointer": "/CLY7lp1/~1/~0/G-0d6/Z1f/ZV4ss/~1/rIu54/K3O" }, { "type": "encryption", "pointer": "/mRctvnbmH-/~1/~0/Kdav3m.7OXz/Qan9" }, { "type": "encryption", "pointer": "/~1/f/~0/pf8oUfQ/o4EC6X7sN/ewQj8,/~0" } ] }, "last_updated": "1966-03-03T12:13:25.285Z", "encodingVersion": 1, "job": { "_id": "f91c125ce36f537302ef0906", "task": "3a1f", "name": "myCoolDocumentName", "description": "Some helpful information about the document", "ancestors": null }, "incomingRefs": [], "groups": [ { "_id": "4c4a8d334209adfbab84e943", "provenance": "velit enim consequat in", "name": "ut enim", "description": "ea Lorem mollit", "memberOf": [ { "groupId": "9aa38867cb272ee2a8f53da8", "aaaManaged": true }, { "groupId": "c02694a4340fb3d6ef03179f", "aaaManaged": true }, { "groupId": "f422aa0a5896a4a4ade74873", "aaaManaged": true } ], "assignedRoles": [ { "roleId": "anim cillum laborum" }, { "roleId": "eu id in" }, { "roleId": "pariatur amet dolore nostrud ad" }, { "roleId": "adipisicing laboris aliquip Duis anim" } ], "inactive": false, "_meta": { "created": "1967-09-25T17:32:42.314Z", "updated": "1957-01-23T07:52:06.053Z", "migrationVersion": 31089610 } }, { "_id": "be7753a169db320725322855", "provenance": "pariatur incididunt", "name": "veniam tempor", "description": "id", "memberOf": [ { "groupId": "5ffb516f6dcd47a6f5aa1cd1", "aaaManaged": false }, { "groupId": "f547b11c50441ae56cbde848", "aaaManaged": true }, { "groupId": "182c0d327433ccdf8c9ec68f", "aaaManaged": false } ], "assignedRoles": [ { "roleId": "occaecat esse ex pariatur" }, { "roleId": "tempor" }, { "roleId": "sint aliqua aute minim nostrud" }, { "roleId": "deserunt officia" }, { "roleId": "ut" } ], "inactive": true, "_meta": { "created": "2000-07-28T14:13:57.459Z", "updated": "1950-02-24T23:01:22.096Z", "migrationVersion": 85121687 } }, "b6acd90440575410dbf37990", "65efd43acffb0f805e822016", { "_id": "ba29d91b516859f887ab1a1f", "provenance": "quis", "name": "Duis sed", "description": "magna", "memberOf": [ { "groupId": "36114c0fe13601c2bec99128", "aaaManaged": false }, { "groupId": "267a18668e1fddf7c69cc662", "aaaManaged": true } ], "assignedRoles": [ { "roleId": "tempor" }, { "roleId": "ad incididunt" }, { "roleId": "fugiat laboris sit exercitation" }, { "roleId": "aliquip aliqua velit non" }, { "roleId": "Duis consectetur" } ], "inactive": false, "_meta": { "created": "1988-09-13T12:55:20.583Z", "updated": "1987-12-25T16:58:43.031Z", "migrationVersion": -49211638 } } ], "type": "manual", "metrics": { "start_time": "dolor", "claim_time": "1962-02-11T13:41:59.788Z", "end_time": -61623508.2513445, "server_id": "sunt ipsum voluptate aliqua dolor", "finish_state": "scheduled", "run_time": 6744051.812641859, "user": "26a0c5d8867a5f2b9870e609", "owner": "Pronghorn" } } }
{ "title": "task", "allOf": [ { "$ref": "common-api#/definitions/success-response" }, { "type": "object", "properties": { "data": { "$ref": "task-api" } } } ] }