Cloud Spanner API (spanner:v1)

2022-07-23

1 new method

Additions

    Methods
  • spanner.projects.instances.databases.databaseRoles.testIamPermissions

      Path: v1/{+resource}:testIamPermissions

      Flat Path: v1/projects/{projectsId}/instances/{instancesId}/databases/{databasesId}/databaseRoles/{databaseRolesId}:testIamPermissions

      HTTP Method: POST

      Scopes:

    • https://www.googleapis.com/auth/cloud-platform
    • https://www.googleapis.com/auth/spanner.admin
    • Parameters:

        resource

          Type: string

          Description: 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.

          Pattern: ^projects/[^/]+/instances/[^/]+/databases/[^/]+/databaseRoles/[^/]+$

          Required: Yes

          Location: path

      Description: 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.

      Parameter Order: resource