{"_id":"56b8d26f38b1070d00289226","user":"5582e90181672a3900bb4fc7","githubsync":"","__v":6,"category":{"_id":"56b8cdab14feef0d0082415d","__v":5,"pages":["56b8cdd914feef0d0082415e","56b8cebd38b1070d00289220","56b8d26f38b1070d00289226","56b8d3a55d75fe0d00fbcca5","56b8d74d86d2b0190070bd7a"],"project":"569f9cf6650e1d1900f96b5b","version":"569f9cf6650e1d1900f96b5e","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2016-02-08T17:17:31.562Z","from_sync":false,"order":9999,"slug":"migration-methods","title":"Migration methods"},"project":"569f9cf6650e1d1900f96b5b","version":{"_id":"569f9cf6650e1d1900f96b5e","project":"569f9cf6650e1d1900f96b5b","__v":12,"createdAt":"2016-01-20T14:43:02.785Z","releaseDate":"2016-01-20T14:43:02.785Z","categories":["569f9cf7650e1d1900f96b5f","56abdd81d4432d1900eed235","56abe0558beeff0d003b8118","56ad2f8b1c09150d00a183a8","56ad4e1cd21f1b0d00fd2f97","56b00ad88f7a4f0d0029dc92","56b2432e9621f20d00efb2bd","56b25826147e900d00d6497a","56b7af2a4b372d2100722c48","56b8c4d938b1070d0028920f","56b8cdab14feef0d0082415d","58599813cf9e112d0032cdab"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"parentDoc":null,"metadata":{"title":"","description":"","image":[]},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-02-08T17:37:51.174Z","link_external":false,"link_url":"","sync_unique":"","hidden":false,"api":{"examples":{"codes":[]},"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":2,"body":"## Syntax \n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n    <credentials object>\\n}\",\n      \"language\": \"perl\",\n      \"name\": \"  \"\n    }\n  ]\n}\n[/block]\n\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Response fields for migration_jobs\"\n}\n[/block]\nThe following fields may be returned when the **migration_jobs** method is\nsubmitted:\n[block:parameters]\n{\n  \"data\": {\n    \"h-0\": \"Field name\",\n    \"h-1\": \"Obligation\",\n    \"h-2\": \"Description/Value\",\n    \"0-0\": \"error\",\n    \"0-1\": \"Returned if **success = false**\",\n    \"0-2\": \"A text string that explains the error.\",\n    \"1-0\": \"error_number\",\n    \"1-1\": \"Returned if **success = false**\",\n    \"1-2\": \"A number that represents the error.\",\n    \"2-0\": \"jobs\",\n    \"2-1\": \"Returned if **success = true**\",\n    \"2-2\": \"Information about the jobs for the specified user. \\n\\nAllowed values are:\\n\\n  * **date** — The date that the job was submitted, in UNIX Epoch time.\\n  \\n  * **job** — The ID of the job.\",\n    \"3-0\": \"success\",\n    \"3-1\": \"Always returned\",\n    \"3-2\": \"Indicates whether the requested change was successful or not. Allowed values are **true** and **false**.\"\n  },\n  \"cols\": 3,\n  \"rows\": 4\n}\n[/block]\n\n[block:api-header]\n{\n  \"type\": \"basic\",\n  \"title\": \"Examples for migration_jobs\"\n}\n[/block]\n**Request** \n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n  \\\"credentials\\\": {\\n    \\\"user\\\": \\\"domain_admin:::at:::example.com\\\",\\n    \\\"password\\\": \\\"sw0rdf1sh\\\"\\n  }\\n}\",\n      \"language\": \"perl\",\n      \"name\": \"  \"\n    }\n  ]\n}\n[/block]\n**Response** \n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"{\\n  \\\"success\\\": true,\\n  \\\"jobs\\\": [\\n    {\\n      \\\"date\\\": 1326229443,\\n      \\\"job\\\": \\\"1326229437638\\\"\\n    }, \\n  ]\\n}\",\n      \"language\": \"perl\",\n      \"name\": \"  \"\n    }\n  ]\n}\n[/block]","excerpt":"The **migration_jobs** method retrieves a list of current and historical migration\njobs submitted by the requester.","slug":"testinput-1","type":"basic","title":"migration_jobs"}

migration_jobs

The **migration_jobs** method retrieves a list of current and historical migration jobs submitted by the requester.

## Syntax [block:code] { "codes": [ { "code": "{\n <credentials object>\n}", "language": "perl", "name": " " } ] } [/block] [block:api-header] { "type": "basic", "title": "Response fields for migration_jobs" } [/block] The following fields may be returned when the **migration_jobs** method is submitted: [block:parameters] { "data": { "h-0": "Field name", "h-1": "Obligation", "h-2": "Description/Value", "0-0": "error", "0-1": "Returned if **success = false**", "0-2": "A text string that explains the error.", "1-0": "error_number", "1-1": "Returned if **success = false**", "1-2": "A number that represents the error.", "2-0": "jobs", "2-1": "Returned if **success = true**", "2-2": "Information about the jobs for the specified user. \n\nAllowed values are:\n\n * **date** — The date that the job was submitted, in UNIX Epoch time.\n \n * **job** — The ID of the job.", "3-0": "success", "3-1": "Always returned", "3-2": "Indicates whether the requested change was successful or not. Allowed values are **true** and **false**." }, "cols": 3, "rows": 4 } [/block] [block:api-header] { "type": "basic", "title": "Examples for migration_jobs" } [/block] **Request** [block:code] { "codes": [ { "code": "{\n \"credentials\": {\n \"user\": \"domain_admin@example.com\",\n \"password\": \"sw0rdf1sh\"\n }\n}", "language": "perl", "name": " " } ] } [/block] **Response** [block:code] { "codes": [ { "code": "{\n \"success\": true,\n \"jobs\": [\n {\n \"date\": 1326229443,\n \"job\": \"1326229437638\"\n }, \n ]\n}", "language": "perl", "name": " " } ] } [/block]