RaiEgressPolicyConfig Class

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.

Constructor

RaiEgressPolicyConfig(*args: Any, **kwargs: Any)

Variables

Name Description
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. Known values are: "Enforced" and "Audit".

default_action

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. Known values are: "Allow" and "Deny".

description
str

Description of the egress policy.

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.

Attributes

default_action

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. Known values are: "Allow" and "Deny".

default_action: str | _models.RaiEgressDefaultAction | None

description

Description of the egress policy.

description: str | None

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. Known values are: "Enforced" and "Audit".

mode: str | _models.RaiEgressMode | None

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: list['_models.RaiEgressRule'] | None