Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Jika tidak ingin menginstal dan menjalankan pengumpulan data otomatis dengan
discovery client di infrastruktur, Anda dapat mengupload data infrastruktur secara manual ke Pusat Migrasi.
Pertama, gunakan RVTools untuk mengumpulkan data sistem dan data performa dari instance virtual
machine (VM) yang berjalan di vCenter.
Kemudian, impor tabel yang dihasilkan oleh RVTools langsung di
Migration Center untuk menambahkan aset Anda.
Batasan
Agar berhasil mengimpor data, buat tabel dengan RVTools versi 4.3.1 atau
yang lebih baru. RVTools versi sebelumnya tidak didukung.
Tabel yang dibuat dengan tanda --DBColumnNames tidak didukung.
Saat Anda mengupload tabel yang dibuat dengan RVTools, Pusat Migrasi
hanya menggunakan data dari tab berikut:
tabvInfo (diperlukan untuk XLSX dan CSV)
tabvCPU (diperlukan untuk XLSX, opsional untuk CSV)
tabvDisk (diperlukan untuk XLSX, opsional untuk CSV)
tabvPartition (diperlukan untuk XLSX, opsional untuk CSV)
tabvNetwork (diperlukan untuk XLSX, opsional untuk CSV)
tabvHost (diperlukan untuk XLSX, opsional untuk CSV)
Mengupload data dari RVTools
Untuk mengupload tabel yang dibuat dengan RVTools secara manual, ikuti langkah-langkah berikut:
Di bagian Siapkan upload file, masukkan nama upload file.
Dari daftar Format file, pilih Excel yang diekspor dari RVTools atau
CSV yang diekspor dari RVTools.
Klik Pilih file untuk diupload, lalu pilih semua file yang ingin Anda upload.
Untuk mengonfirmasi dan mulai mengupload file, klik Upload file.
Jika file divalidasi dengan benar, untuk membuat aset dari file, klik Import data, lalu klik Confirm.
API
Buat tugas impor.
POST https://migrationcenter.googleapis.com/v1alpha1/projects/PROJECT_ID/locations/REGION/importJobs?importJobId=IMPORT_JOB_ID
{
"asset_source": "projects/PROJECT_ID/locations/REGION/sources/SOURCE_ID"
}
Ganti kode berikut:
PROJECT_ID: ID project untuk membuat
tugas impor.
REGION: Region untuk membuat tugas impor.
IMPORT_JOB_ID: ID tugas impor baru.
SOURCE_ID: ID sumber yang ada yang akan
dikaitkan dengan tugas impor.
Opsional: Untuk mengonfirmasi bahwa tugas impor dibuat dengan benar,
dapatkan tugas impor.
GET https://migrationcenter.googleapis.com/v1alpha1/projects/PROJECT_ID/locations/REGION/importJobs/IMPORT_JOB_ID
Buat file data impor yang dilampirkan ke tugas impor.
POST https://migrationcenter.googleapis.com/v1alpha1/projects/PROJECT_ID/locations/REGION/importJobs/IMPORT_JOB_ID/importDataFiles?import_data_file_id=DATA_FILE_ID
{
"format": "IMPORT_JOB_FORMAT"
}
Ganti kode berikut:
DATA_FILE_ID: ID file data baru
IMPORT_JOB_FORMAT:
IMPORT_JOB_FORMAT_RVTOOLS_CSV atau
IMPORT_JOB_FORMAT_RVTOOLS_EXCEL
Dapatkan file data.
GET https://migrationcenter.googleapis.com/v1alpha1/projects/PROJECT_ID/locations/REGION/importJobs/IMPORT_JOB_ID/importDataFiles/DATA_FILE_ID
Salin URL dari kolom signedUrl dari respons.
Upload file ke URL yang disalin.
PUT -H 'Content-Type: application/octet-stream' --upload-file UPLOAD_FILE_PATH 'COPIED_URL'
Ganti kode berikut:
UPLOAD_FILE_PATH: Jalur lokal file yang diupload.
COPIED_URL: URL yang ditandatangani dan disalin dari
langkah pratinjau.
Opsional: Ulangi langkah 3-6 untuk membuat lebih banyak file data dalam tugas impor yang sama.
Opsional: Mendapatkan semua file data tugas impor.
GET https://migrationcenter.googleapis.com/v1alpha1/projects/PROJECT_ID/locations/REGION/importJobs/IMPORT_JOB_ID/importDataFiles
Validasi tugas impor.
POST https://migrationcenter.googleapis.com/v1alpha1/projects/PROJECT_ID/locations/REGION/importJobs/IMPORT_JOB_ID:validate
Dapatkan tugas impor dan lihat laporan validasi.
Jika statusnya READY, Anda dapat melanjutkan ke langkah berikutnya.
Jika tidak, Anda harus memperbaiki tugas atau file tertentu, yang mungkin memerlukan
penghapusan file atau upload file baru.
GET https://migrationcenter.googleapis.com/v1alpha1/projects/PROJECT_ID/locations/REGION/importJobs/IMPORT_JOB_ID
Jalankan tugas impor.
POST https://migrationcenter.googleapis.com/v1alpha1/projects/PROJECT_ID/locations/REGION/importJobs/IMPORT_JOB_ID:run
Dapatkan tugas impor dan lihat laporan eksekusi.
Jika statusnya COMPLETED, tugas berhasil dieksekusi.
Jika tidak, jika tugas gagal dan dalam status terminal, laporan eksekusi
akan menyertakan error.
Buat tugas impor baru dan terapkan perubahan yang diperlukan.
GET https://migrationcenter.googleapis.com/v1alpha1/projects/PROJECT_ID/locations/REGION/importJobs/IMPORT_JOB_ID
Setelah Anda mengupload file, Pusat Migrasi akan memvalidasinya
untuk memeriksa apakah file tersebut sudah benar secara formal. Jika validasi berhasil,
Migration Center akan memproses data untuk membuat aset baru,
atau memperbarui aset yang ada. Anda dapat memeriksa status tugas upload
dari konsol Google Cloud .
Untuk meninjau status tugas upload Anda, ikuti langkah-langkah berikut:
Buka halaman Impor data, lalu klik Upload file.
Dari daftar impor file, pilih upload yang ingin Anda tinjau.
Di halaman upload file, di bagian Progres impor data,
tinjau Status untuk file yang Anda upload.
Anda dapat melihat file dalam salah satu status berikut.
Daftar status
Selesai. Impor file Anda berhasil.
Siap. File Anda lulus validasi dan siap diimpor.
Tertunda. File Anda sedang menunggu file lain selesai diproses.
Berlari. File Anda sedang diproses.
Memvalidasi. File Anda sedang dalam tahap validasi.
Validasi gagal. File Anda berisi beberapa error. Perbaiki error, lalu
coba upload file Anda lagi.
Gagal. File Anda tidak dapat diimpor.
Meninjau detail error
Jika mengalami error setelah mengimpor file, Anda dapat meninjau pesan error secara langsung di konsol Google Cloud .
Untuk meninjau error tugas upload, ikuti langkah-langkah berikut:
Buka halaman Impor data, lalu klik Upload file.
Klik file impor yang menampilkan peringatan atau error.
Halaman detail file impor menampilkan daftar lengkap error.
Di halaman detail file impor, Anda dapat meninjau aset dan kolom data
yang menyebabkan error, serta melihat deskripsi error.
Error dalam tugas impor file dapat mencegah Migration Center
membuat aset baru atau memperbarui aset yang ada dengan perubahan baru.
Untuk memperbaiki error, edit file Anda dan buat tugas impor file baru untuk menguploadnya lagi.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-08-11 UTC."],[],[],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)."]]