Otorisasi memerlukan izin IAM berikut pada resource parent yang ditentukan:
dataproc.batches.list
Parameter kueri
Parameter
pageSize
integer
Opsional. Jumlah maksimum batch yang akan ditampilkan dalam setiap respons. Layanan mungkin menampilkan lebih sedikit dari nilai ini. Ukuran halaman default adalah 20; ukuran halaman maksimum adalah 1.000.
pageToken
string
Opsional. Token halaman yang diterima dari panggilan batches.list sebelumnya. Berikan token ini untuk mengambil halaman berikutnya.
filter
string
Opsional. Filter untuk batch yang akan ditampilkan dalam respons.
Filter adalah ekspresi logis yang membatasi nilai berbagai kolom di setiap resource batch. Filter peka huruf besar/kecil, dan dapat berisi beberapa klausa yang digabungkan dengan operator logika (AND/OR). Kolom yang didukung adalah batchId, batchUuid, state, createTime, dan labels.
Misalnya, filter state = RUNNING and createTime < "2023-01-01T00:00:00Z" untuk batch dalam status RUNNING yang dibuat sebelum 01-01-2023. state = RUNNING and labels.environment=production memfilter batch dalam status BERJALAN yang memiliki label lingkungan produksi.
Opsional. Kolom yang akan digunakan untuk mengurutkan daftar batch.
Saat ini, satu-satunya urutan pengurutan yang didukung adalah tidak ditentukan (kosong) dan createTime desc untuk mengurutkan menurut batch yang dibuat baru-baru ini terlebih dahulu.
Token yang dapat dikirim sebagai pageToken untuk mengambil halaman berikutnya. Jika kolom ini dihilangkan, tidak akan ada halaman berikutnya.
unreachable[]
string
Hanya output. Daftar Batch yang tidak dapat disertakan dalam respons. Mencoba mendapatkan salah satu resource ini dapat menunjukkan alasan resource tersebut tidak disertakan dalam respons daftar.
[[["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 lists batch workloads within a specified project and location.\u003c/p\u003e\n"],["\u003cp\u003eYou can filter the batch results by \u003ccode\u003ebatchId\u003c/code\u003e, \u003ccode\u003ebatchUuid\u003c/code\u003e, \u003ccode\u003estate\u003c/code\u003e, \u003ccode\u003ecreateTime\u003c/code\u003e, and \u003ccode\u003elabels\u003c/code\u003e, and you can order them by the creation time.\u003c/p\u003e\n"],["\u003cp\u003eThe response will include a list of batches, a token to fetch the next page of results, and a list of batches that were not included in the response.\u003c/p\u003e\n"],["\u003cp\u003eTo authorize a request to list the batches, the \u003ccode\u003edataproc.batches.list\u003c/code\u003e IAM permission is required, and it requires the \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"],["\u003cp\u003eThe request to list batches must be an HTTP \u003ccode\u003eGET\u003c/code\u003e request and does not require a request body, but takes in \u003ccode\u003eparent\u003c/code\u003e, \u003ccode\u003epageSize\u003c/code\u003e, \u003ccode\u003epageToken\u003c/code\u003e, \u003ccode\u003efilter\u003c/code\u003e, and \u003ccode\u003eorderBy\u003c/code\u003e parameters.\u003c/p\u003e\n"]]],[],null,["# Method: projects.locations.batches.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.ListBatchesResponse.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nLists batch workloads.\n\n### HTTP request\n\n`GET https://dataproc.googleapis.com/v1/{parent=projects/*/locations/*}/batches`\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 batch workloads.\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)."]]