Cria um cluster do Redis com base nas propriedades especificadas. A criação é realizada de forma assíncrona e os autores da chamada podem verificar a operação retornada para rastrear seu progresso. Quando a operação for concluída, o cluster do Redis estará totalmente funcional. A operação longrunning.Operation concluída vai conter o novo objeto de cluster no campo de resposta.
A operação retornada é excluída automaticamente após algumas horas, por isso, não é necessário chamar "operations.delete".
Solicitação HTTP
POST https://redis.googleapis.com/v1/{parent=projects/*/locations/*}/clusters
Obrigatório. O nome do recurso do local do cluster usando o formulário: projects/{projectId}/locations/{locationId}, em que locationId se refere a uma região do Google Cloud.
Parâmetros de consulta
Parâmetros
clusterId
string
Obrigatório. O nome lógico do cluster do Redis no projeto do cliente com as seguintes restrições:
Só pode ter letras minúsculas, números e hífens.
Precisa começar com uma letra.
Precisa ter entre 1 e 63 caracteres.
Precisa terminar com um número ou com uma letra.
Precisa ser único no projeto / local do cliente.
requestId
string
Opcional. UUID de solicitação idempotente.
Corpo da solicitação
O corpo da solicitação contém uma instância de Cluster.
Corpo da resposta
Se a solicitação for bem-sucedida, o corpo da resposta incluirá uma instância de Operation.
[[["Fácil de entender","easyToUnderstand","thumb-up"],["Meu problema foi resolvido","solvedMyProblem","thumb-up"],["Outro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Informações incorretas ou exemplo de código","incorrectInformationOrSampleCode","thumb-down"],["Não contém as informações/amostras de que eu preciso","missingTheInformationSamplesINeed","thumb-down"],["Problema na tradução","translationIssue","thumb-down"],["Outro","otherDown","thumb-down"]],["Última atualização 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)."]]