Network Policy
Control outbound network access using DNS-based filtering. Policies define which domains sprites can reach, with support for exact matches, wildcard subdomains, and preset rule bundles.
Changes apply immediately—existing connections to newly-blocked domains are terminated. Failed DNS lookups return REFUSED for fast failure.
Network Policy
Get Network Policy
Get the current network policy configuration.
/sprites/{name}/policy/network
Response Body
application/jsonrules*
NetworkPolicyRule[]
List of network policy rules
domain?
string
Domain pattern (e.g., *.github.com)
action?
string
allow or deny
include?
string
Include rules from preset
Response Codes
Success
Not Found - Resource not found
Internal Server Error
Network Policy
Set Network Policy
Update the network policy configuration.
/sprites/{name}/policy/network
Request Body
application/jsonrules*
NetworkPolicyRule[]
List of network policy rules
domain?
string
Domain pattern (e.g., *.github.com)
action?
string
allow or deny
include?
string
Include rules from preset
Response Body
application/jsonResponse Codes
Success
Bad Request - Invalid request body
Not Found - Resource not found
Internal Server Error
Network Policy
Get Privileges Policy
Get the current privileges policy configuration (capability and device restrictions).
/sprites/{name}/policy/privileges
Response Body
application/jsonResponse Codes
Success
Not Found - Resource not found
Internal Server Error
Network Policy
Set Privileges Policy
Update the privileges policy configuration to restrict capabilities or devices.
/sprites/{name}/policy/privileges
Response Body
application/jsonResponse Codes
Success
Bad Request - Invalid request body
Not Found - Resource not found
Internal Server Error
Network Policy
Delete Privileges Policy
Remove privileges policy to revert to default (unrestricted) behavior.
/sprites/{name}/policy/privileges
Response Body
application/jsonResponse Codes
Success
Bad Request - Invalid request body
Not Found - Resource not found
Internal Server Error
Network Policy
Get Resources Policy
Get the current resources policy configuration (memory limits).
/sprites/{name}/policy/resources
Response Body
application/jsonResponse Codes
Success
Not Found - Resource not found
Internal Server Error
Network Policy
Set Resources Policy
Update the resources policy configuration to set memory limits.
/sprites/{name}/policy/resources
Response Body
application/jsonResponse Codes
Success
Bad Request - Invalid request body
Not Found - Resource not found
Internal Server Error
Network Policy
Delete Resources Policy
Remove resources policy to revert to default behavior.
/sprites/{name}/policy/resources
Response Body
application/jsonResponse Codes
Success
Bad Request - Invalid request body
Not Found - Resource not found
Internal Server Error