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 imported 3 of 4 documents", "data": { "_id": "fE85Eaef-6d04-6Dd5-73a4-40a6FeD3AAC5", "location": "Adapter", "view": "sed sint dolor ea irure", "status": "paused", "app": "sunt", "name": "ipsum eiusmod", "variables": { "decorators": [ { "type": "encryption", "pointer": "/pTkvYUZiP/O/jjnb/" }, { "type": "encryption", "pointer": "/MQ38LG+39V/P1/uQ,m/~0/~0/F+X19pml/M0Aq/Z/aJDhlz/~1/b95/~0" }, { "type": "encryption", "pointer": "/~0/stlT" } ] }, "last_updated": "1989-05-01T12:01:58.521Z", "encodingVersion": 1, "job": { "_id": "0e609298faa46240ffb1b189", "task": "3a1f", "name": "myCoolDocumentName", "description": "Some helpful information about the document", "ancestors": null }, "incomingRefs": [], "groups": [ "e3f3587a4235882c55a7c22a", { "_id": "a53176dbeef4dba0be759492", "provenance": "consectetur consequat enim in velit", "name": "et pariatur qui", "description": "adipisicing nisi", "memberOf": [ { "groupId": "0ce5e8c521972d211268d169", "aaaManaged": true } ], "assignedRoles": [ { "roleId": "esse commodo" }, { "roleId": "enim dolor tempor anim" } ], "inactive": true, "_meta": { "created": "1967-12-22T21:23:16.482Z", "updated": "2010-02-20T08:20:17.552Z", "migrationVersion": 94908514 } }, { "_id": "232c93f2a285f456cbcafe5e", "provenance": "ullamco mollit", "name": "ullamco ex veniam pariatur", "description": "aute", "memberOf": [ { "groupId": "81d013b5185be54615185a60", "aaaManaged": false }, { "groupId": "b9247b3a0225c6fc076b15e5", "aaaManaged": false }, { "groupId": "0dd02d91c3e1172ee83c7a7c", "aaaManaged": true }, { "groupId": "2043e8c9cc22b85537d3ed50", "aaaManaged": false } ], "assignedRoles": [ { "roleId": "in" }, { "roleId": "mollit id" }, { "roleId": "aute pariatur ut" }, { "roleId": "deserunt exercitation eu in occaecat" }, { "roleId": "tempor in ex proident" } ], "inactive": false, "_meta": { "created": "2017-11-28T07:57:36.672Z", "updated": "1976-10-23T22:15:57.033Z", "migrationVersion": 25794819 } }, "b3adceae50ff81e3c1affd51" ], "type": "automatic", "metrics": { "start_time": "quis fugiat qui consequat et", "end_time": -40878253.360748395, "server_id": "incididunt officia amet commodo", "finish_state": "success", "run_time": 32630008.28675589, "retrying": false, "user": { "_id": "9e802ba864e7bb15a219d594", "provenance": "qui", "username": "qui adipisicing exercitation do cillum", "firstname": "ex ea Excepteur", "memberOf": [ { "groupId": "0f9fa6b89f8299327d4a28aa", "aaaManaged": false }, { "groupId": "b58ad19537ab8cf60778791a", "aaaManaged": true }, { "groupId": "a4dd639b8e70d14bf837fd6d", "aaaManaged": true }, { "groupId": "f06e5922354924949cdbe548", "aaaManaged": true }, { "groupId": "04b58e96ffdfc3cad9ecef6a", "aaaManaged": false } ], "assignedRoles": [ { "roleId": "id ad amet pariatur incididunt" }, { "roleId": "sed" }, { "roleId": "consectetur dolor ipsum" } ], "inactive": false, "lastLogin": "1986-12-11T13:36:00.893Z", "_meta": { "created": "1967-04-22T10:39:32.955Z", "updated": "2010-03-02T02:37:40.98Z", "migrationVersion": 4473461 }, "email": "Ut exercitation dolor" }, "owner": "Pronghorn" } } }
{ "title": "task", "allOf": [ { "$ref": "common-api#/definitions/success-response" }, { "type": "object", "properties": { "data": { "$ref": "task-api" } } } ] }