Method: projects.deviceSessions.list

GET /v1/projects/{projectId}/deviceSessions Lists device Sessions owned by the project user.

HTTP request

GET https://testing.googleapis.com/v1/{parent=projects/*}/deviceSessions

The URL usesgRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Required. The name of the parent to request, e.g. "projects/{projectId}"

Query parameters

Parameters
pageSize

integer

Optional. The maximum number of DeviceSessions to return.

pageToken

string

Optional. A continuation token for paging.

filter

string

Optional. If specified, responses will be filtered by the given filter. Allowed fields are: sessionState.

Request body

The request body must be empty.

Response body

A list of device sessions.

If successful, the response body contains data with the following structure:

JSON representation
{"deviceSessions":[{object (DeviceSession)}],"nextPageToken":string}
Fields
deviceSessions[]

object (DeviceSession)

The sessions matching the specified filter in the given cloud project.

nextPageToken

string

A token, which can be sent aspageToken to retrieve the next page. If this field is omitted, there are no subsequent pages.

Authorization scopes

Requires the following OAuth scope:

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

For more information, see theAuthentication Overview.

IAM Permissions

Requires the followingIAM permission on theparent resource:

  • cloudtestservice.devicesession.list

For more information, see theIAM documentation.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2024-07-25 UTC.