Skip to content

Latest commit

 

History

History
65 lines (59 loc) · 2.1 KB

File metadata and controls

65 lines (59 loc) · 2.1 KB

UpdateNetworkPolicyResponseBody

The sandbox network policy was updated successfully.

Example Usage

import { UpdateNetworkPolicyResponseBody } from "@vercel/sdk/models/updatenetworkpolicyop.js";

let value: UpdateNetworkPolicyResponseBody = {
  sandbox: {
    id: "sbx_123a6c5209bc3778245d011443644c8d27dc2c50",
    memory: 2048,
    vcpus: 2,
    region: "iad1",
    runtime: "node22",
    timeout: 3600000,
    status: "running",
    requestedAt: 1750344501629,
    startedAt: 1750344501629,
    cwd: "/vercel/sandbox",
    requestedStopAt: 1750344501629,
    stoppedAt: 1750344501629,
    abortedAt: 1750344501629,
    duration: 3600000,
    sourceSnapshotId: "snap_123a6c5209bc3778245d011443644c8d27dc2c50",
    snapshottedAt: 1750344501629,
    createdAt: 1750344501629,
    updatedAt: 1750344501629,
    networkPolicy: {
      mode: "custom",
      allowedDomains: [
        "api.vercel.com",
        "*.example.com",
      ],
      allowedCIDRs: [
        "10.0.0.0/8",
      ],
      deniedCIDRs: [
        "10.0.0.0/8",
      ],
      injectionRules: [
        {
          domain: "api.vercel.com",
          headerNames: [
            "Authorization",
            "X-API-Key",
          ],
        },
      ],
    },
    activeCpuDurationMs: 42,
    networkTransfer: {
      ingress: 6500.87,
      egress: 7213.27,
    },
  },
};

Fields

Field Type Required Description
sandbox models.Sandbox ✔️ This object contains information related to a Vercel Sandbox.