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 response = await client.devboxes.removeTunnel('id', { port: 0 });
console.log(response);{}[Deprecated] Tunnels remain active until devbox is shutdown. This endpoint removes a legacy tunnel.
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 response = await client.devboxes.removeTunnel('id', { port: 0 });
console.log(response);{}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The Devbox ID.
Devbox port that tunnel will expose.
OK
The response is of type object.
Was this page helpful?