Get Database
spanner.get_database
ActionGoogle Cloudconnection required
Calls spanner v1 GET /v1/projects/{projectsId}/instances/{instancesId}/databases/{databasesId}.
Gets the state of a Cloud Spanner database.
Connection
- Required
- Yes — the node will not save without one
- Auth type
- OAuth 2.0
- Providers
- Google Cloud Spanner
- Secret shape
- {"client_id", "client_secret", "refresh_token"}
- Config it needs
- project_id, instance, database
- Resolved by
- config.connection_id, else node.connection_id
Configuration
2 fields, 2 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.
| Field | Type | Required | Default | Constraints | Example |
|---|---|---|---|---|---|
instance Instance name or id. | string | Yes | — | — | — |
database Database name or id. | string | Yes | — | — | — |
Output
One shape.
result
Extra keys beyond the ones listed can appear.
| Field | Type | Example |
|---|---|---|
createTime | string | — |
databaseDialect | string | — |
defaultLeader | string | — |
earliestVersionTime | string | — |
enableDropProtection | boolean | — |
encryptionConfig | object | — |
encryptionInfo | array | — |
name | string | — |
quorumInfo | object | — |
reconciling | boolean | — |
restoreInfo | object | — |
state | string | — |
versionRetentionPeriod | string | — |
{
"createTime": "",
"databaseDialect": "",
"defaultLeader": "",
"earliestVersionTime": "",
"enableDropProtection": false,
"encryptionConfig": {},
"encryptionInfo": [],
"name": "",
"quorumInfo": {},
"reconciling": false,
"restoreInfo": {},
"state": "",
"versionRetentionPeriod": ""
}Related Google Cloud Spanner nodes
See Get Database run in a workflow.
In a technical demo we add the Google Cloud Spanner connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.