Vista previa del radio de impacto de una política de lista de permitidos de organización
Devuelve los proyectos cuya lista de permitidos efectiva quedaría vacía si se guarda la política de lista de permitidos de la organización dada, para que se advierta a un administrador antes de restringir una lista de permitidos de una herramienta o modelo a un conjunto disjunto. Las políticas que no están en la lista de permitidos o están deshabilitadas no tienen radio de impacto.
Cuerpo
Requerido
Política organizativa propuesta
-
Si la política propuesta se aplicaría. Por defecto es true cuando se omite, coincidiendo con la creación de políticas.
-
Los valores son
MAX_TOOL_CALLS_PER_EXECUTION,MAX_LLM_CALLS_PER_EXECUTION,MAX_EXECUTION_DURATION_MS,MAX_TOKENS_PER_EXECUTION,MAX_TOKENS_PER_SESSION,AUTHORIZED_TOOLSoAUTHORIZED_MODELS.
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.
-
OK
-
Solicitud incorrecta
-
Forbidden
-
Error interno del servidor
curl \
--request POST 'https://agentengine.mongodb.com/api/v1/organizations/{id}/policies/preview' \
--header "Authorization: $API_KEY" \
--header "Content-Type: application/json" \
--data '{
"enabled": true,
"string_list": [
"string"
],
"type": "MAX_TOOL_CALLS_PER_EXECUTION"
}'
{
"enabled": true,
"string_list": [
"string"
],
"type": "MAX_TOOL_CALLS_PER_EXECUTION"
}
{
"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"
}
{
"affected_projects": [
{
"current_allowlist": [
"string"
],
"project_id": "string",
"project_name": "string"
}
]
}
{
"affected_projects": [
{
"current_allowlist": [
"string"
],
"project_id": "string",
"project_name": "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
}