Pengumuman: Semua project nonkomersial yang terdaftar untuk menggunakan Earth Engine sebelum
15 April 2025 harus
memverifikasi kelayakan nonkomersial untuk mempertahankan akses Earth Engine.
ee.data.listBuckets
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Menampilkan aset dan folder tingkat teratas untuk Project Cloud atau pengguna. Biarkan kolom project kosong untuk menggunakan project saat ini.
Penggunaan | Hasil |
---|
ee.data.listBuckets(project, callback) | api.ListAssetsResponse |
Argumen | Jenis | Detail |
---|
project | String, opsional | Project yang akan dikueri, misalnya "projects/my-project". Secara default, project saat ini. Gunakan "projects/earthengine-legacy" untuk folder beranda pengguna. |
callback | Fungsi, opsional | Jika tidak diberikan, panggilan dilakukan secara sinkron. |
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2025-07-26 UTC.
[null,null,["Terakhir diperbarui pada 2025-07-26 UTC."],[[["\u003cp\u003eReturns a list of top-level assets and folders within a specified Google Cloud project or the user's Earth Engine home folder.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eee.data.listBuckets\u003c/code\u003e function is used to retrieve this information, allowing optional specification of the project and a callback function.\u003c/p\u003e\n"],["\u003cp\u003eWhen querying a user's home folders, use \u003ccode\u003e"projects/earthengine-legacy"\u003c/code\u003e as the project ID.\u003c/p\u003e\n"]]],[],null,["# ee.data.listBuckets\n\n\u003cbr /\u003e\n\nReturns top-level assets and folders for the Cloud Project or user. Leave the project field blank to use the current project.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|---------------------------------------------------|------------------------|\n| `ee.data.listBuckets(`*project* `, `*callback*`)` | api.ListAssetsResponse |\n\n| Argument | Type | Details |\n|------------|--------------------|-------------------------------------------------------------------------------------------------------------------------------------|\n| `project` | String, optional | Project to query, e.g. \"projects/my-project\". Defaults to current project. Use \"projects/earthengine-legacy\" for user home folders. |\n| `callback` | Function, optional | If not supplied, the call is made synchronously. |"]]