공지사항:
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 문서를 참조하세요.
|
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 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). |"]]