Wajib. Nama resource lokasi cluster menggunakan format: projects/{projectId}/locations/{locationId} dengan locationId mengacu pada region Google Cloud.
Parameter kueri
Parameter
pageSize
integer
Jumlah maksimum item untuk ditampilkan.
Jika tidak ditentukan, nilai default 1000 akan digunakan oleh layanan. Terlepas dari nilai pageSize, respons dapat menyertakan daftar parsial dan pemanggil hanya boleh mengandalkan nextPageToken respons untuk menentukan apakah ada lebih banyak cluster yang tersisa untuk dikueri.
pageToken
string
Nilai nextPageToken yang ditampilkan dari permintaan [clusters.list][CloudRedis.ListClusters] sebelumnya, jika ada.
Isi permintaan
Isi permintaan harus kosong.
Isi respons
Respons untuk [clusters.list][CloudRedis.ListClusters].
Jika berhasil, isi respons memuat data dengan struktur berikut:
Daftar cluster Redis dalam project di lokasi yang ditentukan, atau di semua lokasi.
Jika locationId di kolom induk permintaan adalah "-", semua wilayah yang tersedia untuk project akan dikueri, dan hasilnya digabungkan. Jika dalam kueri gabungan seperti itu lokasi tidak tersedia, entri Redis placeholder akan disertakan dalam respons dengan kolom name yang ditetapkan ke nilai formulir projects/{projectId}/locations/{locationId}/clusters/- dan kolom status yang ditetapkan ke ERROR serta kolom statusMessage yang ditetapkan ke "location not available for clusters.list".
nextPageToken
string
Token untuk mengambil halaman hasil berikutnya, atau kosong jika tidak ada lagi hasil dalam 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-09-04 UTC."],[],[],null,["# Method: projects.locations.clusters.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.ListClustersResponse.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [Examples](#examples)\n- [Try it!](#try-it)\n\nLists all Redis clusters owned by a project in either the specified location (region) or all locations.\n\nThe location should have the following format:\n\n- `projects/{projectId}/locations/{locationId}`\n\nIf `locationId` is specified as `-` (wildcard), then all regions available to the project are queried, and the results are aggregated.\n\n### HTTP request\n\n`GET https://redis.googleapis.com/v1/{parent=projects/*/locations/*}/clusters`\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\nResponse for \\[clusters.list\\]\\[CloudRedis.ListClusters\\].\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)."]]