[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-09-04。"],[],[],null,["# Manually create and upload data tables\n\nMigration Center lets you upload tables of data that you fill in\nmanually using the templates provided.\nThis is useful if your infrastructure has a limited\nnumber of assets and you want to manually create the data.\n\nTo manually create and upload data tables, follow these steps:\n\n1. Download the templates from the [list of available templates](#available_data_templates).\n2. Manually fill in the tables with the data from your infrastructure.\n3. [Upload the tables](#upload_the_tables) to Migration Center.\n\nLimitations\n-----------\n\n- The maximum size for a file upload is 100 Mb.\n\nAvailable data templates\n------------------------\n\nThe following table provides you with the file templates that you can use to\nupload your infrastructure data to Migration Center.\nThe templates contain sample data as a suggestion on how to fill in the table.\nFor a detailed description of the required data format, see\n[Import files specifications](#specs).\n\nFor more information about the specifications for each file, see\n[Import files specifications](#specs).\n\nUpload the tables\n-----------------\n\nTo upload the files, follow these steps: \n\n### Console\n\n1. Go to the **Data import** page.\n\n [Go to Data import](https://console.cloud.google.com/migration/discovery/dataImport)\n2. Click **Add data \\\u003e Upload files**.\n\n3. In the **Set up file upload** section, enter the name of the file upload.\n\n4.\n From the **File format** list, select **Manually populated CSV templates**.\n\n5. Click **Select files to upload**, then select all the files that you\n want to upload.\n\n \u003cbr /\u003e\n\n6. To confirm and start uploading the files, click **Upload files**.\n\n7. If the files are validated correctly, to create the assets from the\n files, click **Import data** , then click **Confirm**.\n\n### API\n\n1. Create an import job.\n\n ```\n POST https://migrationcenter.googleapis.com/v1alpha1/projects/PROJECT_ID/locations/REGION/importJobs?importJobId=IMPORT_JOB_ID\n\n {\n \"asset_source\": \"projects/PROJECT_ID/locations/REGION/sources/SOURCE_ID\"\n }\n ```\n\n Replace the following:\n - \u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e: ID of the project to create the import job.\n - \u003cvar translate=\"no\"\u003eREGION\u003c/var\u003e: Region to create the import job.\n - \u003cvar translate=\"no\"\u003eIMPORT_JOB_ID\u003c/var\u003e: ID of the new import job.\n - \u003cvar translate=\"no\"\u003eSOURCE_ID\u003c/var\u003e: ID of an **existing** source to be associated with the import job.\n2. Optional: To confirm that the import job was correctly created,\n get the import job.\n\n ```\n GET https://migrationcenter.googleapis.com/v1alpha1/projects/PROJECT_ID/locations/REGION/importJobs/IMPORT_JOB_ID\n ```\n3. Create a import data file attached to the import job.\n\n ```\n POST https://migrationcenter.googleapis.com/v1alpha1/projects/PROJECT_ID/locations/REGION/importJobs/IMPORT_JOB_ID/importDataFiles?import_data_file_id=DATA_FILE_ID\n\n {\n \"format\": \"IMPORT_JOB_FORMAT\"\n }\n ```\n\n Replace the following:\n - \u003cvar translate=\"no\"\u003eDATA_FILE_ID\u003c/var\u003e: ID of the new data file\n - \u003cvar translate=\"no\"\u003eIMPORT_JOB_FORMAT\u003c/var\u003e: `IMPORT_JOB_FORMAT_MANUAL_CSV`\n4. Get the data file.\n\n ```\n GET https://migrationcenter.googleapis.com/v1alpha1/projects/PROJECT_ID/locations/REGION/importJobs/IMPORT_JOB_ID/importDataFiles/DATA_FILE_ID\n ```\n5. Copy the URL from the `signedUrl` field from the response.\n\n6. Upload a file to the copied URL.\n\n ```\n PUT -H 'Content-Type: application/octet-stream' --upload-file UPLOAD_FILE_PATH 'COPIED_URL'\n ```\n\n Replace the following:\n - \u003cvar translate=\"no\"\u003eUPLOAD_FILE_PATH\u003c/var\u003e: The local path of the file that is uploaded.\n - \u003cvar translate=\"no\"\u003eCOPIED_URL\u003c/var\u003e: The copied signed URL from the previews steps.\n7. Optional: Repeat steps 3-6 to create more data files under the same\n import job.\n\n8. Optional: Get all data files of an import job.\n\n ```\n GET https://migrationcenter.googleapis.com/v1alpha1/projects/PROJECT_ID/locations/REGION/importJobs/IMPORT_JOB_ID/importDataFiles\n ```\n9. Validate the import job.\n\n ```\n POST https://migrationcenter.googleapis.com/v1alpha1/projects/PROJECT_ID/locations/REGION/importJobs/IMPORT_JOB_ID:validate\n ```\n10. Get the import job and view the validation report.\n If the state is `READY`, it is possible to continue to the next steps.\n Otherwise, you need to fix the job or specific files, this might require\n deleting files or uploading new ones.\n\n ```\n GET https://migrationcenter.googleapis.com/v1alpha1/projects/PROJECT_ID/locations/REGION/importJobs/IMPORT_JOB_ID\n ```\n11. Run the import job.\n\n ```\n POST https://migrationcenter.googleapis.com/v1alpha1/projects/PROJECT_ID/locations/REGION/importJobs/IMPORT_JOB_ID:run\n ```\n12. Get the import job and view the execution report.\n If the state is `COMPLETED`, the job was executed successfully.\n Otherwise, if the job failed and in a terminal state, the execution report\n includes the errors.\n Create a new import job and apply the required changes.\n\n ```\n GET https://migrationcenter.googleapis.com/v1alpha1/projects/PROJECT_ID/locations/REGION/importJobs/IMPORT_JOB_ID\n ```\n\nIf you experience problems with your file upload, see how to\n[troubleshoot common error messages](/migration-center/docs/troubleshooting/file-import-errors).\n\nReview the upload\n-----------------\n\nAfter you upload your files, Migration Center validates them\nto check if they are formally correct. If the validation is successful,\nMigration Center then processes the data to create new assets,\nor update existing ones. You can check the status of your upload jobs\nfrom the Google Cloud console.\n\nTo review the status of your upload job, follow these steps:\n\n1. Go to the **Data import** page, then click **File uploads**.\n2. From the list of file imports, select the upload you want to review.\n3. On the file upload page, under **Data import progress** , review the **Status** for your uploaded files.\n\nYou can see your files in one of the following statuses.\n\n### List of statuses\n\n- **Completed**. The import of your file was successful.\n- **Ready**. Your file passed validation, and is ready to be imported.\n- **Pending**. Your file is waiting for another file to finish processing.\n- **Running**. Your file is processing.\n- **Validating**. Your file is in the validation stage.\n- **Failed validation**. Your file contains some errors. Fix the errors then try to upload your file again.\n- **Failed**. Your file couldn't be imported.\n\n### Review error details\n\nIf you encounter errors after importing your files, you can review\nthe error message directly in the Google Cloud console.\n\nTo review the errors of your upload job, follow these steps:\n\n1. Go to the **Data import** page, then click **File uploads**.\n2. Click the import file that shows a warning or error. The import file details page shows the complete list of errors.\n\nOn the import file details page, you can review the assets and data fields\nthat cause the errors, and view a description of the error.\nErrors in the file import job might prevent Migration Center from\ncreating new assets or update existing ones with the new changes.\nTo fix the error, edit your files and create a new file import job to upload\nthem again.\n\nFor more information about the possible error messages, see\n[Troubleshoot file import errors](/migration-center/docs/troubleshooting/file-import-errors).\n\nImport files specifications\n---------------------------\n\nThe following tables show the technical specifications for the template files\nused for manual import.\n\n### `vmInfo` file\n\n### `diskInfo` file\n\n### perfInfo file\n\n### tagInfo file\n\nWhat's next\n-----------\n\n- Learn more about [Migration Center collection methods](/migration-center/docs/start-asset-discovery#collection_methods).\n- Learn how to [manage your file uploads](/migration-center/docs/manage-file-uploads)."]]