Returns permissions that a caller has on the specified project, in the format projects/{ProjectIdOrNumber} e.g. projects/123..
HTTP request
POST https://cloudresourcemanager.googleapis.com/v3/{resource=projects/*}:testIamPermissions
The URL uses gRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
resource |
REQUIRED: The resource for which the policy detail is being requested. See Resource names for the appropriate value for this field. |
Request body
The request body contains data with the following structure:
| JSON representation |
|---|
{ "permissions": [ string ] } |
| Fields | |
|---|---|
permissions[] |
The set of permissions to check for the |
Response body
If successful, the response body contains an instance of TestIamPermissionsResponse.
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/cloud-platformhttps://www.googleapis.com/auth/cloud-platform.read-onlyhttps://www.googleapis.com/auth/cloudplatformprojectshttps://www.googleapis.com/auth/cloudplatformprojects.readonlyhttps://www.googleapis.com/auth/iam.test
For more information, see the Authentication Overview.