Cria um cluster Flex quando o tier é omitido ou FLEX, ou um conjunto de réplicas dedicado para um tamanho de instância dedicado como M10. Usa um token delegado de um chamador humano ou uma conta de serviço do mecanismo de agente emparelhado. As chaves API do mecanismo do agente não são aceitas. project_id inválido é rejeitado antes de chamar Atlas. Atlas 402 (sem método de pagamento) e 403 (permissão do Atlas insuficiente) são mapeados para códigos de erro distintos do mecanismo do agente.
Respostas
-
Versão da API não compatível ou malformada, uma operação não disponível no contrato publicado selecionado ou uma representação inaceitável (incluindo parâmetros de tipo de mídia não compatíveis ou SSE excluída). As falhas de autenticação, autorização e limite de taxa existentes têm precedência.
-
Criado
-
Solicitação inválida
-
Não autorizado
-
ATLAS_MÉTODO_DE_PAGAMENTO_OBRIGATÓRIO
-
ATLAS_PERMISSAO_NECESSARIA, ATLAS_CONTA_DE_SERVICO_NAO_EMPARELHADA ou PROIBIDO
-
NÃO_FOUND
-
Conflito
-
corpo da solicitação muito grande
-
ERRO_INTERNO
-
Gateway incorreto
-
PLATFORM_OAUTH_NOT_CONFIGURED ou SERVICE_UNAVAILABLE quando uma atualização de token delegado já está em andamento
curl \
--request POST 'https://agentengine.mongodb.com/api/v1/atlas/projects/{project_id}/clusters' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json"
{}
{
"name": "string",
"provider": "string",
"region": "string",
"tier": "string"
}
{
"detail": "This operation is not available in API version 2026-09-20-preview.",
"error": 406,
"errorCode": "OPERATION_NOT_IN_API_VERSION",
"parameters": [
"Accept"
],
"reason": "Not Acceptable"
}
{
"detail": "This operation supports text/event-stream, which the Accept header excludes. Remove unsupported media-type parameters or accept this type with a positive q value.",
"error": 406,
"errorCode": "UNACCEPTABLE_MEDIA_TYPE",
"parameters": [
"Accept"
],
"reason": "Not Acceptable"
}
{
"detail": "The requested API version is not supported. Supported versions: 2026-09-20-preview.",
"error": 406,
"errorCode": "UNSUPPORTED_API_VERSION",
"parameters": [
"Accept"
],
"reason": "Not Acceptable"
}
{
"detail": "This operation is not available in API version 2026-09-20-preview.",
"error": 406,
"errorCode": "OPERATION_NOT_IN_API_VERSION",
"parameters": [
"Accept"
],
"reason": "Not Acceptable"
}
{
"connection_string_srv": "string",
"id": "string",
"is_flex": true,
"name": "string",
"provider": "string",
"region": "string",
"state_name": "string",
"tier": "string"
}
{
"connection_string_srv": "string",
"id": "string",
"is_flex": true,
"name": "string",
"provider": "string",
"region": "string",
"state_name": "string",
"tier": "string"
}
{
"code": "string",
"error": "string",
"success": true
}
{
"code": "string",
"error": "string",
"success": true
}
{
"code": "string",
"error": "string",
"success": true
}
{
"code": "string",
"error": "string",
"success": true
}
{
"code": "string",
"error": "string",
"success": true
}
{
"code": "string",
"error": "string",
"success": true
}
{
"code": "string",
"error": "string",
"success": true
}
{
"code": "string",
"error": "string",
"success": true
}
{
"code": "string",
"error": "string",
"success": true
}
{
"code": "string",
"error": "string",
"success": true
}
{
"code": "string",
"error": "string",
"success": true
}
{
"code": "string",
"error": "string",
"success": true
}
{
"code": "string",
"error": "string",
"success": true
}
{
"code": "string",
"error": "string",
"success": true
}
{
"code": "string",
"error": "string",
"success": true
}
{
"code": "string",
"error": "string",
"success": true
}
{
"code": "string",
"error": "string",
"success": true
}
{
"code": "string",
"error": "string",
"success": true
}
{
"code": "string",
"error": "string",
"success": true
}
{
"code": "string",
"error": "string",
"success": true
}