[[["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-07-28 UTC."],[[["\u003cp\u003eThis webpage outlines the process for retrieving the access control policy of a resource using a \u003ccode\u003eGET\u003c/code\u003e request to a specific URL.\u003c/p\u003e\n"],["\u003cp\u003eThe request URL includes a required \u003ccode\u003eresource\u003c/code\u003e path parameter, and an optional \u003ccode\u003eoptions\u003c/code\u003e query parameter.\u003c/p\u003e\n"],["\u003cp\u003eThe request body for this operation must be empty, requiring no additional data.\u003c/p\u003e\n"],["\u003cp\u003eA successful request returns a \u003ccode\u003ePolicy\u003c/code\u003e object, detailing the access control policy for the specified resource.\u003c/p\u003e\n"],["\u003cp\u003eRetrieving this access control policy requires authorization with the \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"]]],[],null,["# Method: projects.locations.apis.getIamPolicy\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization Scopes](#body.aspect)\n\nGets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.\n\n### HTTP request\n\n`GET https://apigateway.googleapis.com/v1/{resource=projects/*/locations/*/apis/*}:getIamPolicy`\n\nThe URL uses [gRPC Transcoding](https://github.com/googleapis/googleapis/blob/master/google/api/http.proto) syntax.\n\n### Path parameters\n\n### Query parameters\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nIf successful, the response body contains an instance of [Policy](/api-gateway/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](https://cloud.google.com/docs/authentication/)."]]