Proxies Atlas Admin API POST /groups/{id}/accessList usando um token delegado do chamador humano ou uma conta de serviço emparelhada do Agent Engine. As chaves da API do Agent Engine não são aceitas. CIDRs mais amplos que /8 (IPv4) ou /32 (IPv6), incluindo IPv4mapeado por IPv6, são rejeitados antes de qualquer chamada do Atlas . Project_id inválido é rejeitado antes de qualquer chamada Atlas .
Respostas
-
Versão de API não permitida ou malformada, uma operação indisponível no contrato publicado selecionado ou uma representação inaceitável (incluindo parâmetros de tipo de mídia não suportados ou SSE excluído). Falhas existentes de autenticação, autorização e limite de taxa têm precedência.
-
Criado
-
Solicitação inválida
-
Não autorizado
-
Atlas_payment_METHOD_REQUIRED
-
atlas_permissão_required, atlas_service_account_not_paired ou forBidden
-
NÃO_FOUND
-
Conflito
-
corpo da solicitação muito grande
-
Internal_error
-
Gateway incorreto
-
PLATFORM_OAUTH_NOT_CONFIGURED ou SERVIÇO_UNAVAILABLE quando uma atualização de token delegada já estiver em andamento
curl \
--request POST 'https://agentengine.mongodb.com/api/v1/atlas/projects/{project_id}/access-list' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json"
{}
{
"cidr_block": "string",
"comment": "string",
"ip_address": "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"
}
{
"results": [
{
"cidr_block": "string",
"comment": "string",
"ip_address": "string"
}
],
"total_count": 42
}
{
"results": [
{
"cidr_block": "string",
"comment": "string",
"ip_address": "string"
}
],
"total_count": 42
}
{
"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
}