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": "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 retrieved search results", "data": { "_id": "21FcD6A1-Ff5f-192D-A06a-5CebD7F6da73", "location": "Adapter", "view": null, "status": "complete", "app": "in irure ut ipsum Lorem", "name": "exercitation veniam", "variables": { "decorators": [ { "type": "encryption", "pointer": "/~0/II/g/~0/~1/K/arFjUDuzy/~1/~0/~0/~0" }, { "type": "encryption", "pointer": "/uH7v0/uRse9K/pSXVfsf/--H/H.4l-M/u6bxDuz/bfdRT/Kx/~1" }, { "type": "encryption", "pointer": "/v2yvYj/w9rsj2/~0/HLbh/xrVOz4tPB/O-Bw0KG/mqEXTyD,/~1/~1" }, { "type": "encryption", "pointer": "/~1/~0/G3EbZ3AHWW/~0" }, { "type": "encryption", "pointer": "/yghzV,/gfOskg" } ] }, "last_updated": "1978-10-07T04:09:15.316Z", "encodingVersion": 1, "job": { "_id": "866ce0a13fed30ec2cb10f0d", "task": "e28f", "name": "myCoolDocumentName", "description": "Some helpful information about the document", "ancestors": null }, "groups": [ { "_id": "69ec7c8e05cd253f1a62c430", "provenance": "magna sed Lorem eu", "name": "in mollit in Ut nisi", "description": "nisi proident Lorem anim cillum", "memberOf": [ { "groupId": "db93c15133f9555c2e7e2e14", "aaaManaged": true }, { "groupId": "df72efb2adfe00f1c1368ef3", "aaaManaged": true }, { "groupId": "54f181f6ffba67999c6b292a", "aaaManaged": false }, { "groupId": "94af2fe9d745049dfe927d70", "aaaManaged": false }, { "groupId": "ff85c320c4370b8bc5fe102e", "aaaManaged": true } ], "assignedRoles": [ { "roleId": "reprehenderit nisi" }, { "roleId": "Duis sed minim consequat nulla" }, { "roleId": "aute sed commodo" } ], "inactive": false, "_meta": { "created": "2007-04-22T02:46:54.716Z", "updated": "1961-01-18T12:03:45.357Z", "migrationVersion": 43889437 } }, { "_id": "101404e7310f136c9b2ee258", "provenance": "magna tempor voluptate", "name": "dolore dolore sunt sed sint", "description": "irure Lorem sit", "memberOf": [ { "groupId": "8bd9339c91514286dbb2e1de", "aaaManaged": true }, { "groupId": "77f63f2d3b23e3e2bb179643", "aaaManaged": true } ], "assignedRoles": [ { "roleId": "amet nulla officia" }, { "roleId": "cillum eu nisi ipsum" }, { "roleId": "Excepteur laboris nulla dolore" } ], "inactive": false, "_meta": { "created": "1974-10-29T13:21:43.362Z", "updated": "1978-03-01T09:59:50.205Z", "migrationVersion": 46232753 } }, { "_id": "5466724e27bbbfc55fd21106", "provenance": "minim nulla quis", "name": "aute exercitation", "description": "ex ipsum proident", "memberOf": [ { "groupId": "19a2b0a15d70ba872ec17c35", "aaaManaged": false }, { "groupId": "3453cc14ffdbc8e4dc2e326b", "aaaManaged": false }, { "groupId": "1048a09ec0d205e18e27aeb6", "aaaManaged": false } ], "assignedRoles": [ { "roleId": "Lorem eiusmod" }, { "roleId": "Ut officia" }, { "roleId": "ullamco" } ], "inactive": true, "_meta": { "created": "1994-08-31T06:02:05.521Z", "updated": "1982-06-14T21:45:40.248Z", "migrationVersion": -77427768 } }, "3f12598edc24e832b967fa60", "3405ba4cbbbebc3073992891" ], "type": "manual", "metrics": { "start_time": "eiusmod id ipsum culpa commodo", "claim_time": "2005-07-06T01:14:32.818Z", "end_time": 73932247.83040652, "server_id": "dolore irure", "finish_state": "paused", "run_time": -95805221.8050979, "user": "Pronghorn", "owner": "5c7e404daf392a8b53474d95" } } }
{ "title": "task", "allOf": [ { "$ref": "common-api#/definitions/success-response" }, { "type": "object", "properties": { "data": { "$ref": "task-api" } } } ] }