projects

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. Clients making requests from this API must poll GetDeviceSession.

Request

  • Base URL
    https://testing.googleapis.com
  • Auth
    OAuth 2 and OAuth 2
    Implicithttps://accounts.google.com/o/oauth2/auth
    Scopeshttps://www.googleapis.com/auth/cloud-platform
    Authorization codehttps://accounts.google.com/o/oauth2/auth
    Token URLhttps://accounts.google.com/o/oauth2/token
    Scopeshttps://www.googleapis.com/auth/cloud-platform

Path parameters

projectsId, string required
deviceSessionsId, string required

Query parameters

$.xgafv, '1' | '2'

V1 error format.

access_token, string

OAuth access token.

alt, 'json' | 'media' | 'proto'

Data format for response.

callback, string

JSONP

fields, string

Selector specifying which fields to include in a partial response.

key, string

API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.

oauth_token, string

OAuth 2.0 token for the current user.

prettyPrint, boolean

Returns response with indentations and line breaks.

quotaUser, string

Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

uploadType, string

Legacy upload protocol for media (e.g. "media", "multipart").

upload_protocol, string

Upload protocol for media (e.g. "raw", "multipart").

Response

Successful response

DeviceSession required

Protobuf message describing the device message, used from several RPCs.

activeStartTime, string google-datetime

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

androidDevice, AndroidDevice

A single Android device.

createTime, string google-datetime

Output only. The time that the Session was created.

displayName, string

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

expireTime, string 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.

inactivityTimeout, string google-duration

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

name, string

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

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

Output only. Current state of the DeviceSession.

stateHistories, SessionStateEvent[]

Output only. The historical state transitions of the session_state message including the current session state.

ttl, string 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.

Changes

No recorded changes to this operation across all 5 revisions of this API.