Method: projects.instances.databases.sessions.get

Gets a session. Returns NOT_FOUND if the session does not exist. This is mainly useful for determining whether a session is still alive.

HTTP request

GET https://spanner.googleapis.com/v1/{name=projects/*/instances/*/databases/*/sessions/*}

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
name

string

Required. The name of the session to retrieve.

Authorization requires the following Google IAM permission on the specified resource name:

  • spanner.sessions.get

Request body

The request body must be empty.

Response body

If successful, the response body contains an instance of Session.

Authorization Scopes

Requires one of the following OAuth scopes:

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

For more information, see the Authentication Overview.

Try it!

Was this page helpful? Let us know how we did:

Send feedback about...

Cloud Spanner Documentation