[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-06-17 UTC."],[[["\u003cp\u003eThis endpoint retrieves the access control policy for a resource protected by Identity-Aware Proxy (IAP).\u003c/p\u003e\n"],["\u003cp\u003eThe HTTP request is a \u003ccode\u003ePOST\u003c/code\u003e method to the specified URL, following gRPC Transcoding syntax.\u003c/p\u003e\n"],["\u003cp\u003eThe request requires a \u003ccode\u003eresource\u003c/code\u003e path parameter, representing the target resource, and an optional \u003ccode\u003eoptions\u003c/code\u003e field in the request body.\u003c/p\u003e\n"],["\u003cp\u003eSuccessful responses contain an instance of a \u003ccode\u003ePolicy\u003c/code\u003e object, and requires authorization using the \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"],["\u003cp\u003eThe method requires one of several IAM permissions on the target \u003ccode\u003eresource\u003c/code\u003e, depending on its type, including permissions like \u003ccode\u003eiap.gateway.getIamPolicy\u003c/code\u003e and \u003ccode\u003eiap.webTypes.getIamPolicy\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Method: getIamPolicy\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n - [JSON representation](#body.request_body.SCHEMA_REPRESENTATION)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [IAM Permissions](#body.aspect_1)\n- [Try it!](#try-it)\n\nGets the access control policy for an Identity-Aware Proxy protected resource. More information about managing access via IAP can be found at: \u003chttps://cloud.google.com/iap/docs/managing-access#managing_access_via_the_api\u003e\n\n### HTTP request\n\n`POST https://iap.googleapis.com/v1beta1/{resource=**}:getIamPolicy`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n### Request body\n\nThe request body contains data with the following structure:\n\n### Response body\n\nIf successful, the response body contains an instance of [Policy](/iap/docs/reference/rest/Shared.Types/Policy).\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/cloud-platform`\n\nFor more information, see the [Authentication Overview](/docs/authentication#authorization-gcp).\n\n### IAM Permissions\n\nRequires **one of** the following [IAM](https://cloud.google.com/iam/docs) permissions on the `resource` resource, depending on the resource type:\n\n- `iap.gateway.getIamPolicy`\n- `iap.tunnel.getIamPolicy`\n- `iap.tunnelDestGroups.getIamPolicy`\n- `iap.tunnelInstances.getIamPolicy`\n- `iap.tunnelLocations.getIamPolicy`\n- `iap.tunnelZones.getIamPolicy`\n- `iap.web.getIamPolicy`\n- `iap.webServices.getIamPolicy`\n- `iap.webServiceVersions.getIamPolicy`\n- `iap.webTypes.getIamPolicy`\n\nFor more information, see the [IAM documentation](https://cloud.google.com/iam/docs)."]]