Membuat cluster Redis berdasarkan properti yang ditentukan. Pembuatan dijalankan secara asinkron dan pemanggil dapat memeriksa operasi yang ditampilkan untuk melacak progresnya. Setelah operasi selesai, cluster Redis akan berfungsi sepenuhnya. longrunning.Operation yang telah selesai akan berisi objek cluster baru di kolom respons.
Operasi yang ditampilkan akan otomatis dihapus setelah beberapa jam, jadi tidak perlu memanggil operations.delete.
Permintaan HTTP
POST https://redis.googleapis.com/v1alpha1/{parent=projects/*/locations/*}/clusters
Wajib. Nama resource lokasi cluster menggunakan format: projects/{projectId}/locations/{locationId} dengan locationId mengacu pada region Google Cloud.
Parameter kueri
Parameter
clusterId
string
Wajib. Nama logis cluster Redis di project pelanggan dengan batasan berikut:
Hanya boleh berisi huruf kecil, angka, dan tanda hubung.
[[["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.create\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- [Authorization scopes](#body.aspect)\n- [Examples](#examples)\n- [Try it!](#try-it)\n\nCreates a Redis cluster based on the specified properties. The creation is executed asynchronously and callers may check the returned operation to track its progress. Once the operation is completed the Redis cluster will be fully functional. The completed longrunning.Operation will contain the new cluster object in the response field.\n\nThe returned operation is automatically deleted after a few hours, so there is no need to call operations.delete.\n\n### HTTP request\n\n`POST https://redis.googleapis.com/v1alpha1/{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 contains an instance of [Cluster](/memorystore/docs/cluster/reference/rest/v1alpha1/projects.locations.clusters#Cluster).\n\n### Response body\n\nIf successful, the response body contains a newly created instance of [Operation](/memorystore/docs/cluster/reference/rest/Shared.Types/ListOperationsResponse#Operation).\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)."]]