[[["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 details how to test IAM permissions on a specified resource using a POST HTTP request to the Google Compute API.\u003c/p\u003e\n"],["\u003cp\u003eThe HTTP request requires a \u003ccode\u003eproject\u003c/code\u003e and \u003ccode\u003eresource\u003c/code\u003e path parameter, specifying the target project and resource for the permission check.\u003c/p\u003e\n"],["\u003cp\u003eThe request body, formatted in JSON, includes a list of permissions (\u003ccode\u003epermissions[]\u003c/code\u003e) to be checked, and the response body will contain a JSON list of the permissions the caller is allowed.\u003c/p\u003e\n"],["\u003cp\u003eTo authorize the request, one of the specified OAuth scopes or the \u003ccode\u003ecompute.backendServices.list\u003c/code\u003e IAM permission is required.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eTry It!\u003c/code\u003e feature allows users to test the API call directly on the webpage, and more details are provided about path parameters, request/response bodies, and authorization scopes.\u003c/p\u003e\n"]]],[],null,["# Method: backendServices.testIamPermissions\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 - [JSON representation](#body.TestPermissionsResponse.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [IAM Permissions](#body.aspect_1)\n- [Try it!](#try-it)\n\nReturns permissions that a caller has on the specified resource.\n\n### HTTP request\n\n`POST https://compute.googleapis.com/compute/beta/projects/{project}/global/backendServices/{resource}/testIamPermissions`\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 data with the following structure:\n\n### Authorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/compute.readonly`\n- `\n https://www.googleapis.com/auth/compute`\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\nIn addition to any permissions specified on the fields above, authorization requires one or more of the following [IAM](https://cloud.google.com/iam/docs/) permissions:\n\n- `compute.backendServices.list`\n\nTo find predefined roles that contain those permissions, see [Compute Engine IAM Roles](/compute/docs/access/iam)."]]