Crea un clúster Flex cuando se omite el nivel o es FLEX, o un set de réplicas dedicado para un tamaño de instancia dedicado como M10. Utiliza el token delegado de un llamador humano o una cuenta de servicio de motor de agente emparejado. Las claves API del motor de agente no se aceptan. El `project_id` inválido se rechaza antes de llamar a Atlas. Atlas 402 (sin método de pago) y 403 (permiso de Atlas insuficiente) se asignan a códigos de error distintos del motor de agente.
Respuestas
-
Versión de la API no compatible o con formato incorrecto, una operación no disponible en el contrato publicado seleccionado o una representación inaceptable (incluidos parámetros de tipo de medios no compatibles o SSE excluido). Los fallos existentes de autenticación, autorización y límite de peticiones tienen prioridad.
-
Creado.
-
Solicitud incorrecta
-
No autorizado
-
ATLAS_MÉTODO_PAGO_REQUERIDO
-
ATLAS_PERMISSION_REQUIRED, ATLAS_SERVICE_ACCOUNT_NO_EMPAREJADO o PROHIBIDO
-
NOT_FOUND
-
Conflicto
-
cuerpo de la solicitud demasiado grande
-
ERROR_INTERNO
-
Puerta de enlace incorrecta
-
PLATFORM_OAUTH_NOT_CONFIGURED o SERVICE_UNAVAILABLE cuando ya está en curso una actualización de token delegado
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
}