For AI agents: a documentation index is available at https://www.mongodb.com/docs/llms.txt — markdown versions of all pages are available by appending .md to any URL path.
Docs Menu

agentengine egress save

Replace the workspace’s egress policy (unsupported).

Live outbound-access edits are no longer supported; the command fails locally.

Declare destinations in the agent file with agentengine agent egress add or remove, then deploy. Inspect with agentengine egress.

agentengine egress save [flags]
--base-url string Platform base URL
--component string Target a single sandbox: agent or tool. Omit to update both.
--confirm-allow-all Required acknowledgement when --mode=allow_all (waives tenant self-protection for this component).
--context string Named context to target (see 'agentengine context list')
--destination stringArray FQDN:PORT (or FQDN:PORT,PORT,...; omit the port or use FQDN:* for all ports). Repeatable. Required when --mode=allow_list.
-h, --help help for save
--mode string Egress mode: deny_all, allow_list, or allow_all
--org-id string Organization ID
--project-id string Project ID
--workspace string Monorepo: select a specific workspace by name (from root agent.yaml)
--workspace-id string Workspace ID
-y, --yes Skip the overwrite confirmation prompt
--log-file string override log file path
--log-level string file log verbosity (error|warn|info|debug) (default "info")
--no-log disable file logging
-q, --quiet silence stderr below error
-v, --verbose count raise stderr verbosity (-v info, -vv debug)
Rate this page