Stay organized with collections
Save and categorize content based on your preferences.
Creates a new session to be used for requests made by the adapter. A
session identifies a specific incarnation of a database resource and is
meant to be reused across many AdaptMessage calls.
For more information about retries and long-running operations, see
Understand connectors.
Arguments
Parameters
parent
string
Required. The database in which the new session is created.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Method: googleapis.spanner.v1.projects.instances.databases.sessions.adapter\n\nCreates a new session to be used for requests made by the adapter. A\nsession identifies a specific incarnation of a database resource and is\nmeant to be reused across many `AdaptMessage` calls.\n\nFor more information about retries and long-running operations, see\n[Understand connectors]().\n\nArguments\n---------\n\nRaised exceptions\n-----------------\n\nResponse\n--------\n\nIf successful, the response contains an instance of [`AdapterSession`](https://cloud.google.com/workflows/docs/reference/googleapis/spanner/v1/Overview#AdapterSession).\n\nSubworkflow snippet\n-------------------\n\nSome fields might be optional or required.\nTo identify required fields, refer to the [API documentation](https://cloud.google.com/spanner/docs/reference/rest/v1/projects.instances.databases.sessions/adapter). \n\n### YAML\n\n```yaml\n- adapter:\n call: googleapis.spanner.v1.projects.instances.databases.sessions.adapter\n args:\n parent: ...\n body:\n name: ...\n result: adapterResult\n```\n\n### JSON\n\n```json\n[\n {\n \"adapter\": {\n \"call\": \"googleapis.spanner.v1.projects.instances.databases.sessions.adapter\",\n \"args\": {\n \"parent\": \"...\",\n \"body\": {\n \"name\": \"...\"\n }\n },\n \"result\": \"adapterResult\"\n }\n }\n]\n```"]]