Returns permissions that the caller has on the specified database or backup resource. Attempting this RPC on a non-existent Cloud Spanner database will result in a NOT_FOUND error if the user has spanner.databases.list permission on the containing Cloud Spanner instance. Otherwise returns an empty set of permissions. Calling this method on a backup that does not exist will result in a NOT_FOUND error if the user has spanner.backups.list permission on the containing instance. Calling this method on a backup schedule that does not exist will result in a NOT_FOUND error if the user has spanner.backupSchedules.list permission on the containing database.
Request
- Base URL: https://spanner.googleapis.com
- URL: https://spanner.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/spanner.admin) 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/spanner.admin)
Path parameters
REQUIRED: The Cloud Spanner resource for which permissions are being tested. The format is projects//instances/ for instance resources and projects//instances//databases/ for database resources.
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/spanner.adminwas removed from the endpoint's security schemeOauth2 - info
the security scope
https://www.googleapis.com/auth/spanner.adminwas 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
spanner.projects.instances.backups.testIamPermissionsremoved and replaced withspanner.projects.instances.databases.databaseRoles.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/spanner.adminwas removed from the endpoint's security schemeOauth2 - info
the security scope
https://www.googleapis.com/auth/spanner.adminwas removed from the endpoint's security schemeOauth2c
- breaking