A subtask for a migration which carries details about the configuration of the subtask. The content of the details should not matter to the end user, but is a contract between the subtask creator and subtask worker.
The unique ID of the task to which this subtask belongs.
type
string
The type of the Subtask. The migration service does not check whether this is a known type. It is up to the task creator (i.e. orchestrator or worker) to ensure it only creates subtasks for which there are compatible workers polling for Subtasks.
Output only. Provides details to errors and issues encountered while processing the subtask. Presence of error details does not mean that the subtask failed.
resourceErrorCount
integer
Output only. The number or resources with errors. Note: This is not the total number of errors as each resource can have more than one error. This is used to indicate truncation by having a resourceErrorCount that is higher than the size of resourceErrorDetails.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-02 UTC."],[[["\u003cp\u003eMigrationSubtask represents a unit of work within a larger migration, detailing its configuration, which is only meant for the subtask creator and subtask worker.\u003c/p\u003e\n"],["\u003cp\u003eSubtasks have properties like \u003ccode\u003ename\u003c/code\u003e, \u003ccode\u003etaskId\u003c/code\u003e, \u003ccode\u003etype\u003c/code\u003e, and \u003ccode\u003estate\u003c/code\u003e, with the \u003ccode\u003estate\u003c/code\u003e property being the current status of the subtask (e.g., \u003ccode\u003eACTIVE\u003c/code\u003e, \u003ccode\u003eRUNNING\u003c/code\u003e, \u003ccode\u003eSUCCEEDED\u003c/code\u003e, \u003ccode\u003eFAILED\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003eSubtasks maintain information about their execution, including \u003ccode\u003eprocessingError\u003c/code\u003e for failed states, \u003ccode\u003eresourceErrorDetails\u003c/code\u003e for issues encountered, \u003ccode\u003eresourceErrorCount\u003c/code\u003e for the number of resources with errors, \u003ccode\u003ecreateTime\u003c/code\u003e, \u003ccode\u003elastUpdateTime\u003c/code\u003e, and \u003ccode\u003emetrics\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe possible states for migration subtasks include: \u003ccode\u003eSTATE_UNSPECIFIED\u003c/code\u003e, \u003ccode\u003eACTIVE\u003c/code\u003e, \u003ccode\u003eRUNNING\u003c/code\u003e, \u003ccode\u003eSUCCEEDED\u003c/code\u003e, \u003ccode\u003eFAILED\u003c/code\u003e, \u003ccode\u003ePAUSED\u003c/code\u003e, and \u003ccode\u003ePENDING_DEPENDENCY\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe methods available to manage subtasks include \u003ccode\u003eget\u003c/code\u003e to retrieve a subtask, and \u003ccode\u003elist\u003c/code\u003e to retrieve multiple subtasks.\u003c/p\u003e\n"]]],[],null,["# REST Resource: projects.locations.workflows.subtasks\n\n- [Resource: MigrationSubtask](#MigrationSubtask)\n - [JSON representation](#MigrationSubtask.SCHEMA_REPRESENTATION)\n- [State](#State)\n- [Methods](#METHODS_SUMMARY)\n\nResource: MigrationSubtask\n--------------------------\n\nA subtask for a migration which carries details about the configuration of the subtask. The content of the details should not matter to the end user, but is a contract between the subtask creator and subtask worker.\n\nState\n-----\n\nPossible states of a migration subtask."]]