Skip to content

Documentation / @agentick/sandbox / NetworkRule

Interface: NetworkRule ​

Defined in: types.ts:200

Properties ​

action ​

action: "allow" | "deny"

Defined in: types.ts:202

"allow" or "deny". Rules evaluated in order; first match wins.


domain? ​

optional domain: string

Defined in: types.ts:205

Domain pattern. Supports wildcards: "*.example.com", "api.github.com".


methods? ​

optional methods: string[]

Defined in: types.ts:211

HTTP methods to match. Default: all.


port? ​

optional port: number

Defined in: types.ts:214

Port to match.


urlPattern? ​

optional urlPattern: string

Defined in: types.ts:208

URL regex pattern. Matched against full URL.

Released under the ISC License.