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 comma-separated list of fields to filter by, in EBNF grammar. The supported fields are: * userPseudoId * state * displayName * starred * isPinned * labels * createTime * updateTime
Examples:
userPseudoId = some_id
displayName = "some_name"
starred = true
isPinned=true AND (NOT labels:hidden)
createTime > "1970-01-01T12:00:00Z"
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.
[[["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-07-30 UTC."],[[["\u003cp\u003eThis endpoint retrieves a list of Sessions associated with a specific DataStore, identified by its \u003ccode\u003eparent\u003c/code\u003e resource path.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eparent\u003c/code\u003e path parameter is required and specifies the DataStore resource name in the format: \u003ccode\u003eprojects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStoreId}\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eQuery parameters allow for pagination (\u003ccode\u003epageSize\u003c/code\u003e, \u003ccode\u003epageToken\u003c/code\u003e), filtering (\u003ccode\u003efilter\u003c/code\u003e) by userPseudoId or state, and ordering (\u003ccode\u003eorderBy\u003c/code\u003e) the results by fields such as \u003ccode\u003eupdateTime\u003c/code\u003e, \u003ccode\u003ecreateTime\u003c/code\u003e, \u003ccode\u003esession_name\u003c/code\u003e, and \u003ccode\u003eisPinned\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe request body must be empty, and a successful response will contain a \u003ccode\u003eListSessionsResponse\u003c/code\u003e object.\u003c/p\u003e\n"],["\u003cp\u003eAccess to this function requires the \u003ccode\u003ediscoveryengine.sessions.list\u003c/code\u003e IAM permission on the parent resource, along with the \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"]]],[],null,[]]