Create a new NetworkPolicy with the specified egress rules. The policy can then be applied to blueprints, devboxes, or snapshot resumes.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Parameters required to create a new NetworkPolicy.
The human-readable name for the NetworkPolicy. Must be unique within the account.
Optional description for the NetworkPolicy.
(Optional) If true, all egress traffic is allowed (ALLOW_ALL policy). Defaults to false.
(Optional) If true, allows traffic between the account's own devboxes via tunnels. Defaults to false. If allow_all is true, this is automatically set to true.
(Optional) DNS-based allow list with wildcard support. Examples: ['github.com', '*.npmjs.org'].
NetworkPolicy created successfully.
A NetworkPolicy defines egress network access rules for devboxes. Policies can be applied to blueprints, devboxes, and snapshot resumes.
The unique identifier of the NetworkPolicy.
The human-readable name of the NetworkPolicy. Unique per account.
The egress rules for this policy.
The creation time of the NetworkPolicy (Unix timestamp in milliseconds).
Last update time of the NetworkPolicy (Unix timestamp in milliseconds).
Optional description of the NetworkPolicy.