v1

latestOpenAPI 3.0.0Creative Commons Attribution 3.02026-07-13108877.2 KB
projects

POST /v1/projects/{project_id}/deviceSessions

post/v1/{+parent}/deviceSessions

Path parameters

parentstring required

Required. The Compute Engine project under which this device will be allocated. "projects/{project_id}"

Request body

ttlstring google-duration

Optional. The amount of time that a device will be initially allocated for. This can eventually be extended with the UpdateDeviceSession RPC. Default: 15 minutes.

displayNamestring

Output only. The title of the DeviceSession to be presented in the UI.

inactivityTimeoutstring google-duration

Output only. The interval of time that this device must be interacted with before it transitions from ACTIVE to TIMEOUT_INACTIVITY.

createTimestring google-datetime

Output only. The time that the Session was created.

activeStartTimestring google-datetime

Output only. The timestamp that the session first became ACTIVE.

state'SESSION_STATE_UNSPECIFIED' | 'REQUESTED' | 'PENDING' | 'ACTIVE' | 'EXPIRED' | 'FINISHED' | 'UNAVAILABLE' | 'ERROR'

Output only. Current state of the DeviceSession.

expireTimestring google-datetime

Optional. If the device is still in use at this time, any connections will be ended and the SessionState will transition from ACTIVE to FINISHED.

namestring

Optional. Name of the DeviceSession, e.g. "projects/{project_id}/deviceSessions/{session_id}"

Response

Successful response