Returns permissions that a caller has on the specified resource. Try it now.
Request
HTTP request
POST https://www.googleapis.com/deploymentmanager/v2beta/projects/project/global/deployments/resource/testIamPermissions
Parameters
Parameter name | Value | Description |
---|---|---|
Path parameters | ||
project |
string |
Project ID for this request. |
resource |
string |
Name or id of the resource for this request. |
Authorization
This request requires authorization with at least one of the following scopes:
Scope |
---|
https://www.googleapis.com/auth/cloud-platform |
https://www.googleapis.com/auth/ndev.cloudman |
Request body
In the request body, supply data with the following structure:
{ "permissions": [ string ] }
Property name | Value | Description | Notes |
---|---|---|---|
permissions[] |
list |
The set of permissions to check for the 'resource'. Permissions with wildcards (such as '*' or 'storage.*') are not allowed. |
Response
If successful, this method returns a response body with the following structure:
{ "permissions": [ string ] }
Property name | Value | Description | Notes |
---|---|---|---|
permissions[] |
list |
A subset of `TestPermissionsRequest.permissions` that the caller is allowed. |
Try it!
Use the APIs Explorer below to call this method on live data and see the response.