示例:state = ACTIVE and createTime < "2023-01-01T00:00:00Z" 是用于过滤 2023 年 1 月 1 日之前创建且处于“有效”状态的会话的过滤条件。state = ACTIVE and labels.environment=production 是用于过滤处于 ACTIVE 状态且具有生产环境标签的会话的过滤条件。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-03-04。"],[[["\u003cp\u003eThis API endpoint retrieves a list of interactive sessions using a \u003ccode\u003eGET\u003c/code\u003e request to the specified URL, structured according to gRPC Transcoding syntax.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eparent\u003c/code\u003e path parameter is required to identify the collection of sessions, and listing sessions requires the \u003ccode\u003edataproc.sessions.list\u003c/code\u003e IAM permission.\u003c/p\u003e\n"],["\u003cp\u003eThe API supports optional query parameters such as \u003ccode\u003epageSize\u003c/code\u003e, \u003ccode\u003epageToken\u003c/code\u003e, and \u003ccode\u003efilter\u003c/code\u003e to control the number of results, pagination, and to refine results based on different criteria.\u003c/p\u003e\n"],["\u003cp\u003eThe request body must be empty, and the successful response includes a JSON representation containing an array of session objects and an optional \u003ccode\u003enextPageToken\u003c/code\u003e for pagination.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization for this API call requires the OAuth scope \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e, as detailed in the Authentication Overview.\u003c/p\u003e\n"]]],[],null,["# Method: projects.locations.sessions.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.ListSessionsResponse.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nLists interactive sessions.\n\n### HTTP request\n\n`GET https://dataproc.googleapis.com/v1/{parent=projects/*/locations/*}/sessions`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n### Query parameters\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nA list of interactive sessions.\n\nIf successful, the response body contains data with the following structure:\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](/docs/authentication#authorization-gcp)."]]