Cloud Deployment Manager will reach end of support onDecember 31, 2025. If you currently use Deployment Manager, please migrate to Infrastructure Manager or an alternative deployment technology by December 31, 2025 to ensure your services continue without interruption.
[[["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-04-30 UTC."],[[["\u003cp\u003eThis API call tests the permissions a caller has on a specified resource within a given project.\u003c/p\u003e\n"],["\u003cp\u003eIt requires authorization with either the \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e or \u003ccode\u003ehttps://www.googleapis.com/auth/ndev.cloudman\u003c/code\u003e scope.\u003c/p\u003e\n"],["\u003cp\u003eThe request includes a list of specific permissions to check, without any wildcards, and identifies the project and resource with path parameters.\u003c/p\u003e\n"],["\u003cp\u003eThe API call returns a list of permissions from the request that the caller is allowed to perform.\u003c/p\u003e\n"],["\u003cp\u003eYou can use the api explorer to test this with live data.\u003c/p\u003e\n"]]],[],null,["# Deployments: testIamPermissions\n\n**Requires [authorization](#auth)**\n\nReturns permissions that a caller has on the specified resource.\n[Try it now](#try-it).\n\nRequest\n-------\n\n### HTTP request\n\n```\nPOST https://www.googleapis.com/deploymentmanager/v2/projects/project/global/deployments/resource/testIamPermissions\n```\n\n### Parameters\n\n### Authorization\n\nThis request requires authorization with at least one of the following scopes ([read more about authentication and authorization](/deployment-manager/latest/authorization)).\n\n### Request body\n\nIn the request body, supply data with the following structure:\n\n```text\n{\n \"permissions\": [\n string\n ]\n}\n```\n\nResponse\n--------\n\nIf successful, this method returns a response body with the following structure:\n\n```text\n{\n \"permissions\": [\n string\n ]\n}\n```\n\nTry it!\n-------\n\n\nUse the APIs Explorer below to call this method on live data and see the response.\nAlternatively, try the\n[standalone\nExplorer](https://developers.google.com/apis-explorer/#p/deploymentmanager/v2/deploymentmanager.deployments.testIamPermissions)."]]