Javascript
import Runloop from '@runloop/api-client'; const client = new Runloop({ bearerToken: 'My Bearer Token', }); const devboxTunnelView = await client.devboxes.createTunnel('id', { port: 0 }); console.log(devboxTunnelView.devbox_id);
{ "devbox_id": "<string>", "port": 123, "url": "<string>" }
Create a live tunnel to an available port on the Devbox.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
The Devbox ID.
OK
The response is of type object.
object
Was this page helpful?