Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning.
Request
- Base URL: https://pubsub.googleapis.com
- URL: https://pubsub.googleapis.com/v1/{+resource}:testIamPermissions
- Auth: one of:
- OAuth 2 (implicit, authorization URL https://accounts.google.com/o/oauth2/auth, scopes: https://www.googleapis.com/auth/cloud-platform) and OAuth 2 (authorization code, authorization URL https://accounts.google.com/o/oauth2/auth, token URL https://accounts.google.com/o/oauth2/token, scopes: https://www.googleapis.com/auth/cloud-platform)
- OAuth 2 (implicit, authorization URL https://accounts.google.com/o/oauth2/auth, scopes: https://www.googleapis.com/auth/pubsub) and OAuth 2 (authorization code, authorization URL https://accounts.google.com/o/oauth2/auth, token URL https://accounts.google.com/o/oauth2/token, scopes: https://www.googleapis.com/auth/pubsub)
Path parameters
REQUIRED: The resource for which the policy detail is being requested. See Resource names for the appropriate value for this field.
Request body
Response
Successful response
Changes
- info
the security scope
https://www.googleapis.com/auth/cloud-platformwas added to the endpoint's security schemeOauth2 - info
the security scope
https://www.googleapis.com/auth/cloud-platformwas added to the endpoint's security schemeOauth2c - info
the security scope
https://www.googleapis.com/auth/pubsubwas removed from the endpoint's security schemeOauth2 - info
the security scope
https://www.googleapis.com/auth/pubsubwas removed from the endpoint's security schemeOauth2c
- info
- breaking
removed the request body
- breaking
removed the media type
*/*for the response with the status - info
api operation id
pubsub.projects.snapshots.testIamPermissionsremoved and replaced withpubsub.projects.topics.testIamPermissions - info
the security scope
https://www.googleapis.com/auth/cloud-platformwas added to the endpoint's security schemeOauth2 - info
the security scope
https://www.googleapis.com/auth/cloud-platformwas added to the endpoint's security schemeOauth2c - info
the security scope
https://www.googleapis.com/auth/pubsubwas removed from the endpoint's security schemeOauth2 - info
the security scope
https://www.googleapis.com/auth/pubsubwas removed from the endpoint's security schemeOauth2c
- breaking