Skip to main content
POST
/
v1
/
network-policies
/
{id}
/
delete
JavaScript
import Runloop from '@runloop/api-client';

const client = new Runloop({
  bearerToken: process.env['RUNLOOP_API_KEY'], // This is the default and can be omitted
});

const networkPolicyView = await client.networkPolicies.delete('id');

console.log(networkPolicyView.id);
{
  "id": "<string>",
  "name": "<string>",
  "egress": {
    "allow_all": true,
    "allow_devbox_to_devbox": true,
    "allowed_hostnames": [
      "<string>"
    ]
  },
  "create_time_ms": 123,
  "update_time_ms": 123,
  "description": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

The unique identifier of the NetworkPolicy to delete.

Body

application/json

The body is of type object.

Response

NetworkPolicy deleted successfully.

A NetworkPolicy defines egress network access rules for devboxes. Policies can be applied to blueprints, devboxes, and snapshot resumes.

id
string
required

The unique identifier of the NetworkPolicy.

name
string
required

The human-readable name of the NetworkPolicy. Unique per account.

egress
object
required

The egress rules for this policy.

create_time_ms
integer<int64>
required

The creation time of the NetworkPolicy (Unix timestamp in milliseconds).

update_time_ms
integer<int64>
required

Last update time of the NetworkPolicy (Unix timestamp in milliseconds).

description
string | null

Optional description of the NetworkPolicy.