Skip to main content

database_roles

Creates, updates, deletes, gets or lists a database_roles resource.

Overview

Namedatabase_roles
TypeResource
Idgoogle.spanner.database_roles

Fields

NameDatatypeDescription
namestringRequired. The name of the database role. Values are of the form projects//instances//databases//databaseRoles/ where `is as specified in theCREATE ROLE` DDL statement.

Methods

NameAccessible byRequired ParamsDescription
projects_instances_databases_database_roles_listSELECTdatabasesId, instancesId, projectsIdLists Cloud Spanner database roles.

SELECT examples

Lists Cloud Spanner database roles.

SELECT
name
FROM google.spanner.database_roles
WHERE databasesId = '{{ databasesId }}'
AND instancesId = '{{ instancesId }}'
AND projectsId = '{{ projectsId }}';