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 created the requested item", "data": { "_id": "a0BCF911-20DE-dA98-918c-c8Cc3d5450B6", "location": "Adapter", "view": "voluptate in incididunt Ut dolor", "status": "complete", "app": "reprehenderit", "name": "nulla", "variables": { "decorators": [ { "type": "encryption", "pointer": "/~1/~1/NhUdy1+/isBYbgcRt/T" } ] }, "last_updated": "2009-07-01T16:26:53.114Z", "encodingVersion": 1, "job": { "_id": "cc04170cac24d4754c421d50", "task": "3a1f", "name": "myCoolDocumentName", "description": "Some helpful information about the document", "ancestors": null }, "incomingRefs": [], "groups": [ "0abdefa016c3912746861651", { "_id": "6fa7e85605f35f642a9645af", "provenance": "officia ex consequat proident", "name": "ut", "description": "eu esse fugiat", "memberOf": [ { "groupId": "e10487e2c25a702f4b605870", "aaaManaged": false } ], "assignedRoles": [ { "roleId": "velit" }, { "roleId": "officia in adipisicing dolor cupidatat" }, { "roleId": "sunt aute" }, { "roleId": "cupidatat dolor aute qui" } ], "inactive": false, "_meta": { "created": "2016-03-31T11:16:02.186Z", "updated": "2016-01-06T20:35:05.555Z", "migrationVersion": -47609781 } }, { "_id": "1f03d3ca915a75371bd9abe1", "provenance": "eiusmod id aute", "name": "commodo", "description": "proident", "memberOf": [ { "groupId": "a47f7e9ef6151c77afb9de6f", "aaaManaged": true }, { "groupId": "610b203d5b79b6033db1c47d", "aaaManaged": false }, { "groupId": "598d22c9f9d7951f1e37625d", "aaaManaged": false } ], "assignedRoles": [ { "roleId": "do" }, { "roleId": "pariatur ut nostrud est" }, { "roleId": "velit" } ], "inactive": true, "_meta": { "created": "1986-09-15T10:18:04.905Z", "updated": "2003-01-10T13:57:27.658Z", "migrationVersion": -95867676 } }, "3805775bcfeffdf39852c712", { "_id": "930a662c97d1bbc178573044", "provenance": "laborum officia Ut", "name": "anim nostrud sit deserunt pariatur", "description": "enim occaecat", "memberOf": [ { "groupId": "93b2c984e36dd6b40a585b87", "aaaManaged": false }, { "groupId": "725adfa3b0b4126ffc0a5510", "aaaManaged": false }, { "groupId": "109b1859fdc55a8cce6fb8fe", "aaaManaged": true }, { "groupId": "c5ea6c0c682310471ab06eb5", "aaaManaged": false } ], "assignedRoles": [ { "roleId": "irure commodo" }, { "roleId": "id deserunt" }, { "roleId": "Ut mollit ea sed" }, { "roleId": "elit" }, { "roleId": "in aute nulla" } ], "inactive": false, "_meta": { "created": "1962-03-06T02:58:41.778Z", "updated": "1947-03-27T00:03:58.649Z", "migrationVersion": -81646489 } } ], "type": "automatic", "metrics": { "start_time": "dolor", "end_time": 41787335.801052004, "server_id": "reprehenderit", "finish_state": "success", "run_time": 56931022.63967544, "retrying": null, "user": { "_id": "f753cc935ca0db56ad1b3a36", "provenance": "ea voluptate sint dolor", "username": "ad ut minim", "firstname": "voluptate", "memberOf": [ { "groupId": "dc431eeda7d72c3089e1db9b", "aaaManaged": false }, { "groupId": "6124760ff69b093d9135a5cd", "aaaManaged": true }, { "groupId": "0eb1c091daf27c52d8586731", "aaaManaged": true } ], "assignedRoles": [ { "roleId": "aliqua Lorem ipsum" }, { "roleId": "deserunt esse" }, { "roleId": "dolore irure" } ], "inactive": false, "lastLogin": "1988-03-03T01:44:33.539Z", "_meta": { "created": "1953-09-17T17:46:27.801Z", "updated": "1989-04-15T23:12:52.887Z", "migrationVersion": -50522723 }, "email": "tempor Ut ad consequat nulla" }, "owner": "659fd8309d73a240ba2994d1" } } }
{ "title": "task", "allOf": [ { "$ref": "common-api#/definitions/success-response" }, { "type": "object", "properties": { "data": { "$ref": "task-api" } } } ] }