SandboxNode
Section titled “SandboxNode”Lightweight data-plane handle for one node in a multi-node Sandbox.
Properties:
cpunumberdisknumberfabricAddress?stringfabricHealthy?booleanfabricPrefixLength?numberfabricUnhealthySince?stringfailure?GangNodeFailurefsFileSystemgpunumberidstringincarnationnumbermemorynumberprocessProcessranknumberstateSandboxStatewarningsstring[] = [] - Advisory RDMA warnings for this node.
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new SandboxNode( node: import("@daytona/api-client").SandboxNode, toolboxProxyUrl: string, clientConfig: Configuration, sandboxApi: SandboxApi, language?: string, requestTimeoutMs?: number): SandboxNode;Parameters:
nodeAPI SandboxNode DTO - Rank, ID, state and resources returned by the API.toolboxProxyUrlstringclientConfigConfigurationsandboxApiSandboxApilanguage?stringrequestTimeoutMs?number
Returns:
SandboxNode
Throws:
If the node ID is empty, ”.” or ”..”.
Methods
Section titled “Methods”createSshAccess()
Section titled “createSshAccess()”createSshAccess(expiresInMinutes?: number): Promise<SshAccessDto>;Create an SSH access token for this node.
Parameters:
expiresInMinutes?number
Returns:
Promise<SshAccessDto>
getPreviewLink()
Section titled “getPreviewLink()”getPreviewLink(port: number): Promise<PortPreviewUrl>;Get a preview URL for a port on this node.
Parameters:
portnumber
Returns:
Promise<PortPreviewUrl>
revokeSshAccess()
Section titled “revokeSshAccess()”revokeSshAccess(token: string): Promise<void>;Revoke an SSH access token for this node.
Parameters:
tokenstring
Returns:
Promise<void>
update()
Section titled “update()”update(node: import("@daytona/api-client").SandboxNode): void;Refresh resources, state, incarnation, failure details and fabric metadata.
Parameters:
nodeAPI SandboxNode DTO - Node data from the API response, not an SDK node handle.
Returns:
void
Throws:
If the node rank or id differs from this handle.