[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["難以理解","hardToUnderstand","thumb-down"],["資訊或程式碼範例有誤","incorrectInformationOrSampleCode","thumb-down"],["缺少我需要的資訊/範例","missingTheInformationSamplesINeed","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-09-04 (世界標準時間)。"],[],[],null,["# Import RVTools data\n\nIf you don't want to install and run an automatic data collection with\ndiscovery client in your infrastructure, you can manually upload your\ninfrastructure data into Migration Center.\n\nFirst, use RVTools to gather system data and performance data from your virtual\nmachine (VM) instances running on vCenter.\nThen, import the table generated by RVTools directly in\nMigration Center to add your assets.\n\nLimitations\n-----------\n\n- To successfully import data, create a table with RVTools version 4.3.1 or later. Previous versions of RVTools are not supported.\n- Tables generated with the `--DBColumnNames` flag are not supported.\n- When you upload a table generated with RVTools, Migration Center uses only the data from the following tabs:\n - `tabvInfo` (required for XLSX and CSV)\n - `tabvCPU` (required for XLSX, optional for CSV)\n - `tabvDisk` (required for XLSX, optional for CSV)\n - `tabvPartition` (required for XLSX, optional for CSV)\n - `tabvNetwork` (required for XLSX, optional for CSV)\n - `tabvHost` (required for XLSX, optional for CSV)\n\nUpload data from RVTools\n------------------------\n\nTo manually upload a table generated with RVTools, 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 **Excel exported from RVTools** or\n **CSV exported from RVTools**.\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: Either `IMPORT_JOB_FORMAT_RVTOOLS_CSV` or `IMPORT_JOB_FORMAT_RVTOOLS_EXCEL`\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\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)."]]