Returns the permissions that a caller has on the specified note or occurrence resource. Requires list permission on the project (for example, "storage.objects.list" on the containing bucket for testing permission of an object). Attempting to call this method on a non-existent resource will result in a NOT_FOUND
error if the user has list permission on the project, or a PERMISSION_DENIED
error otherwise. The resource takes the following formats: projects/{PROJECT_ID}/occurrences/{OCCURRENCE_ID}
for Occurrences
and projects/{PROJECT_ID}/notes/{NOTE_ID}
for Notes
HTTP request
POST https://containeranalysis.googleapis.com/v1alpha1/{resource=projects/*/notes/*}:testIamPermissions
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
resource |
REQUIRED: The resource for which the policy detail is being requested. See the operation documentation 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 the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.