Create a new network policy.
Parameters for creating the network policy.
Optionaloptions: RequestOptions<unknown>Request options.
A NetworkPolicy instance.
Get a network policy object by its ID.
The ID of the network policy.
A NetworkPolicy instance.
List network policies with optional filters (paginated).
Optionalparams: Runloop.NetworkPolicyListParamsOptional filter parameters.
Optionaloptions: RequestOptions<unknown>Request options.
An array of NetworkPolicy instances.
Network Policy SDK interface for managing network policies.
Remarks
Overview
The
NetworkPolicyOpsclass provides a high-level abstraction for managing network policies, which define egress network access rules for devboxes. Policies can be applied to blueprints, devboxes, and snapshot resumes to control network access.Usage
This interface is accessed via RunloopSDK.networkPolicy. You should construct a RunloopSDK instance and use it from there:
Example