Method: projects.locations.dataStores.sessions.list
Stay organized with collections
Save and categorize content based on your preferences.
Lists all Sessions by their parent DataStore
.
HTTP request
GET https://discoveryengine.googleapis.com/v1beta/{parent=projects/*/locations/*/dataStores/*}/sessions
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters |
parent |
string
Required. The data store resource name. Format: projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStoreId}
|
Query parameters
Parameters |
pageSize |
integer
Maximum number of results to return. If unspecified, defaults to 50. Max allowed value is 1000.
|
pageToken |
string
A page token, received from a previous sessions.list call. Provide this to retrieve the subsequent page.
|
filter |
string
A filter to apply on the list results. The supported features are: userPseudoId, state. Example: "userPseudoId = some_id"
|
orderBy |
string
A comma-separated list of fields to order by, sorted in ascending order. Use "desc" after a field name for descending. Supported fields:
updateTime
createTime
session_name
isPinned
Example:
- "updateTime desc"
- "createTime"
- "isPinned desc,updateTime desc": list sessions by isPinned first, then by updateTime.
|
Request body
The request body must be empty.
Response body
If successful, the response body contains an instance of ListSessionsResponse
.
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:
discoveryengine.sessions.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 2025-04-16 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-04-16 UTC."],[[["This endpoint retrieves a list of Sessions associated with a specific DataStore, identified by the `parent` path parameter."],["The HTTP request uses a `GET` method with a specified URL structure that includes the parent DataStore resource name, following gRPC Transcoding syntax."],["Pagination for the list of Sessions is managed using `pageSize` and `pageToken` query parameters, with a default page size of 50 and a maximum of 1000, and you can also filter results using the `filter` parameter, or order the results by providing the `orderBy` parameter."],["The request body for listing Sessions must be empty, and the successful response includes a `ListSessionsResponse` instance containing the data."],["Accessing this endpoint requires the OAuth scope `https://www.googleapis.com/auth/cloud-platform` and the IAM permission `discoveryengine.sessions.list` on the parent resource."]]],[]]