Get Device Session

cloud_testing.get_device_session
ActionGoogle Cloudconnection required

Calls Cloud Testing GET /v1/projects/{projectsId}/deviceSessions/{deviceSessionsId}.

GET /v1/projects/{project_id}/deviceSessions/{device_session_id} Return a DeviceSession, which documents the allocation status and whether the device is allocated.

Connection

Required
Yes — the node will not save without one
Auth type
OAuth 2.0
Providers
Google Cloud Testing
Secret shape
{"client_id", "client_secret", "refresh_token"}
Config it needs
project_id
Resolved by
config.connection_id, else node.connection_id

Configuration

2 fields, 1 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.

FieldTypeRequiredDefaultConstraintsExample
project_id
GCP project id (overrides connection).
stringNo———
device_session
Device session id.
stringYes———

Output

One shape.

result

FieldTypeExample
ok
boolean—
expireTime
string—
name
string—
ttl
string—
state
string—
createTime
string—
displayName
string—
{
  "createTime": "",
  "displayName": "",
  "expireTime": "",
  "name": "",
  "ok": false,
  "state": "",
  "ttl": ""
}

See Get Device Session run in a workflow.

In a technical demo we add the Google Cloud Testing connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.