Get the complete network policy data from the API.
Optionaloptions: RequestOptions<unknown>Request options
The network policy data
Update an existing NetworkPolicy. All fields are optional.
Parameters for updating the network policy
Optionaloptions: RequestOptions<unknown>Request options
The updated network policy data
Object-oriented interface for working with Network Policies.
Remarks
Overview
The
NetworkPolicyclass provides a high-level, object-oriented API for managing network policies. Network policies define egress network access rules for devboxes and can be applied to blueprints, devboxes, and snapshot resumes.Quickstart