Crea un cluster Redis in base alle proprietà specificate. La creazione viene eseguita in modo asincrono e i chiamanti possono controllare l'operazione restituita per monitorarne l'avanzamento. Una volta completata l'operazione, il cluster Redis sarà completamente funzionante. L'oggetto longrunning.Operation completato conterrà il nuovo oggetto cluster nel campo di risposta.
L'operazione restituita viene eliminata automaticamente dopo alcune ore, quindi non è necessario chiamare operations.delete.
Richiesta HTTP
POST https://redis.googleapis.com/v1/{parent=projects/*/locations/*}/clusters
Obbligatorio. Il nome della risorsa della posizione del cluster utilizzando il modulo: projects/{projectId}/locations/{locationId} dove locationId si riferisce a una regione Google Cloud.
Parametri di query
Parametri
clusterId
string
Obbligatorio. Il nome logico del cluster Redis nel progetto del cliente con le seguenti limitazioni:
Deve contenere solo lettere minuscole, numeri e trattini.
Deve iniziare con una lettera.
Deve avere una lunghezza compresa tra 1 e 63 caratteri.
Deve terminare con un numero o una lettera.
Deve essere univoco all'interno del progetto / della località del cliente
requestId
string
Facoltativo. UUID richiesta idempotente.
Corpo della richiesta
Il corpo della richiesta contiene un'istanza di Cluster.
Corpo della risposta
In caso di esito positivo, il corpo della risposta contiene un'istanza appena creata di Operation.
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Difficile da capire","hardToUnderstand","thumb-down"],["Informazioni o codice di esempio errati","incorrectInformationOrSampleCode","thumb-down"],["Mancano le informazioni o gli esempi di cui ho bisogno","missingTheInformationSamplesINeed","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 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/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 contains an instance of [Cluster](/memorystore/docs/cluster/reference/rest/v1/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)."]]