RaiEgressPolicyConfig interface
Egress (outbound network) policy configuration nested within an RAI policy. Controls which external endpoints sandboxed agents can reach and what transformations (header injection, URL rewrite) are applied to matching traffic.
Properties
| default |
The default action when no user-defined rules match. Deny blocks unmatched traffic; Allow permits it. Transform and Rewrite rules are always applied to their matched traffic regardless of this setting — defaultAction only governs traffic that does not match any rule. If omitted on create, the server defaults to Deny (fail-closed). On subsequent GET requests, the server always returns the effective value. |
| description | Description of the egress policy. |
| mode | The enforcement mode for egress rules. If omitted on create, the server defaults to Enforced. On subsequent GET requests, the server always returns the effective mode. |
| rules | Ordered list of egress rules. First matching rule wins. Rules are evaluated in declaration order; the first rule whose match criteria are satisfied determines the action taken on the request. |
Property Details
defaultAction
The default action when no user-defined rules match. Deny blocks unmatched traffic; Allow permits it. Transform and Rewrite rules are always applied to their matched traffic regardless of this setting — defaultAction only governs traffic that does not match any rule. If omitted on create, the server defaults to Deny (fail-closed). On subsequent GET requests, the server always returns the effective value.
defaultAction?: string
Property Value
string
description
Description of the egress policy.
description?: string
Property Value
string
mode
The enforcement mode for egress rules. If omitted on create, the server defaults to Enforced. On subsequent GET requests, the server always returns the effective mode.
mode?: string
Property Value
string
rules
Ordered list of egress rules. First matching rule wins. Rules are evaluated in declaration order; the first rule whose match criteria are satisfied determines the action taken on the request.
rules?: RaiEgressRule[]