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": "description", "exclude": "_id,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 created the requested item", "data": { "_id": "aDdA5a02-ba0f-FCf7-DDdD-9a4fc360A4Aa", "location": "Adapter", "view": "aliquip", "status": "incomplete", "app": "pariatur in ad minim", "name": "veniam proident sint ea reprehenderit", "variables": { "decorators": [ { "type": "encryption", "pointer": "/l/WvQ-j/BpaLJ/ggAFPE/~0/Oev1/~0/rms" }, { "type": "encryption", "pointer": "/~0/~0/~1/~1/~1/zOZRYLk/xA/i+Awxb52/kAFQaO6/~0/~1" }, { "type": "encryption", "pointer": "/WKd,94Hu/LYn/~1/DheU/HGbp+UBpt/I/iHs" }, { "type": "encryption", "pointer": "/T9YErI00,L3" } ] }, "last_updated": "2019-09-05T14:16:10.738Z", "encodingVersion": 1, "job": { "_id": "f9ce9ad34e3f67544e7f0e63", "task": "3a1f", "name": "myCoolDocumentName", "description": "Some helpful information about the document", "ancestors": null }, "incomingRefs": [], "groups": [ { "_id": "32514bdf006594659553cd70", "provenance": "id", "name": "esse", "description": "in laboris fugiat", "memberOf": [ { "groupId": "4e1721756836b0dca9cb3bfb", "aaaManaged": false }, { "groupId": "6957264a9466494f084cd6c8", "aaaManaged": false }, { "groupId": "696f8aa00b6b7fd71798f492", "aaaManaged": true } ], "assignedRoles": [ { "roleId": "ad qui sed" }, { "roleId": "sed deserunt" }, { "roleId": "ea culpa consectetur sit" }, { "roleId": "non adipisicing" } ], "inactive": false, "_meta": { "created": "2011-01-18T02:10:30.602Z", "updated": "1958-09-11T16:17:52.277Z", "migrationVersion": 46340211 } }, { "_id": "b4e92b7c26759a4068ad71a5", "provenance": "sed do", "name": "officia magna", "description": "id laborum cupidatat", "memberOf": [ { "groupId": "af94d5e224e206b7a87bac2c", "aaaManaged": false }, { "groupId": "d6329e42e4196c6a64518034", "aaaManaged": false } ], "assignedRoles": [ { "roleId": "ex exercitation ea" }, { "roleId": "in Lorem officia occaecat elit" }, { "roleId": "amet ex" } ], "inactive": false, "_meta": { "created": "2024-01-06T14:40:47.071Z", "updated": "2019-12-14T08:22:25.887Z", "migrationVersion": 67263611 } }, { "_id": "a7367de0d0ed54f2b6b498bd", "provenance": "laboris ex", "name": "do occaecat", "description": "id Lorem sed est dolor", "memberOf": [ { "groupId": "09edab1fa22602c4a272cbef", "aaaManaged": true } ], "assignedRoles": [ { "roleId": "deserunt esse eu" }, { "roleId": "Duis do eiusmod esse" } ], "inactive": false, "_meta": { "created": "1962-05-19T11:32:34.305Z", "updated": "1970-09-28T12:16:31.831Z", "migrationVersion": 56115745 } }, "de6c7e46b823fa2a9a54119e" ], "type": "operation", "metrics": { "start_time": "in ut ullamco", "end_time": 85137409.60888287, "server_id": "officia Ut irure sed", "finish_state": "success", "run_time": -61668837.35326274, "retrying": null, "user": { "_id": "0cc420a5560378ba65ebdca6", "provenance": "non commodo cupidatat", "username": "adipisicing cillum", "firstname": "consectetur Duis irure ullamco incididunt", "memberOf": [ { "groupId": "4054a5c00c6fbddbfebe32b6", "aaaManaged": false } ], "assignedRoles": [ { "roleId": "laboris minim" } ], "inactive": false, "lastLogin": "2021-02-10T16:06:46.297Z", "_meta": { "created": "1973-01-18T00:42:40.885Z", "updated": "2013-01-30T17:24:25.71Z", "migrationVersion": 95879837 }, "email": "mollit dolor culpa" }, "owner": "Pronghorn" } } }
{ "title": "task", "allOf": [ { "$ref": "common-api#/definitions/success-response" }, { "type": "object", "properties": { "data": { "$ref": "task-api" } } } ] }