Skip to main content
PUT
Set the default network policy

Authorizations

Authorization
string
header
required

A Cool Computers API key, user access token, or claimed agent access token in the Authorization header. Follow https://www.cool.computer/auth.md for agent registration and https://www.cool.computer/authentication.md for direct user credentials.

Body

application/json

Outbound access policy. open allows public destinations, none blocks outbound access, and allowlist permits only the named public hosts. Private and reserved addresses remain blocked.

mode
enum<string>
required
Available options:
open,
none,
allowlist
allowed_hosts
string[]

Required and non-empty only when mode is allowlist. Each value is a hostname, public IP, or leading wildcard such as *.example.com, without a scheme, port, path, or CIDR.

Maximum array length: 100

Response

The account's default outbound network policy.

Outbound access policy. open allows public destinations, none blocks outbound access, and allowlist permits only the named public hosts. Private and reserved addresses remain blocked.

mode
enum<string>
required
Available options:
open,
none,
allowlist
allowed_hosts
string[]

Required and non-empty only when mode is allowlist. Each value is a hostname, public IP, or leading wildcard such as *.example.com, without a scheme, port, path, or CIDR.

Maximum array length: 100