Method: projects.deviceSessions.list
Stay organized with collections
Save and categorize content based on your preferences.
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 uses gRPC 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 as pageToken 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 the Authentication Overview.
IAM Permissions
Requires the following IAM permission on the parent
resource:
cloudtestservice.devicesession.list
For more information, see the IAM documentation.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-07-25 UTC.
[null,null,["Last updated 2024-07-25 UTC."],[],[],null,["# Method: projects.deviceSessions.list\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n - [JSON representation](#body.ListDeviceSessionsResponse.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [IAM Permissions](#body.aspect_1)\n- [Try it!](#try-it)\n\nGET /v1/projects/{projectId}/deviceSessions Lists device Sessions owned by the project user.\n\n### HTTP request\n\n`GET https://testing.googleapis.com/v1/{parent=projects/*}/deviceSessions`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|----------|-----------------------------------------------------------------------------------|\n| `parent` | `string` Required. The name of the parent to request, e.g. \"projects/{projectId}\" |\n\n### Query parameters\n\n| Parameters ||\n|-------------|--------------------------------------------------------------------------------------------------------------------|\n| `pageSize` | `integer` Optional. The maximum number of DeviceSessions to return. |\n| `pageToken` | `string` Optional. A continuation token for paging. |\n| `filter` | `string` Optional. If specified, responses will be filtered by the given filter. Allowed fields are: sessionState. |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nA list of device sessions.\n\nIf successful, the response body contains data with the following structure:\n\n| JSON representation |\n|--------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"deviceSessions\": [ { object (/docs/test-lab/reference/testing/rest/v1/projects.deviceSessions#DeviceSession) } ], \"nextPageToken\": string } ``` |\n\n| Fields ||\n|--------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `deviceSessions[]` | `object (`[DeviceSession](/docs/test-lab/reference/testing/rest/v1/projects.deviceSessions#DeviceSession)`)` The sessions matching the specified filter in the given cloud project. |\n| `nextPageToken` | `string` A token, which can be sent as `pageToken` to retrieve the next page. If this field is omitted, there are no subsequent pages. |\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/cloud-platform`\n\nFor more information, see the [Authentication Overview](https://cloud.google.com/docs/authentication/).\n\n### IAM Permissions\n\nRequires the following [IAM](https://cloud.google.com/iam/docs) permission on the `parent` resource:\n\n- `cloudtestservice.devicesession.list`\n\nFor more information, see the [IAM documentation](https://cloud.google.com/iam/docs)."]]