お知らせ:
2025 年 4 月 15 日より前に Earth Engine の使用を登録したすべての非商用プロジェクトは、Earth Engine へのアクセスを維持するために
非商用目的での利用資格を確認する必要があります。
GetIamPolicyRequest
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
GetIamPolicy
メソッドに対するリクエスト メッセージ。
フィールド |
resource |
string
必須: ポリシーをリクエストする対象のリソース。このフィールドに適切な値については、リソース名をご覧ください。
|
options |
object (GetPolicyOptions )
省略可: GetIamPolicy にオプションを指定するための GetPolicyOptions オブジェクト。
|
GetPolicyOptions
GetIamPolicy に対して指定された設定をカプセル化します。
JSON 表現 |
{
"requestedPolicyVersion": integer
} |
フィールド |
requestedPolicyVersion |
integer
省略可。ポリシーの形式設定に使用されるポリシーの最大バージョン。 有効な値は 0、1、3 です。無効な値を指定したリクエストは拒否されます。 条件付きロール バインディングがあるポリシーのリクエストでは、バージョン 3 を指定する必要があります。条件付きロール バインディングがないポリシーでは、有効な値を指定することも、フィールドを設定しないこともできます。 レスポンスのポリシーでは、指定したポリシー バージョンを使用するか、それより低いポリシー バージョンを使用する場合があります。たとえば、バージョン 3 を指定しても、ポリシーに条件付きロール バインディングがない場合、レスポンスではバージョン 1 が使用されます。 IAM ポリシーで条件をサポートするリソースについては、IAM のドキュメントをご覧ください。
|
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-25 UTC。
[null,null,["最終更新日 2025-07-25 UTC。"],[[["\u003cp\u003eThe \u003ccode\u003eGetIamPolicy\u003c/code\u003e request retrieves the IAM policy for a specified Google Earth Engine resource.\u003c/p\u003e\n"],["\u003cp\u003eThe request requires specifying the \u003ccode\u003eresource\u003c/code\u003e for which the policy is being requested.\u003c/p\u003e\n"],["\u003cp\u003eOptionally, \u003ccode\u003eGetPolicyOptions\u003c/code\u003e can be included to specify the desired policy version (0, 1, or 3).\u003c/p\u003e\n"],["\u003cp\u003ePolicies with conditional role bindings must use version 3, while others may use any valid version or leave it unset.\u003c/p\u003e\n"],["\u003cp\u003eThe response might contain a lower policy version than requested if the resource doesn't support the specified version.\u003c/p\u003e\n"]]],[],null,["# GetIamPolicyRequest\n\nRequest message for `GetIamPolicy` method.\n\n| JSON representation |\n|----------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"resource\": string, \"options\": { object (/earth-engine/reference/rest/Shared.Types/GetIamPolicyRequest#GetPolicyOptions) } } ``` |\n\n| Fields ||\n|------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `resource` | `string` REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field. |\n| `options` | `object (`[GetPolicyOptions](/earth-engine/reference/rest/Shared.Types/GetIamPolicyRequest#GetPolicyOptions)`)` OPTIONAL: A `GetPolicyOptions` object for specifying options to `GetIamPolicy`. |\n\nGetPolicyOptions\n----------------\n\nEncapsulates settings provided to GetIamPolicy.\n\n| JSON representation |\n|-----------------------------------------------|\n| ``` { \"requestedPolicyVersion\": integer } ``` |\n\n| Fields ||\n|--------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `requestedPolicyVersion` | `integer` Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). |"]]