お知らせ:
2025 年 4 月 15 日より前に Earth Engine の使用を登録したすべての非商用プロジェクトは、アクセスを維持するために
非商用目的での利用資格を確認する必要があります。2025 年 9 月 26 日までに確認が完了していない場合、アクセスが保留されることがあります。
Method: projects.assets.getIamPolicy
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
リソースのアクセス制御ポリシーを取得します。リソースが存在し、ポリシーが設定されていない場合は、空のポリシーを返します。
HTTP リクエスト
POST https://earthengine.googleapis.com/v1alpha/{resource=projects/*/assets/**}:getIamPolicy
この URL は gRPC Transcoding 構文を使用します。
パスパラメータ
パラメータ |
resource |
string
必須: ポリシーをリクエストする対象のリソース。このフィールドに適切な値については、リソース名をご覧ください。
|
リクエストの本文
リクエストの本文には、次の構造のデータが含まれます。
フィールド |
options |
object (GetPolicyOptions )
省略可: assets.getIamPolicy にオプションを指定するための GetPolicyOptions オブジェクト。
|
レスポンスの本文
成功した場合、レスポンスの本文には Policy
のインスタンスが含まれます。
認可スコープ
以下のいずれかの OAuth スコープが必要です。
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
詳細については、OAuth 2.0 Overview をご覧ください。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-25 UTC。
[null,null,["最終更新日 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,[]]