Otorisasi memerlukan izin IAM berikut pada resource parent yang ditentukan:
dataproc.sessions.list
Parameter kueri
Parameter
pageSize
integer
Opsional. Jumlah maksimum sesi yang akan ditampilkan dalam setiap respons. Layanan mungkin menampilkan lebih sedikit dari nilai ini.
pageToken
string
Opsional. Token halaman yang diterima dari panggilan sessions.list sebelumnya. Berikan token ini untuk mengambil halaman berikutnya.
filter
string
Opsional. Filter untuk sesi yang akan ditampilkan dalam respons.
Filter adalah ekspresi logis yang membatasi nilai berbagai kolom di setiap resource sesi. Filter peka huruf besar/kecil, dan dapat berisi beberapa klausa yang digabungkan dengan operator logika (AND, OR). Kolom yang didukung adalah sessionId, sessionUuid, state, createTime, dan labels.
Contoh: state = ACTIVE and createTime < "2023-01-01T00:00:00Z" adalah filter untuk sesi dalam status AKTIF yang dibuat sebelum 01-01-2023. state = ACTIVE and labels.environment=production adalah filter untuk sesi dalam status AKTIF yang memiliki label lingkungan produksi.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-03-04 UTC."],[[["\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)."]]