Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Menampilkan izin yang dimiliki pemanggil pada resource yang ditentukan. Jika resource tidak ada, tindakan ini akan menampilkan kumpulan izin kosong, bukan error NOT_FOUND.
Catatan: Operasi ini dirancang untuk digunakan dalam membuat UI yang mengetahui izin dan alat command line, bukan untuk pemeriksaan otorisasi. Operasi ini dapat "gagal terbuka" tanpa peringatan.
Permintaan HTTP
POST https://earthengine.googleapis.com/v1/{resource=projects/*/assets/**}:testIamPermissions
WAJIB: Resource yang detail kebijakannya diminta. Lihat Nama resource untuk mengetahui nilai yang sesuai untuk kolom ini.
Isi permintaan
Isi permintaan memuat data dengan struktur berikut:
Representasi JSON
{"permissions": [string]}
Kolom
permissions[]
string
Kumpulan izin untuk memeriksa resource. Izin dengan karakter pengganti (seperti * atau storage.*) tidak diizinkan. Untuk informasi selengkapnya, lihat Ringkasan IAM.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Informasi yang saya butuhkan tidak ada","missingTheInformationINeed","thumb-down"],["Terlalu rumit/langkahnya terlalu banyak","tooComplicatedTooManySteps","thumb-down"],["Sudah usang","outOfDate","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Masalah kode / contoh","samplesCodeIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-03-06 UTC."],[[["Returns caller permissions for a specified Earth Engine resource, even if the resource doesn't exist, providing an empty set instead of an error."],["Primarily designed for building permission-aware user interfaces and command-line tools, not for strict authorization checks."],["Accepts a list of specific permissions to check against the resource, using a POST request to a defined endpoint."],["Requires specific OAuth scopes for authentication, like `https://www.googleapis.com/auth/earthengine` or `https://www.googleapis.com/auth/cloud-platform`."]]],["This endpoint, using a POST request to the specified URL, retrieves a caller's permissions for a given resource. It requires the resource path as a parameter and a JSON request body with a list of permissions to check. Wildcard permissions are not permitted. The response indicates the permissions held, returning an empty set if the resource doesn't exist. This is designed for UI/tool development, not for authorization checks, and can \"fail open.\" OAuth scopes are required for authorization.\n"]]