Pengumuman: Semua project nonkomersial yang terdaftar untuk menggunakan Earth Engine sebelum
15 April 2025 harus
memverifikasi kelayakan nonkomersial untuk mempertahankan akses. Jika Anda belum melakukan verifikasi hingga 26 September 2025, akses Anda mungkin ditangguhkan.
Method: projects.assets.getIamPolicy
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Mendapatkan kebijakan kontrol akses untuk resource. Menampilkan kebijakan kosong jika resource ada dan tidak memiliki kebijakan yang ditetapkan.
Permintaan HTTP
POST https://earthengine.googleapis.com/v1alpha/{resource=projects/*/assets/**}:getIamPolicy
URL menggunakan sintaksis gRPC Transcoding.
Parameter jalur
Parameter |
resource |
string
WAJIB: Resource yang kebijakannya diminta. Lihat Nama resource untuk mengetahui nilai yang sesuai untuk kolom ini.
|
Isi permintaan
Isi permintaan memuat data dengan struktur berikut:
Kolom |
options |
object (GetPolicyOptions )
OPSIONAL: Objek GetPolicyOptions untuk menentukan opsi ke assets.getIamPolicy .
|
Isi respons
Jika berhasil, isi respons memuat instance Policy
.
Cakupan otorisasi
Memerlukan salah satu cakupan OAuth berikut:
https://www.googleapis.com/auth/earthengine
https://www.googleapis.com/auth/earthengine.readonly
https://www.googleapis.com/auth/cloud-platform
https://www.googleapis.com/auth/cloud-platform.read-only
Untuk mengetahui informasi selengkapnya, lihat OAuth 2.0 Overview.
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-25 UTC.
[null,null,["Terakhir diperbarui pada 2025-07-25 UTC."],[],["This documentation details how to retrieve the access control policy for a specific resource using a POST request to the provided URL. The request requires a resource path and accepts an optional `GetPolicyOptions` object in the request body. The server responds with a `Policy` object if successful or an empty policy if none is set. Authorization requires specific OAuth scopes related to Earth Engine or Cloud Platform. The parameter `resource` is the path to the resource which the policy is applied to.\n"],null,[]]